git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter
@ 2010-02-08  2:36 Jacob Helwig
  2010-02-08  2:38 ` Jacob Helwig
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Helwig @ 2010-02-08  2:36 UTC (permalink / raw)
  To: git; +Cc: Jacob Helwig

Running filter-branch with --prune-empty and --commit-filter, no longer
incorrectly reports that you had tried to run '--filter-commit' in
combination with '--prune-empty'.
---

This problem with filter-branch's error message was originally brought up by
hipe in the IRC channel.

 git-filter-branch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index e95845c..88fb0f0 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -207,7 +207,7 @@ t,)
 ,*)
 	;;
 *)
-	die "Cannot set --prune-empty and --filter-commit at the same time"
+	die "Cannot set --prune-empty and --commit-filter at the same time"
 esac
 
 case "$force" in
-- 
1.7.0.rc1.50.g8424

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter
  2010-02-08  2:36 [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter Jacob Helwig
@ 2010-02-08  2:38 ` Jacob Helwig
  2010-02-08 10:10   ` Michael J Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Helwig @ 2010-02-08  2:38 UTC (permalink / raw)
  To: git; +Cc: Jacob Helwig

Running filter-branch with --prune-empty and --commit-filter, no longer
incorrectly reports that you had tried to run '--filter-commit' in
combination with '--prune-empty'.

Signed-off-by: Jacob Helwig <jacob.helwig@gmail.com>
---

Sorry for the re-send.  Forgot the SOB...

 git-filter-branch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index e95845c..88fb0f0 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -207,7 +207,7 @@ t,)
 ,*)
 	;;
 *)
-	die "Cannot set --prune-empty and --filter-commit at the same time"
+	die "Cannot set --prune-empty and --commit-filter at the same time"
 esac
 
 case "$force" in
-- 
1.7.0.rc1.50.g8424

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter
  2010-02-08  2:38 ` Jacob Helwig
@ 2010-02-08 10:10   ` Michael J Gruber
  2010-02-12  2:46     ` Jacob Helwig
  0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2010-02-08 10:10 UTC (permalink / raw)
  To: Jacob Helwig; +Cc: git

Jacob Helwig venit, vidit, dixit 08.02.2010 03:38:
> Running filter-branch with --prune-empty and --commit-filter, no longer
> incorrectly reports that you had tried to run '--filter-commit' in
> combination with '--prune-empty'.

In order to understand this sentence, I had to look twice at the patch text.

What's going on is that that typo was there from the beginning, right?
(Induced from the name of a script variable, I see.) How about:

Running filter-branch with --prune-empty and --commit-filter reports
"Cannot set --prune-empty and --filter-commit at the same time".

Change it to use the correct name "--commit-filter" of the option.


> Signed-off-by: Jacob Helwig <jacob.helwig@gmail.com>
> ---
> 
> Sorry for the re-send.  Forgot the SOB...
> 
>  git-filter-branch.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/git-filter-branch.sh b/git-filter-branch.sh
> index e95845c..88fb0f0 100755
> --- a/git-filter-branch.sh
> +++ b/git-filter-branch.sh
> @@ -207,7 +207,7 @@ t,)
>  ,*)
>  	;;
>  *)
> -	die "Cannot set --prune-empty and --filter-commit at the same time"
> +	die "Cannot set --prune-empty and --commit-filter at the same time"
>  esac
>  
>  case "$force" in

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter
  2010-02-08 10:10   ` Michael J Gruber
@ 2010-02-12  2:46     ` Jacob Helwig
  0 siblings, 0 replies; 4+ messages in thread
From: Jacob Helwig @ 2010-02-12  2:46 UTC (permalink / raw)
  To: git; +Cc: Michael J Gruber, Jacob Helwig

Running filter-branch with --prune-empty and --commit-filter reports:
  "Cannot set --prune-empty and --filter-commit at the same time".

Change it to use the correct option name: --commit-filter

Signed-off-by: Jacob Helwig <jacob.helwig@gmail.com>
---

Sorry for taking so long to respond to this.

I wasn't quite happy with the suggested commit message, but hopefully this will
make everyone happy.

 git-filter-branch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index e95845c..88fb0f0 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -207,7 +207,7 @@ t,)
 ,*)
 	;;
 *)
-	die "Cannot set --prune-empty and --filter-commit at the same time"
+	die "Cannot set --prune-empty and --commit-filter at the same time"
 esac
 
 case "$force" in
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-12  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-08  2:36 [PATCH] filter-branch: Fix error message for --prune-empty --commit-filter Jacob Helwig
2010-02-08  2:38 ` Jacob Helwig
2010-02-08 10:10   ` Michael J Gruber
2010-02-12  2:46     ` Jacob Helwig

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).