[PATCH 2/7] builtin/blame: Add blame.format config option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux