rebase: fix typo (force_rebas -> force-rebas)
PATCH 1/3 rebase: fix typo (force_rebas -> force-rebas)
--- git-rebase.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-rebase.sh +1 -1
@@ -315,7 +315,7 @@ do --root) rebase_root=t ;; - -f|--f|--fo|--for|--forc|force|--force-r|--force-re|--force-reb|--force-reba|--force_rebas|--force-rebase) + -f|--f|--fo|--for|--forc|force|--force-r|--force-re|--force-reb|--force-reba|--force-rebas|--force-rebase) force_rebase=t ;; -*)
Signature · 1 line
1.6.2.22.gc2ac
PATCH 2/3 document --force-rebase
--- Documentation/git-rebase.txt | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +6 -0
@@ -258,6 +258,12 @@ OPTIONS context exist they all must match. By default no context is ever ignored. +-f:: +--force-rebase:: + Force the rebase even if the current branch is up to date. + Normally, if the current branch is up to date, the rebase is + aborted. + --whitespace=<option>:: This flag is passed to the 'git-apply' program (see linkgit:git-apply[1]) that applies the patch.
Signature · 1 line
1.6.2.22.gc2ac
Re: [PATCH 2/3] document --force-rebase
Documentation/git-rebase.txt OPTIONS · line 266
Quoted 6 lines · Michele Ballabio
+-f:: +--force-rebase::Documentation/git-rebase.txt +4
-0+ Force the rebase even if the current branch is up to date. + Normally, if the current branch is up to date, the rebase is + aborted. +
For the sake of brevity we say "up to date" in the error message from the command, but for people who look up the manual to figure out why their rebase is not rebasing with that error message, we may want to explain what the phrase means in this context. E.g.
... even if the branch is a descendant of the commit you are rebasing onto. Normally the command will exit with a message "Current branch is up to date" in such a situation.
PATCH v2 2/3 document --force-rebase
Words by Junio.
--- Documentation/git-rebase.txt | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +7 -0
@@ -258,6 +258,13 @@ OPTIONS context exist they all must match. By default no context is ever ignored. +-f:: +--force-rebase:: + Force the rebase even if the current branch is a descendant + of the commit you are rebasing onto. Normally the command will + exit with the message "Current branch is up to date" in such a + situation. + --whitespace=<option>:: This flag is passed to the 'git-apply' program (see linkgit:git-apply[1]) that applies the patch.
Signature · 1 line
1.6.2.22.gc2ac
Re: [PATCH v2 2/3] document --force-rebase
Hi,
Quoted 1 line · Michele Ballabio
Words by Junio.
Okay, but who arranged it? And who wrote the melody in the first place?
Ciao,
Dscho
P.S.: :-)
Re: [PATCH 2/3] document --force-rebase
In reply to Michele BallabioDocumentation/git-rebase.txt OPTIONS · line 266
Quoted 6 lines · Michele Ballabio
+-f:: +--force-rebase::Documentation/git-rebase.txt +4
-0+ Force the rebase even if the current branch is up to date. + Normally, if the current branch is up to date, the rebase is + aborted. +
For the sake of brevity we say "up to date" in the error message from the command, but for people who looks up the manual to figure out why their rebase is not rebasing with that error message, we may want to explain what the phrase means in this context. E.g.
... even if the branch is a descendant of the commit you are rebasing onto. Normally the command will exit with a message "Current branch is up to date" in such a situation.
Re: [PATCH 2/3] document --force-rebase
In reply to Michele BallabioHeya,
Quoted 4 lines · Michele Ballabio
Signed-off-by Michele Ballabio <[email protected]>---
Documentation/git-rebase.txt | 6 ++++++1 files changed, 6 insertions(+), 0 deletions(-)
Awesome, thanks! Perhaps you could, for extra brownie points, add a line to the --whitespace=fix documentation that it implies --force-rebase?
Signature · 3 lines
Cheers, Sverre Rabbelier
PATCH v3 2/3 document --force-rebase
Words by Junio.
---
Quoted 3 lines · Sverre Rabbelier
Awesome, thanks! Perhaps you could, for extra brownie points, add a line to the --whitespace=fix documentation that it implies --force-rebase?
You're right, I resent 3/3 for the same reason.
Documentation/git-rebase.txt | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +9 -0
@@ -258,10 +258,19 @@ OPTIONS context exist they all must match. By default no context is ever ignored. +-f:: +--force-rebase:: + Force the rebase even if the current branch is a descendant + of the commit you are rebasing onto. Normally the command will + exit with the message "Current branch is up to date" in such a + situation. + --whitespace=<option>:: This flag is passed to the 'git-apply' program (see linkgit:git-apply[1]) that applies the patch. Incompatible with the --interactive option. + If the option `fix` (or its equivalent `strip`) is used, it implies + --force-rebase. -i:: --interactive::
Signature · 1 line
1.6.2.22.gc2ac
PATCH v3 3/3 rebase: add options passed to git-am
In reply to Sverre RabbelierAdd the options --committer-date-is-author-date and --ignore-date to git-rebase. They were introduced in commit a79ec62d0 for git-am. These options imply --force-rebase.
--- Documentation/git-rebase.txt | 6 ++++++ git-rebase.sh | 4 ++++ 2 files changed, 10 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +6 -0
@@ -272,6 +272,12 @@ OPTIONS If the flag `fix` (or its equivalent `strip`) is used, it implies --force-rebase. +--committer-date-is-author-date:: +--ignore-date:: + These flags are passed to 'git-am' to easily change the dates + of the rebased commits (see linkgit:git-am[1]). + Both imply --force-rebase. + -i:: --interactive:: Make a list of the commits which are about to be rebased. Let the
git-rebase.sh +4 -0
@@ -309,6 +309,10 @@ do ;; esac ;; + --committer-date-is-author-date|--ignore-date) + git_am_opt="$git_am_opt $1" + force_rebase=t + ;; -C*) git_am_opt="$git_am_opt $1" ;;
Signature · 1 line
1.6.2.22.gc2ac
PATCH 3/3 rebase: add options passed to git-am
In reply to Michele BallabioAdd the options --committer-date-is-author-date and --ignore-date to git-rebase. They were introduced in commit a79ec62d0 for git-am.
---
I'm not sure if force_rebase should be set in this case.
Documentation/git-rebase.txt | 5 +++++ git-rebase.sh | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +5 -0
@@ -269,6 +269,11 @@ OPTIONS (see linkgit:git-apply[1]) that applies the patch. Incompatible with the --interactive option. +--committer-date-is-author-date:: +--ignore-date:: + These flags are passed to 'git-am' to easily change the dates + of the rebased commits (see linkgit:git-am[1]). + -i:: --interactive:: Make a list of the commits which are about to be rebased. Let the
git-rebase.sh +3 -0
@@ -309,6 +309,9 @@ do ;; esac ;; + --committer-date-is-author-date|--ignore-date) + git_am_opt="$git_am_opt $1" + ;; -C*) git_am_opt="$git_am_opt $1" ;;
Signature · 1 line
1.6.2.22.gc2ac
Re: [PATCH 3/3] rebase: add options passed to git-am
Quoted 7 lines · Michele Ballabio
Add the options --committer-date-is-author-date and --ignore-date to git-rebase. They were introduced in commit
a79ec62d0for git-am.Signed-off-by Michele Ballabio <[email protected]>---
I'm not sure if
force_rebaseshould be set in this case.
Good thinking.
These are clearly "I want to change these commit" request just like the "--whitespace=fix" option is, so I think it is probably a good idea.
PATCH v2 3/3 rebase: add options passed to git-am
Add the options --committer-date-is-author-date and --ignore-date to git-rebase. They were introduced in commit a79ec62d0 for git-am. These options imply --force-rebase.
--- Documentation/git-rebase.txt | 5 +++++ git-rebase.sh | 4 ++++ 2 files changed, 9 insertions(+), 0 deletions(-)
Documentation/git-rebase.txt +5 -0
@@ -270,6 +270,11 @@ OPTIONS (see linkgit:git-apply[1]) that applies the patch. Incompatible with the --interactive option. +--committer-date-is-author-date:: +--ignore-date:: + These flags are passed to 'git-am' to easily change the dates + of the rebased commits (see linkgit:git-am[1]). + -i:: --interactive:: Make a list of the commits which are about to be rebased. Let the
git-rebase.sh +4 -0
@@ -309,6 +309,10 @@ do ;; esac ;; + --committer-date-is-author-date|--ignore-date) + git_am_opt="$git_am_opt $1" + force_rebase=t + ;; -C*) git_am_opt="$git_am_opt $1" ;;
Signature · 1 line
1.6.2.22.gc2ac
Just a reminder, since this patch was probably dropped.
Quoted 18 lines · Michele Ballabio
Signed-off-by Michele Ballabio <[email protected]>--- git-rebase.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)git-rebase.sh +1
-1@@ -315,7 +315,7 @@ do --root) rebase_root=t ;; - -f|--f|--fo|--for|--forc|force|--force-r|--force-re|--force-reb|--force-reba|--force_rebas|--force-rebase) + -f|--f|--fo|--for|--forc|force|--force-r|--force-re|--force-reb|--force-reba|--force-rebas|--force-rebase) force_rebase=t ;; -*)