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

Re: [PATCH v9] ls-files: Add eol diagnostics

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:07:37

This one is severely whitespace damaged.

It is _possible_ for me to fix these up manually, but because there
is no guarantee that I caught them all (i.e. the end result may
contain some leading whitespaces you did not intend them to be
there, if the whitespace corruption did not break the syntax of the
diff), I'd rather not to do that.
+	Show line endings (<eolinfo>) and the text/eol attributes (<texteolattr>) of
files.
+	<eolinfo> is the file content identification used by Git when
wrapped
 diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index b6a7cb0..73b2ba6 100644
indented funnily
 @@ -170,6 +187,7 @@ static void show_ce_entry(const char *tag, const struct
cache_entry *ce)
wrapped
quoted hunk
 		       find_unique_abbrev(ce->sha1,abbrev),
 		       ce_stage(ce));
 	}
+	write_eolinfo(ce, ce->name);
 	write_name(ce->name);
 	if (debug_mode) {
 		const struct stat_data *sd = &ce->ce_stat_data;
@@ -433,6 +451,7 @@ int cmd_ls_files(int argc, const char **argv, const char
*cmd_prefix)
wrapped
+		git ls-files --eol $src* | sed -e 's!attr/[=a-z-]*!!g' -e 's/  */ /g' | sort
quoted
actual &&
wrapped.  For shell scripts, change the line immediately after '|',
reglardless of the length of the line; that would automatically
avoid unnecessarily overlong lines.
 checkout_files    native  true  "crlf"    CRLF  CRLF  CRLF         CRLF_mix_CR
 CRLF_nul
 +# Should be the last test case: remove some files from the worktree
+# This test assumes that "rm" can remove staged files
indented funnily.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help