Skip to content

Commit

Permalink
Made local-commits work with all remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
tfendin committed Jan 3, 2022
1 parent b772251 commit 7aa178a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/git-local-commits
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}..@ $*

0 comments on commit 7aa178a

Please sign in to comment.