Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 5.8: add information to git-clean completion

Oliver Kiddle wrote on Thu, 27 Aug 2020 18:51 +0200:
> What exactly does the repeated use of -f do? Is it removing nested
> repositories or doing a clean in them. From my cursory testing, nested
> repositories seem to be ignored no-matter what arguments I give.

According to the current release of Documentation/git-clean.txt:

	If the Git configuration variable clean.requireForce is not set
	to false, 'git clean' will refuse to delete files or directories
	unless given -f or -i.  Git will refuse to modify untracked
	nested git repositories (directories with a .git subdirectory)
	unless a second -f is given.

So, for the description, how about:

    required by default; twice, removes untracked nested repositories

> Is it
> perhaps only submodules that it does anything with. If so, "submodules"
> is shorter than "nested repositories".

Messages sorted by: Reverse Date, Date, Thread, Author