Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] branch --edit-description: protect against mistyped branch name

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:57

Junio C Hamano [off-list ref] writes:
+		if (!ref_exists(branch_ref.buf)) {
+			strbuf_reset(&branch_ref);
+
+			if (!argc)
+				return error("No commit on branch '%s' yet.",
+					     branch_name);
+			else
+				return error("No such branch '%s'.", branch_name);
+		}
+		strbuf_reset(&branch_ref);
+
Of course these should be strbuf_release().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help