git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Bug, feature, or pilot error: format-patch
@ 2013-01-28 17:03 Gene Czarcinski
  2013-01-30 14:41 ` Gene Czarcinski
  0 siblings, 1 reply; 2+ messages in thread
From: Gene Czarcinski @ 2013-01-28 17:03 UTC (permalink / raw
  To: Git

I am not on the mailing list so please CC me.  I am running git 1.8.1 on 
Fedora 18.

I aam having what appears to be a problem.  Here is the sequence which 
generally describes what I did and what happened:

     git  checkout  -b  test1  master
     git  am  0001-simple-1.patch
     git  checkout  -b  test2  master
     git  am  0001-simple-2.patch        ### this is known to conflict 
with 0001-simple-1.patch
     git  checkout  test1
     git  merge  test2
[here git-merge detects a conflict]
     git  mergetool                               ###to resolve the conflict
[conflict resolved]
     git  commit  -a -s
     git  log
[shows two commits -- one for simple-2 and one for the merge]
     git  format-patch  master..HEAD
[two patch files created: 0001-simple-1.patch and 0002-simple-2.patch]
[0002-simple-2.patch and 0001-simple-2.patch are exactly equal and do 
not reflect the resolved conflict]

If you do git-diff between <commit-patch-1> and HEAD, you get something 
different that you got from format-patch.

1. Bug ... format-patch is broken

2. Feature ... that is the way it works

3. Pilot error ... ??

I can create a good version of patch-2 manually but should I have to?

Color me foolish but I assumed I could do git-format-patch in one branch 
and then use git-am to recreate that branch elsewhere.

Gene

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug, feature, or pilot error: format-patch
  2013-01-28 17:03 Bug, feature, or pilot error: format-patch Gene Czarcinski
@ 2013-01-30 14:41 ` Gene Czarcinski
  0 siblings, 0 replies; 2+ messages in thread
From: Gene Czarcinski @ 2013-01-30 14:41 UTC (permalink / raw
  Cc: Git

Ping

It would be useful to get some comment on this

On 01/28/2013 12:03 PM, Gene Czarcinski wrote:
> I am not on the mailing list so please CC me.  I am running git 1.8.1 on
> Fedora 18.
>
> I aam having what appears to be a problem.  Here is the sequence which
> generally describes what I did and what happened:
>
>      git  checkout  -b  test1  master
>      git  am  0001-simple-1.patch
>      git  checkout  -b  test2  master
>      git  am  0001-simple-2.patch        ### this is known to conflict
> with 0001-simple-1.patch
>      git  checkout  test1
>      git  merge  test2
> [here git-merge detects a conflict]
>      git  mergetool                               ###to resolve the
> conflict
> [conflict resolved]
>      git  commit  -a -s
>      git  log
> [shows two commits -- one for simple-2 and one for the merge]
>      git  format-patch  master..HEAD
> [two patch files created: 0001-simple-1.patch and 0002-simple-2.patch]
> [0002-simple-2.patch and 0001-simple-2.patch are exactly equal and do
> not reflect the resolved conflict]
>
> If you do git-diff between <commit-patch-1> and HEAD, you get something
> different that you got from format-patch.
>
> 1. Bug ... format-patch is broken
>
> 2. Feature ... that is the way it works
>
> 3. Pilot error ... ??
>
> I can create a good version of patch-2 manually but should I have to?
>
> Color me foolish but I assumed I could do git-format-patch in one branch
> and then use git-am to recreate that branch elsewhere.
>
> Gene

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-30 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 17:03 Bug, feature, or pilot error: format-patch Gene Czarcinski
2013-01-30 14:41 ` Gene Czarcinski

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).