In recent versions of Git, the git-ls-tree command rejects the empty
path argument. We need to pass "." instead.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/yash/yash/trunk@3841
048f04df-13f5-43d7-8114-
9f9ceecaec24
* Window title update should now work on more terminals.
* Any predefined handlers for SIGTSTP, SIGTTIN, and SIGTTOU are
now cancelled so that jobs can be suspended properly.
+ . Updated completion scripts:
+ * git: pathnames are now correctly completed with the latest Git.
----------------------------------------------------------------------
Yash 2.47
* より多くの端末で動作するようウィンドウタイトルの設定方法を変更
* SIGTSTP, SIGTTIN, SIGTTOU でジョブが確実に停止するように
シグナルの無視を明示的にキャンセルするようにした
+ . 補完スクリプトを更新:
+ * git: 最新の Git でもファイルパスが正しく補完できるようにした
----------------------------------------------------------------------
Yash 2.47
-# (C) 2011-2017 magicant
+# (C) 2011-2018 magicant
# Completion script for the "git" command.
# Supports Git 2.9.2.
(*) opt= ;;
esac
complete -P "$PREFIX" $opt -- "${path##*/}"
- done 2>/dev/null \
- <(git ls-tree --full-tree "$tree" -- "$lspath")
+ done 2>/dev/null <(git ls-tree --full-tree "$tree" -- "${lspath:-.}")
}