summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-04-14 14:33:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-14 16:07:59 -0700
commita3aacfc6c2cbeccb81e18d6906fcc47cf01456a0 (patch)
treee5d5554cfd5883fbcf650e6a1bb041e1c8575ed9 /dive.h
parent7e1d8724c5e9800ade5590ff96d8290196755036 (diff)
downloadsubsurface-a3aacfc6c2cbeccb81e18d6906fcc47cf01456a0.tar.gz
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 <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 89497b75a..62d57d6cc 100644
--- a/dive.h
+++ b/dive.h
@@ -714,6 +714,12 @@ extern const char *saved_git_id;
extern void clear_git_id(void);
extern void set_git_id(const struct git_oid *);
+struct user_info {
+ const char *name;
+ const char *email;
+};
+
+extern void subsurface_user_info(struct user_info *);
extern int subsurface_rename(const char *path, const char *newpath);
extern int subsurface_open(const char *path, int oflags, mode_t mode);
extern FILE *subsurface_fopen(const char *path, const char *mode);