Skip to content

Commit

Permalink
git-rebase: support --whitespace=<option>
Browse files Browse the repository at this point in the history
Pass --whitespace=<option> to git-apply.  Since git-apply and git-am
expect this, I'm always surprised when I try to give it to git-rebase
and it doesn't work.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
J. Bruce Fields authored and gitster committed Sep 8, 2007
1 parent b5ef6ac commit 059f446
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Documentation/git-rebase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ git-rebase - Forward-port local commits to the updated upstream head
SYNOPSIS
--------
[verse]
'git-rebase' [-i | --interactive] [-v | --verbose] [-m | --merge] [-C<n>]
[-p | --preserve-merges] [--onto <newbase>] <upstream> [<branch>]
'git-rebase' [-i | --interactive] [-v | --verbose] [-m | --merge]
[-C<n>] [ --whitespace=<option>] [-p | --preserve-merges]
[--onto <newbase>] <upstream> [<branch>]
'git-rebase' --continue | --skip | --abort

DESCRIPTION
Expand Down Expand Up @@ -209,6 +210,10 @@ OPTIONS
context exist they all must match. By default no context is
ever ignored.

--whitespace=<nowarn|warn|error|error-all|strip>::
This flag is passed to the `git-apply` program
(see gitlink:git-apply[1]) that applies the patch.

-i, \--interactive::
Make a list of the commits which are about to be rebased. Let the
user edit that list before rebasing. This mode can also be used to
Expand Down
5 changes: 4 additions & 1 deletion git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,11 @@ do
-v|--verbose)
verbose=t
;;
--whitespace=*)
git_am_opt="$git_am_opt $1"
;;
-C*)
git_am_opt=$1
git_am_opt="$git_am_opt $1"
shift
;;
-*)
Expand Down

0 comments on commit 059f446

Please sign in to comment.