threads / patch / 20440

patchgit-ls-files.txt: clarify what "other files" mean for --other

Subject: [PATCH] git-ls-files.txt: clarify what "other files" mean for --other

## tl;dr

3 messages between Aug 6, 2009 and Aug 7, 2009. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Matthieu Moy· Aug 6, 2009, 15:11 UTC · lore
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Actually, if it was not about backward compatibility, I'd just replace
-o, --other with -u, --untracked and talk about "untracked" everywhere,
but compatibility matters more than consistancy for plumbing.
 Documentation/git-ls-files.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/git-ls-files.txt +1 −1
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index 057a021..021066e 100644
--- a/Documentation/git-ls-files.txt
+++ b/Documentation/git-ls-files.txt
@@ -44,7 +44,7 @@ OPTIONS
 
 -o::
 --others::
-	Show other files in the output
+	Show other (i.e. untracked) files in the output
 
 -i::
 --ignored::
-- 
1.6.4.55.gc63c6.dirty
Junio C Hamano· Aug 6, 2009, 20:44 UTC · re: Matthieu Moy · lore

Re: [PATCH] git-ls-files.txt: clarify what "other files" mean for --other

Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 5 quoted lines
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> Actually, if it was not about backward compatibility, I'd just replace
> -o, --other with -u, --untracked and talk about "untracked" everywhere,
> but compatibility matters more than consistancy for plumbing.

"ls-files -u" talks about (u)nmerged files. What consistency did you have in mind?

Matthieu Moy· Aug 7, 2009, 08:15 UTC · re: Junio C Hamano · lore

Re: [PATCH] git-ls-files.txt: clarify what "other files" mean for --other

Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>
>> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
>> ---
>> Actually, if it was not about backward compatibility, I'd just replace
>> -o, --other with -u, --untracked and talk about "untracked" everywhere,
>> but compatibility matters more than consistancy for plumbing.
>
> "ls-files -u" talks about (u)nmerged files.
(forgot this, so -u is even less an option)
> What consistency did you have in mind?

I found no place outside git ls-files where Git talks about "other" files. Everywhere else, it talks about Untracked files.

As for the -u option, git status/commit -u[mode] is for Untracked files, not unmerged ones.

-- Matthieu

← back to recent threads