Re: [PATCH v5 0/3] interactive git clean
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 3, 2013, 16:07 UTC
- Message-ID
- <7v4nekyrmb.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <cover.1367551846.git.worldhello.net@gmail.com>
Jiang Xin <worldhello.net@gmail.com> writes:
Show 14 quoted lines
> The interactive git clean combines `git clean -n` and `git clean -f` > together to do safe cleaning, and has more features. > > First it displays what would be removed in columns (so that you can > see them all in one screen). The user must confirm before actually > cleaning. > > WARNING: The following items will be removed permanently. Press "y" > WARNING: to start cleaning, and press "n" to abort the cleaning. > WARNING: You can also enter the "edit" mode, and select items > WARNING: to be excluded from the cleaning. > > What would be removed... What would be removed... > What would be removed... What would be removed...
To a user who explicitly _asked_ to run the interactive mode, I find these four warning lines that shout at the user in all caps way overkill. I would have expected the output to begin with a line to explain what it is listing (e.g. "Cleaning the following files:"), the list and then
Remove (Yes/no/edit/?) ?
The existing "add -p" prompt uses this trick to hint the user that a further help is available by typing "?", and it is a good example to follow.