Skip to content

Commit b534840

Browse files
authored
Merge pull request #37 from bill-auger/master
git-branch-status new features
2 parents cfebef1 + 55b05f3 commit b534840

File tree

2 files changed

+364
-226
lines changed

2 files changed

+364
-226
lines changed

git-branch-status-subtree/README.md

+22-16
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ By default, the `git-branch-status` command shows the divergence relationship be
55
A number of command-line switches exist, selecting various reports that compare any or all local or remote branches.
66

77

8-
![git-branch-status screenshot][scrot]
8+
![git-branch-status screen-shot][scrot]
99

1010

11-
#### Notes regarding the screenshot above:
11+
#### Notes regarding the screen-shot above:
1212

1313
* This is showing the exhaustive '--all' report. Other reports are constrained (see 'USAGE' below).
1414
* The "local <-> upstream" section is itemizing all local branches. In this instance:
@@ -18,18 +18,22 @@ A number of command-line switches exist, selecting various reports that compare
1818
* The local branch 'master' is tracking remote branch 'origin/master'.
1919
* The "local <-> kd35a" section is itemizing all branches on the 'kd35a' remote. In this instance:
2020
* The local branch 'master' is 2 commits behind and 24 commits ahead of the remote branch 'kd35a/master'.
21+
* The remote 'kd35a' has no other branches.
2122
* The "local <-> knovoselic" section is itemizing all branches on the 'knovoselic' remote. In this instance:
2223
* The local branch 'master' is 4 commits behind and 24 commits ahead of the remote branch 'knovoselic/master'.
24+
* The remote 'knovoselic' has no other branches.
2325
* The "local <-> origin" section is itemizing all branches on the 'origin' remote. In this instance:
24-
* The remote branch 'origin/delete-me' is not checked-out locally.
25-
* The remote branch 'origin/master' is tracked by the local branch 'master'.
26+
* The remote branch 'origin/delete-me' may or may not be checked-out locally; but no local branch exists with the name: 'delete-me'.
27+
* The local branch 'deleteme' is at the same commit as the remote branch 'origin/deleteme' but this is not a tracking relationship.
28+
* The local branch 'master' is tracking the remote branch 'origin/master'.
2629
* The asterisks to the left of the local 'master' branch names indicate the current working branch.
27-
* The blue branch names indicate a tracking relationship between a local and it's upstream branch.
28-
* The "local <-> upstream" section relates tracking branches while remote-specific sections relate identically named branches. This distinction determines the semantics of the green "... synchronized" messages.
29-
* In the "local <-> upstream" section, this indicates that all local branches which are tracking an upstream are synchronized with their respective upstream counterparts.
30-
* In remote-specific sections, this indicates that all local branches which have the same name as some branch on this remote are synchronized with that remote branch.
31-
* In single branch reports, this indicates that the local branch is tracking an upstream branch and is synchronized with it's upstream counterpart.
32-
* In arbitrary branch comparison reports, this indicates that the two compared branches are synchronized with each other.
30+
* The blue branch names indicate an explicit tracking relationship between a local branch and it's upstream counterpart.
31+
* The "local <-> upstream" section relates tracking relationships between local branches and their upstream counterparts; while the remote-specific sections relate identically named branches. Tracking relationships may or may not be indicated in the remote-specific sections, depending on whether or not both counterparts also coincidentally have the same branch name.
32+
* In addition to the local amd remote reports, there are two other reports that are not shown in the screen-shot: a single branch report and an arbitrary branch comparison report. The report context determines the semantics of the green "... synchronized ..." messages which may appear under the respectively appropriate circumstances, as such:
33+
* In the "local <-> upstream" section, the green message indicates that all local branches which are tracking an upstream are synchronized with their respective upstream counterparts.
34+
* In remote-specific sections, the green message indicates that all local branches which have the same name as some branch on this remote are synchronized with that remote branch. These are not necessarily tracking relationships.
35+
* In single branch reports, the green message indicates that the local branch is tracking an upstream branch and is synchronized with it's upstream counterpart.
36+
* In arbitrary branch comparison reports, the green message indicates that the two compared branches are synchronized with each other.
3337

3438

3539
```
@@ -38,7 +42,7 @@ USAGE:
3842
git-branch-status
3943
git-branch-status [ base-branch-name compare-branch-name ]
4044
git-branch-status [ -a | --all ]
41-
git-branch-status [ -b | --branch ] [filter-branch-name]
45+
git-branch-status [ -b | --branch ] [ filter-branch-name ]
4246
git-branch-status [ -d | --dates ]
4347
git-branch-status [ -h | --help ]
4448
git-branch-status [ -l | --local ]
@@ -94,9 +98,9 @@ EXAMPLES:
9498
# show all local branches - including those synchronized or non-tracking
9599
$ git-branch-status -l
96100
$ git-branch-status --local
97-
| master | (even) | (ahead 1) | origin/master |
98-
| tracked-branch | (even) | (even) | origin/tracked-branch |
99-
| local-branch | n/a | n/a | (no upstream) |
101+
| master | (even) | (ahead 1) | origin/master |
102+
| tracked-branch | (even) | (even) | origin/tracked-branch |
103+
| local-branch | n/a | n/a | (no upstream) |
100104
101105
# show all remote branches - including those not checked-out
102106
$ git-branch-status -r
@@ -113,11 +117,13 @@ EXAMPLES:
113117
```
114118

115119

116-
_NOTE: please direct comments, bug reports, feature requests, or PRs to one of the upstream repos:_
120+
_NOTE: please direct bug reports, feature requests, or PRs to one of the upstream repos:_
117121
* [https://github.com/bill-auger/git-branch-status/issues/][github-issues]
118122
* [https://notabug.org/bill-auger/git-branch-status/issues/][notabug-issues]
123+
* [https://pagure.io/git-branch-status/issues/][pagure-issues]
119124

120125

121-
[scrot]: http://bill-auger.github.io/git-branch-status-scrot.png "git-branch-status screenshot"
126+
[scrot]: http://bill-auger.github.io/git-branch-status-scrot.png "git-branch-status screen-shot"
122127
[github-issues]: https://github.com/bill-auger/git-branch-status/issues/
123128
[notabug-issues]: https://notabug.org/bill-auger/git-branch-status/issues/
129+
[pagure-issues]: https://pagure.io/git-branch-status/issues/

0 commit comments

Comments
 (0)