* [PATCH] Documentation/git-clean: Document --force --force
@ 2012-12-14 1:46 Soren Brinkmann
2012-12-20 23:37 ` Soren Brinkmann
0 siblings, 1 reply; 4+ messages in thread
From: Soren Brinkmann @ 2012-12-14 1:46 UTC (permalink / raw)
To: git; +Cc: Soren Brinkmann
This patch documents the behavior of 'git clean' when
encountering nested git repositories.
Such repositories are only deleted if '-f' is passed twice
to 'git clean'.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
---
Documentation/git-clean.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt
index 9f42c0d..0b31454 100644
--- a/Documentation/git-clean.txt
+++ b/Documentation/git-clean.txt
@@ -23,6 +23,9 @@ example, be useful to remove all build products.
If any optional `<path>...` arguments are given, only those paths
are affected.
+Nested git repositories are not removed unless the '-f' option is
+passed to 'git clean' twice.
+
OPTIONS
-------
-d::
@@ -35,6 +38,8 @@ OPTIONS
--force::
If the git configuration variable clean.requireForce is not set
to false, 'git clean' will refuse to run unless given -f or -n.
+ Pass this option twice to 'git clean' in order to also remove
+ nested git repositories.
-n::
--dry-run::
--
1.8.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/git-clean: Document --force --force
2012-12-14 1:46 [PATCH] Documentation/git-clean: Document --force --force Soren Brinkmann
@ 2012-12-20 23:37 ` Soren Brinkmann
2012-12-21 3:01 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Soren Brinkmann @ 2012-12-20 23:37 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Ping?
On Thu, Dec 13, 2012 at 05:46:55PM -0800, Soren Brinkmann wrote:
> This patch documents the behavior of 'git clean' when
> encountering nested git repositories.
> Such repositories are only deleted if '-f' is passed twice
> to 'git clean'.
>
> Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
> ---
> Documentation/git-clean.txt | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt
> index 9f42c0d..0b31454 100644
> --- a/Documentation/git-clean.txt
> +++ b/Documentation/git-clean.txt
> @@ -23,6 +23,9 @@ example, be useful to remove all build products.
> If any optional `<path>...` arguments are given, only those paths
> are affected.
>
> +Nested git repositories are not removed unless the '-f' option is
> +passed to 'git clean' twice.
> +
> OPTIONS
> -------
> -d::
> @@ -35,6 +38,8 @@ OPTIONS
> --force::
> If the git configuration variable clean.requireForce is not set
> to false, 'git clean' will refuse to run unless given -f or -n.
> + Pass this option twice to 'git clean' in order to also remove
> + nested git repositories.
>
> -n::
> --dry-run::
> --
> 1.8.0.2
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/git-clean: Document --force --force
2012-12-20 23:37 ` Soren Brinkmann
@ 2012-12-21 3:01 ` Junio C Hamano
2012-12-21 17:09 ` Soren Brinkmann
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2012-12-21 3:01 UTC (permalink / raw)
To: Soren Brinkmann; +Cc: git
Soren Brinkmann <soren.brinkmann@xilinx.com> writes:
> Ping?
I *think* it is a mistake for the command to remove a separate
project repository within, with any number of "-f", so I'd rather
see a patch to fix it, instead of casting such a misbehaviour as a
feature in stone by documenting it.
I dunno.
> On Thu, Dec 13, 2012 at 05:46:55PM -0800, Soren Brinkmann wrote:
>> This patch documents the behavior of 'git clean' when
>> encountering nested git repositories.
>> Such repositories are only deleted if '-f' is passed twice
>> to 'git clean'.
>>
>> Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
>> ---
>> Documentation/git-clean.txt | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt
>> index 9f42c0d..0b31454 100644
>> --- a/Documentation/git-clean.txt
>> +++ b/Documentation/git-clean.txt
>> @@ -23,6 +23,9 @@ example, be useful to remove all build products.
>> If any optional `<path>...` arguments are given, only those paths
>> are affected.
>>
>> +Nested git repositories are not removed unless the '-f' option is
>> +passed to 'git clean' twice.
>> +
>> OPTIONS
>> -------
>> -d::
>> @@ -35,6 +38,8 @@ OPTIONS
>> --force::
>> If the git configuration variable clean.requireForce is not set
>> to false, 'git clean' will refuse to run unless given -f or -n.
>> + Pass this option twice to 'git clean' in order to also remove
>> + nested git repositories.
>>
>> -n::
>> --dry-run::
>> --
>> 1.8.0.2
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Documentation/git-clean: Document --force --force
2012-12-21 3:01 ` Junio C Hamano
@ 2012-12-21 17:09 ` Soren Brinkmann
0 siblings, 0 replies; 4+ messages in thread
From: Soren Brinkmann @ 2012-12-21 17:09 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Soren Brinkmann, git
On Thu, Dec 20, 2012 at 07:01:41PM -0800, Junio C Hamano wrote:
> Soren Brinkmann <soren.brinkmann@xilinx.com> writes:
>
> > Ping?
>
> I *think* it is a mistake for the command to remove a separate
> project repository within, with any number of "-f", so I'd rather
> see a patch to fix it, instead of casting such a misbehaviour as a
> feature in stone by documenting it.
>
> I dunno.
Since I use this feature, I naturally have to disagree. But fair point. And with
the patch rectifying git-clean output it's probably tolerable.
Though, what would be your way of cleaning files/dirs from a repository where
git-clean will report to have some left undeleted? Manually calling rm -rf?
Soren
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-21 17:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 1:46 [PATCH] Documentation/git-clean: Document --force --force Soren Brinkmann
2012-12-20 23:37 ` Soren Brinkmann
2012-12-21 3:01 ` Junio C Hamano
2012-12-21 17:09 ` Soren Brinkmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).