My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ba2cb
)
branch: delete branch description if it's empty
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Thu, 3 Jan 2013 14:03:08 +0000
(21:03 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Jan 2013 15:43:12 +0000
(07:43 -0800)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
patch
|
blob
|
history
diff --git
a/builtin/branch.c
b/builtin/branch.c
index
0e060f2
..
a6d3350
100644
(file)
--- a/
builtin/branch.c
+++ b/
builtin/branch.c
@@
-700,7
+700,7
@@
static int edit_branch_description(const char *branch_name)
stripspace(&buf, 1);
strbuf_addf(&name, "branch.%s.description", branch_name);
- status = git_config_set(name.buf, buf.
buf
);
+ status = git_config_set(name.buf, buf.
len ? buf.buf : NULL
);
strbuf_release(&name);
strbuf_release(&buf);