Difference between --others and --other in git-ls-files

275 views Asked by At

I want to understand the difference between --others and --other in git-ls-files . I got same result when i use 'git-ls-files --others --ignored --exclude-standard' and 'git-ls-files --other -ignored --exclude-standard'.

1

There are 1 answers

2
Arkadiusz Drabczyk On

--other and --others have the same meaning even though --other is not specified in man git-ls-files. This is how Git parses options as explained;

Long options may be abbreviated, as long as the abbreviation is unambiguous.