-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #951 from tfendin/local-commits-all-remotes
- Loading branch information
Showing
4 changed files
with
18 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
ref=$(git symbolic-ref HEAD) | ||
branch=${ref#refs/heads/} | ||
|
||
git log origin/${branch}..${branch} $* | ||
git log @{upstream}..@ $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,23 @@ | ||
.\" generated with Ronn/v0.7.3 | ||
.\" http://github.com/rtomayko/ronn/tree/0.7.3 | ||
. | ||
.TH "GIT\-LOCAL\-COMMITS" "1" "October 2017" "" "Git Extras" | ||
. | ||
.\" generated with Ronn-NG/v0.9.1 | ||
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 | ||
.TH "GIT\-LOCAL\-COMMITS" "1" "January 2022" "" "Git Extras" | ||
.SH "NAME" | ||
\fBgit\-local\-commits\fR \- List local commits | ||
. | ||
.SH "SYNOPSIS" | ||
\fBgit\-local\-commits\fR <args> | ||
. | ||
.SH "DESCRIPTION" | ||
Lists commits in the local branch that have not been pushed to origin\. | ||
. | ||
Lists commits in the local branch that have not been pushed to the remote tracked branch\. This requires that HEAD points to a branch which is tracking another branch\. | ||
.SH "OPTIONS" | ||
<args> | ||
. | ||
.P | ||
All arguments passed to \fBgit\-local\-commits\fR will be passed directly to \fBgit\-log\fR\. | ||
. | ||
.SH "EXAMPLES" | ||
. | ||
.nf | ||
|
||
$ git local\-commits \-\-graph | ||
. | ||
.fi | ||
. | ||
.SH "AUTHOR" | ||
Written by Michael Komitee <\fImkomitee@gmail\.com\fR> | ||
. | ||
.SH "REPORTING BUGS" | ||
<\fIhttps://github\.com/tj/git\-extras/issues\fR> | ||
. | ||
.SH "SEE ALSO" | ||
<\fIhttps://github\.com/tj/git\-extras\fR> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters