Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit-tree: simplify parsing of option -S using skip_prefix()
author
René Scharfe
<l.s.r@web.de>
Wed, 24 Dec 2014 00:18:11 +0000
(
01:18
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 29 Dec 2014 17:32:45 +0000
(09:32 -0800)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-tree.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
c2e8e4b
)
diff --git
a/builtin/commit-tree.c
b/builtin/commit-tree.c
index 8a66c74e0fd405a06e6c767d385013ff7150db04..25aa2cdef3557c67a9482492a4d0294bc7b89b04 100644
(file)
--- a/
builtin/commit-tree.c
+++ b/
builtin/commit-tree.c
@@
-66,10
+66,8
@@
int cmd_commit_tree(int argc, const char **argv, const char *prefix)
continue;
}
- if (!memcmp(arg, "-S", 2)) {
- sign_commit = arg + 2;
+ if (skip_prefix(arg, "-S", &sign_commit))
continue;
- }
if (!strcmp(arg, "--no-gpg-sign")) {
sign_commit = NULL;