summaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-03-15 15:16:33 -0700
committerJunio C Hamano <gitster@pobox.com>2017-03-15 15:16:33 -0700
commitbad6c3b73a6ff3e0e919f94c5ac3b75eb2a47892 (patch)
treedb095d4448bf5cfa842ad10093f0f2ce87e325ab /git-instaweb.sh
parente7e07d5a4fcc2a203d9873968ad3e6bd4d7419d7 (diff)
downloadgit-bad6c3b73a6ff3e0e919f94c5ac3b75eb2a47892.tar.gz
name-rev: refactor logic to see if a new candidate is a better name
When we encounter a new ref that could describe the commit we are looking at, we compare the name that is formed using that ref and the name we found so far and pick a better one. Factor the comparison logic out to a separate helper function, while keeping the current logic the same (i.e. a name that is based on an older tag is better, and if two tags of the same age can reach the commit, the one with fewer number of hops to reach the commit is better). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
0 files changed, 0 insertions, 0 deletions