diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-06-25 03:51:08 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-26 23:44:03 +0200 |
commit | fcb3d0adc13b398c930814a5e0c886717acc1b70 (patch) | |
tree | a0a41abd59d4af738cce02163a1fa2b42e1d2334 /diff.h | |
parent | Merge branch 'jc/squash' (diff) | |
download | git-fcb3d0adc13b398c930814a5e0c886717acc1b70.tar.xz git-fcb3d0adc13b398c930814a5e0c886717acc1b70.zip |
add diff_flush_patch_id() to calculate the patch id
Call it like this:
unsigned char id[20];
if (diff_flush_patch_id(diff_options, id))
printf("And the patch id is: %s\n", sha1_to_hex(id));
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -184,4 +184,6 @@ extern int run_diff_files(struct rev_info *revs, int silent_on_removed); extern int run_diff_index(struct rev_info *revs, int cached); +extern int diff_flush_patch_id(struct diff_options *, unsigned char *); + #endif /* DIFF_H */ |