From a3aacfc6c2cbeccb81e18d6906fcc47cf01456a0 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 14 Apr 2014 14:33:46 -0700 Subject: git-save: improve commit authorship data We used to always just commit as "subsurface@hohndel.org" because libgit-19 doesn't have the interfaces to do user name lookup. This does better if you have libgit-20, using "git_signature_default()" to get the actual user that does the saving. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- macos.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'macos.c') diff --git a/macos.c b/macos.c index 19ce9e89d..25d6fd73f 100644 --- a/macos.c +++ b/macos.c @@ -13,6 +13,9 @@ #include #include +void subsurface_user_info(struct user_info *info) +{ /* Nothing, let's use libgit2-20 on MacOS */ } + /* macos defines CFSTR to create a CFString object from a constant, * but no similar macros if a C string variable is supposed to be * the argument. We add this here (hardcoding the default allocator -- cgit v1.2.3-70-g09d2