diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-11-22 13:28:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-25 11:46:36 +0900 |
commit | dfe86fa06bdc46f1e5bf1f55e8571bb9a088d20c (patch) | |
tree | 97e083caff70c0d586c156153af603b2999e192f /compat/regex/regex.c | |
parent | 4f07c45e25810700cec57c6b01ca9ff97bfb6840 (diff) |
remote set-head: better output for --auto
Currently, set-head --auto will print a message saying "remote/HEAD set
to branch", which implies something was changed.
Change the output of --auto, so the output actually reflects what was
done: a) set a previously unset HEAD, b) change HEAD because remote
changed or c) no updates. As edge cases, if HEAD is changed from
a previous symbolic reference that was not a remote branch, explicitly
call attention to this fact, and also notify the user if the previous
reference was not a symbolic reference.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex/regex.c')
0 files changed, 0 insertions, 0 deletions