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

Re: [PATCH 2/2 v2] verify_filename: ask the caller to chose the kind of diagnosis

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:54:08

Junio C Hamano [off-list ref] writes:
quoted
@@ -80,14 +86,28 @@ static void NORETURN die_verify_filename(const char *prefix, const char *arg)
  * as true, because even if such a filename were to exist, we want
  * it to be preceded by the "--" marker (or we want the user to
  * use a format like "./-filename")
+ *
+ * The "diagnose_misspelt_rev" is used to provide a user-friendly
+ * diagnosis. If 0, the diagnosis will try to diagnose "name" as an
+ * invalid object name (e.g. HEAD:foo). If non-zero, the diagnosis
+ * will only complain about an inexisting file.
I have a feeling that "if 0/if non-zero" above are backwards.
Oops, right. Thanks,

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help