[PATCH 2/7] builtin/blame: Add blame.format config option
- From
- Aleks Todorov <aleks.todorov.1337@gmail.com>
- Date
- Mar 1, 2025, 21:45 UTC
- Message-ID
- <20250301214652.536439-3-aleks.todorov.1337@gmail.com>
- In-Reply-To
- <20250301214652.536439-1-aleks.todorov.1337@gmail.com>
Source the format string from the user's configuration for convenience, in place of the "-F" option.
Signed-off-by: Aleks Todorov <aleks.todorov.1337@gmail.com> --- builtin/blame.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/builtin/blame.c b/builtin/blame.c index 437ac8bd73..891ac017f7 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -772,6 +772,11 @@ static int git_blame_config(const char *var, const char *value, } } + if (!strcmp(var, "blame.format")) { + git_config_string(&format, var, value); + return 0; + } + if (git_diff_heuristic_config(var, value, cb) < 0) return -1; if (userdiff_config(var, value) < 0)
-- 2.43.0