diff options
author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-09-02 09:20:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-09-02 15:20:43 -0700 |
commit | 883cb1b8f86d437a9d664ec046fa66e5e24f4a19 (patch) | |
tree | a7b411dc0b721e5e9d2950149b5596fe4ef8e885 /builtin/patch-id.c | |
parent | fac96dfbb1c24369ba7d37a5affd8adfe6c650fd (diff) |
sequencer: beautify subject of reverts of reverts
Instead of generating a silly-looking `Revert "Revert "foo""`, make it
a more humane `Reapply "foo"`.
This is done for two reasons:
- To cover the actually common case of just a double revert.
- To encourage people to rewrite summaries of recursive reverts by
setting an example (a subsequent commit will also do this explicitly
in the documentation).
To achieve these goals, the mechanism does not need to be particularly
sophisticated. Therefore, more complicated alternatives which would
"compress more efficiently" have not been implemented.
Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/patch-id.c')
0 files changed, 0 insertions, 0 deletions