Re: [PATCH] Allow hashes in git rebase --interactive --autosquash.

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

 



On Thu, Jun 17, 2010 at 8:55 AM, Peter Krefting <peter@xxxxxxxxxxxxxxxx> wrote:
> In addition to matching the "fixup!" and "squash!" commits to the commit
> message, also match the commit hash. This allows a commit message like
> "fixup! e83c5163316f89bfbde7d9ab23ca2e25604af290" to be detected as a
> fixup commit.
>
> Signed-off-by: Peter Krefting <peter@xxxxxxxxxxxxxxxx>
> ---
>
> I actually misread the git-rebase manual page to think that this was how
> "fixup!" and "squash!" was supposed to be used, and now I have so many
> "fixup! <hash>" commits to rebase that I felt it worth it to implement
> support for it... :-)

Heh. I have this alias for creating my fixup commits:

$ git help fixup
`git fixup' is aliased to `!f() { git commit -m "$(git show -s
--pretty='format:fixup! %s%n%nFixup for %h%n' "$@")"; }; f'

:-)

j.
--
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]