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
This commit is contained in:
commit
a0f3df5d64
@ -65,6 +65,9 @@ git jump diff --cached
|
|||||||
# jump to merge conflicts
|
# jump to merge conflicts
|
||||||
git jump merge
|
git jump merge
|
||||||
|
|
||||||
|
# documentation conflicts are hard; skip past them for now
|
||||||
|
git jump merge :^Documentation
|
||||||
|
|
||||||
# jump to all instances of foo_bar
|
# jump to all instances of foo_bar
|
||||||
git jump grep foo_bar
|
git jump grep foo_bar
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ mode_diff() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mode_merge() {
|
mode_merge() {
|
||||||
git ls-files -u |
|
git ls-files -u "$@" |
|
||||||
perl -pe 's/^.*?\t//' |
|
perl -pe 's/^.*?\t//' |
|
||||||
sort -u |
|
sort -u |
|
||||||
while IFS= read fn; do
|
while IFS= read fn; do
|
||||||
|
Loading…
Reference in New Issue
Block a user