Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/simplify-parsing-commit-tree-S'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Jan 2015 19:38:39 +0000
(11:38 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Jan 2015 19:38:48 +0000
(11:38 -0800)
* rs/simplify-parsing-commit-tree-S:
commit-tree: simplify parsing of option -S using skip_prefix()
builtin/commit-tree.c
patch
|
blob
|
history
raw
(from parent 1:
d61e790
)
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;