Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.c: treat RUN_SETUP_GENTLY and RUN_SETUP as mutually exclusive
author
Luis R. Rodriguez
<mcgrof@suse.com>
Tue, 22 Apr 2014 00:47:56 +0000
(17:47 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 22 Apr 2014 19:37:02 +0000
(12:37 -0700)
This saves us a few branches when RUN_SETUP is set up.
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0bc85ab
)
diff --git
a/git.c
b/git.c
index 7cf2953eff47ca91b9a134e2e810fea1fc53e386..32f4f6cb899c8b1862c2f7aca3f26b2b8d05968f 100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-290,7
+290,7
@@
static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
if (!help) {
if (p->option & RUN_SETUP)
prefix = setup_git_directory();
- if (p->option & RUN_SETUP_GENTLY) {
+
else
if (p->option & RUN_SETUP_GENTLY) {
int nongit_ok;
prefix = setup_git_directory_gently(&nongit_ok);
}