]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4013/diff.log_-m_-p_master
Merge branch 'jt/interpret-branch-name-fallback'
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Sep 2020 20:53:08 +0000 (13:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Sep 2020 20:53:09 +0000 (13:53 -0700)
commit0df670bc0b8b5499859829ba0889ce96a75304a6
treee95738e380852775d16806643a57ece2d4d39461
parent7364aee138326303371c1a17d3259912366c1b55
parentf24c30e0b6b13078d8fc7cd71b9989d28fd76610
Merge branch 'jt/interpret-branch-name-fallback'

"git status" has trouble showing where it came from by interpreting
reflog entries that recordcertain events, e.g. "checkout @{u}", and
gives a hard/fatal error.  Even though it inherently is impossible
to give a correct answer because the reflog entries lose some
information (e.g. "@{u}" does not record what branch the user was
on hence which branch 'the upstream' needs to be computed, and even
if the record were available, the relationship between branches may
have changed), at least hide the error to allow "status" show its
output.

* jt/interpret-branch-name-fallback:
  wt-status: tolerate dangling marks
  refs: move dwim_ref() to header file
  sha1-name: replace unsigned int with option struct
14 files changed:
builtin/checkout.c
builtin/log.c
builtin/merge.c
builtin/show-branch.c
builtin/stash.c
bundle.c
cache.h
commit.c
refs.c
refs.h
remote.c
revision.c
t/t7508-status.sh
wt-status.c