[RFC] git rebase --edit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

sometimes, I need to edit a commit, and I find myself doing some
rather "mechanical" steps.

  $ git log #find the commit
  $ git rebase -i <commit>^
  $ #mark <commit> with 'e', save, exit editor

  Stopped at <commit>... <commit message>
  You can amend the commit now, with
  ...

Perhaps git-rebase --interactive could learn an option, say, --edit
<commit>, that

  1. determines where to start the rebase (instead of saying <commit>^ above),
  2. marks <commit> as 'e' in git-rebase-todo,
  3. start the edit process ("You can amend the commit now...").

The user would then proceed with the usual git-rebase --continue.

Is this a workable suggestion?

-- 
Cheers,
Ray Chuan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]