diff options
author | David Turner <dturner@twopensource.com> | 2015-08-10 13:52:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-11 13:48:15 -0700 |
commit | 41af65651d4333cd19ab4af3509fa2d08f3816ed (patch) | |
tree | 19a55a6e2d48d20fc6bee7f6f2a99f3ae7ba8f0d /builtin/show-ref.c | |
parent | Documentation/git-worktree: fix duplicated 'from' (diff) | |
download | tgif-41af65651d4333cd19ab4af3509fa2d08f3816ed.tar.xz |
worktrees: add find_shared_symref
Add a new function, find_shared_symref, which contains the heart of
die_if_checked_out, but works for any symref, not just HEAD. Refactor
die_if_checked_out to use the same infrastructure as
find_shared_symref.
Soon, we will use find_shared_symref to protect notes merges in
worktrees.
Signed-off-by: David Turner <dturner@twopensource.com>
Reviewed-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-ref.c')
0 files changed, 0 insertions, 0 deletions