git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c2e8e4b
)
commit-tree: simplify parsing of option -S using skip_prefix()
author
René Scharfe
<redacted>
Wed, 24 Dec 2014 00:18:11 +0000
(
01:18
+0100)
committer
Junio C Hamano
<redacted>
Mon, 29 Dec 2014 17:32:45 +0000
(09:32 -0800)
Signed-off-by: Rene Scharfe <redacted>
Reviewed-by: Jonathan Nieder <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/commit-tree.c
patch
|
blob
|
history
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;
git clone https://git.99rst.org/PROJECT