Skip to content

Commit a0f3df5

Browse files
committed
Merge branch 'jk/jump-merge-with-pathspec'
The "merge" subcommand of "git jump" (in contrib/) silently ignored pathspec and other parameters. * jk/jump-merge-with-pathspec: git-jump: pass "merge" arguments to ls-files
2 parents a9c8498 + 67ba13e commit a0f3df5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contrib/git-jump/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ git jump diff --cached
6565
# jump to merge conflicts
6666
git jump merge
6767

68+
# documentation conflicts are hard; skip past them for now
69+
git jump merge :^Documentation
70+
6871
# jump to all instances of foo_bar
6972
git jump grep foo_bar
7073

contrib/git-jump/git-jump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mode_diff() {
3939
}
4040

4141
mode_merge() {
42-
git ls-files -u |
42+
git ls-files -u "$@" |
4343
perl -pe 's/^.*?\t//' |
4444
sort -u |
4545
while IFS= read fn; do

0 commit comments

Comments
 (0)