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:
Junio C Hamano 2021-12-10 14:35:08 -08:00
Родитель a9c84980d0 67ba13e5a4
Коммит a0f3df5d64
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -65,6 +65,9 @@ git jump diff --cached
# jump to merge conflicts
git jump merge
# documentation conflicts are hard; skip past them for now
git jump merge :^Documentation
# jump to all instances of foo_bar
git jump grep foo_bar

Просмотреть файл

@ -39,7 +39,7 @@ mode_diff() {
}
mode_merge() {
git ls-files -u |
git ls-files -u "$@" |
perl -pe 's/^.*?\t//' |
sort -u |
while IFS= read fn; do