Skip to content

Commit 67ba13e

Browse files
peffgitster
authored andcommitted
git-jump: pass "merge" arguments to ls-files
We currently throw away any arguments given to "git jump merge". We should instead pass them along to ls-files, since they're likely to be pathspecs. This matches the behavior of "git jump diff", etc. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 88d915a commit 67ba13e

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)