diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-06-13 19:18:26 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-08 15:31:04 -0700 |
commit | 080739ba1db7897dde53427937acc011ea98a006 (patch) | |
tree | c7f83399881e31826cc3ea6af0c55f4f8badc205 /Documentation/RelNotes/1.7.12.4.txt | |
parent | worktree: add "unlock" command (diff) | |
download | tgif-080739ba1db7897dde53427937acc011ea98a006.tar.xz |
worktree.c: find_worktree() search by path suffix
This allows the user to do something like "worktree lock foo" or
"worktree lock to/foo" instead of "worktree lock /long/path/to/foo" if
it's unambiguous.
With completion support it could be quite convenient. While this base
name search can be done in the same worktree iteration loop, the code is
split into a separate function for clarity.
Suggested-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.12.4.txt')
0 files changed, 0 insertions, 0 deletions