Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ref_transaction_delete(): remove "have_old" parameter
[gitweb.git]
/
builtin
/
commit-tree.c
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;