Files
git/Documentation
Andy Koppe a58dd835e9 pretty: add %(decorate[:<options>]) format
Add %(decorate[:<options>]) format that lists ref names similarly to the
%d format, but which allows the otherwise fixed prefix, suffix and
separator strings to be customized. Omitted options default to the
strings used in %d.

Rename expand_separator() function used to expand %x literal formatting
codes to expand_string_arg(), as it is now used on strings other than
separators.

Examples:
- %(decorate) is equivalent to %d.
- %(decorate:prefix=,suffix=) is equivalent to %D.
- %(decorate:prefix=[,suffix=],separator=%x3B) produces a list enclosed
in square brackets and separated by semicolons.

Test the format in t4205-log-pretty-formats.sh and document it in
pretty-formats.txt.

Signed-off-by: Andy Koppe <andy.koppe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-08-21 11:40:09 -07:00
..
2023-08-09 16:18:16 -07:00
2023-06-12 13:52:51 -07:00
2023-02-18 09:29:13 -08:00
2023-06-12 13:52:51 -07:00
2023-06-12 13:52:51 -07:00
2023-06-12 13:52:51 -07:00
2022-10-25 15:44:18 -07:00
2023-06-12 13:52:51 -07:00
2022-02-02 14:50:09 -08:00
2023-05-06 14:32:20 -07:00
2021-09-28 10:31:02 -07:00
2023-06-12 13:52:51 -07:00
2023-06-12 13:52:51 -07:00
2021-12-10 14:35:03 -08:00
2023-05-16 11:38:14 -07:00
2023-06-27 11:31:06 -07:00
2023-07-31 09:11:04 -07:00
2019-05-07 13:04:48 +09:00
2023-06-12 13:52:51 -07:00
2023-06-12 13:52:51 -07:00
2019-10-21 12:02:39 +09:00