Skip to content

Commit 3f65e06

Browse files
committed
Trying to get the order correct in the mermaid diagram and to get the ff merge to look good
1 parent 68afee4 commit 3f65e06

File tree

1 file changed

+16
-30
lines changed

1 file changed

+16
-30
lines changed

docs/branches.md

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -352,28 +352,23 @@ Before FF merge:
352352
```mermaid
353353
graph LR
354354
355-
commit4Y(["New merge commit"])
356355
master["master"]
357356
style master fill:#ffffff,stroke:#ffffff
358357
nice-feature["nice-feature"]
359358
style nice-feature fill:#ffffff,stroke:#ffffff
360359
361-
commitX(["commitX"])
362360
commit1(["commit1"])
363361
commit2(["commit2"])
364-
commitY(["commitY"])
365362
commit3(["commit3"])
366-
commit4(["commit4"])
363+
commitX(["commitX"])
364+
commitY(["commitY"])
367365
368-
master -.-> commit4
369-
commit4 --> commit3
370-
commit4 --> commit4Y
366+
master -.-> commit3
371367
cool-feature -.-> commitY
372-
commit3 --> commit2
373-
commit2 --> commit1
374-
commitY --> commitX
375-
commitY --> commit4Y
376-
commitX --> commit1
368+
commit1 --> commit2
369+
commit2 --> commit3
370+
commit3 --> commitX
371+
commitX --> commitY
377372
```
378373

379374
After FF merge:
@@ -383,26 +378,21 @@ graph LR
383378
384379
master["master"]
385380
style master fill:#ffffff,stroke:#ffffff
386-
cool-feature["cool-feature"]
387-
style cool-feature fill:#ffffff,stroke:#ffffff
381+
nice-feature["nice-feature"]
382+
style nice-feature fill:#ffffff,stroke:#ffffff
388383
389-
commitX(["commitX"])
390384
commit1(["commit1"])
391385
commit2(["commit2"])
392-
commitY(["commitY"])
393386
commit3(["commit3"])
394-
commit4(["commit4"])
395-
commit4Y(["New merge commit"])
387+
commitX(["commitX"])
388+
commitY(["commitY"])
396389
397-
master -.-> commit4
398-
commit4 --> commit3
399-
commit4 --> commit4Y
390+
master -.-> commitY
400391
cool-feature -.-> commitY
401-
commit3 --> commit2
402-
commit2 --> commit1
403-
commitY --> commitX
404-
commitY --> commit4Y
405-
commitX --> commit1
392+
commit1 --> commit2
393+
commit2 --> commit3
394+
commit3 --> commitX
395+
commitX --> commitY
406396
```
407397

408398
## Switching with uncommitted changes
@@ -463,12 +453,8 @@ Git warns that there is a file that is modified (`M`) in one branch but not the
463453

464454
---
465455

466-
<!-- .slide: data-background="#ffffff" -->
467-
468456
### Example - uncommitted, conflicting changes
469457

470-
<!-- .slide: style="font-size: 32px;" -->
471-
472458
**We continue in the same repository!**
473459
Assume two branches, "cool-feature" and "morefeatures"
474460

0 commit comments

Comments
 (0)