Commit b11e4d0
committed
feat: hide unlisted-authors' branches by default when display_authors is set
Previously display_authors only dimmed branches from unlisted PR authors;
status/interactive still showed every branch, which didn't scale in repos
with many unrelated stacks. Now branches whose PR author isn't listed are
hidden by default, with a --show-all flag to bypass it for one invocation.
The current branch and its ancestor chain to trunk always stay visible, and
branches with no PR yet are never hidden. Hiding is tree-aware: a hidden
branch's visible descendants reparent for display to the nearest visible
ancestor, without touching the underlying git-stack tree state.1 parent c098049 commit b11e4d0
4 files changed
Lines changed: 384 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
906 | 908 | | |
907 | 909 | | |
908 | 910 | | |
909 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
910 | 914 | | |
911 | 915 | | |
912 | 916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
223 | 230 | | |
224 | 231 | | |
225 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
416 | 423 | | |
417 | 424 | | |
418 | 425 | | |
| 426 | + | |
419 | 427 | | |
420 | 428 | | |
421 | 429 | | |
422 | 430 | | |
423 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
424 | 439 | | |
425 | 440 | | |
426 | 441 | | |
| |||
483 | 498 | | |
484 | 499 | | |
485 | 500 | | |
| 501 | + | |
486 | 502 | | |
487 | 503 | | |
488 | 504 | | |
| |||
564 | 580 | | |
565 | 581 | | |
566 | 582 | | |
| 583 | + | |
567 | 584 | | |
568 | 585 | | |
569 | 586 | | |
| |||
593 | 610 | | |
594 | 611 | | |
595 | 612 | | |
| 613 | + | |
596 | 614 | | |
597 | 615 | | |
598 | 616 | | |
| |||
616 | 634 | | |
617 | 635 | | |
618 | 636 | | |
| 637 | + | |
619 | 638 | | |
620 | 639 | | |
621 | 640 | | |
| |||
642 | 661 | | |
643 | 662 | | |
644 | 663 | | |
| 664 | + | |
645 | 665 | | |
646 | 666 | | |
647 | 667 | | |
| |||
0 commit comments