Re: git-am and workflow question

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

 



Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx> writes:

> Thanks.  Have there been any thoughts on having git-am apply the patch
> and then let the user do some modifications before the commit?   I
> kinda did this by hand by doing the following:
>
> git-am -i ...
> < suspend >
> patch -p1 < .dotest/patch
> < modify >
> git-diff > .dotest/patch
> < cleanup >
> < resume >

If you are using "am -i", I think the above is already there (I
mean, you should not have to do ^Z where you write <suspend>).
When you get the interactive prompt:

	Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all 

I think you can edit $dotest/patch in whatever way.

However, if I were to do bulk application _with_ incremental
fixup (which I think is a combination that would not work very
well for the way I work, though), I would probably have two
windows (I work inside "screen", so I would use two screens),
and run "am -i" in one and run shell in the other.  Normally I
would just say 'y' to the prompt, and after applying something I
might want to do fixups, I would go to the shell, do fixups and
"commit --amend", come back and let "am -i" to continue with the
next patch.


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