[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: [PATCH/RFC] rebase: new convenient option to edit a single commit
From:       "Philip Oakley" <philipoakley () iee ! org>
Date:       2014-02-28 17:14:10
Message-ID: F6E4FBE2B31243C5BA75DB824D74C3DC () PhilipOakley
[Download RAW message or body]

From: "Jeff King" <peff@peff.net>
> I'd expect "-$n" to mean "rebase the last $n commits" (as opposed to
> everything not in the upstream). That does not work currently, of
> course, but:
>
>  1. It has the potential to confuse people who read it, since it's
>     unlike what "-1" means in most of the rest of git.
>
>  2. It closes the door if we want to support "-$n" in the future.
>

Yeah, "rebase the last $n commits" would be a nice touch.

git rebase -i -10 --onto v1.9.0  # rebase the last 10 commits in this 
branch etc.

Philip 

--
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic