diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-23 23:41:08 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-23 11:41:25 -0700 |
commit | 23e714df91cb8d824f6fd0594cd80c8a7dd9b751 (patch) | |
tree | bee0535ec2c6615b5aabf689b087841a8fca0d20 /git-rebase.sh | |
parent | branch: bump get_head_description() to the top (diff) | |
download | tgif-23e714df91cb8d824f6fd0594cd80c8a7dd9b751.tar.xz |
branch: roll show_detached HEAD into regular ref_list
Remove show_detached() and make detached HEAD to be rolled into
regular ref_list by adding REF_DETACHED_HEAD as a kind of branch and
supporting the same in append_ref(). This eliminates the need for an
extra function and helps in easier porting of branch.c to use
ref-filter APIs.
Before show_detached() used to check if the HEAD branch satisfies the
'--contains' option, now that is taken care by append_ref().
Based-on-patch-by: Jeff King <peff@peff.net>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase.sh')
0 files changed, 0 insertions, 0 deletions