Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread Thomas Ferris Nicolaisen
On Tuesday, July 24, 2012 5:11:04 PM UTC+2, lei yang wrote:
>
> > 
> > If you want to format-patch for example the last two commits on branch 
> B, 
> > this should do it: 
> > 
> > git format-patch B~2..B 
> > 
>
>
> Yes I know this, but I don't know how to fromat it with commit without 
> switching to B 
>
> eg: git format-patch commit1..commit2, 
>
> but How could I could I format branch B's? 



You don't have to switch to branch B to do the above command. You can do it 
on any branch you like, and still get patch files from branch B.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/kokB3LS4VMIJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread Thomas Ferris Nicolaisen
On Tuesday, July 24, 2012 5:11:04 PM UTC+2, lei yang wrote:
>
> > 
> > If you want to format-patch for example the last two commits on branch 
> B, 
> > this should do it: 
> > 
> > git format-patch B~2..B 
> > 
>
>
> Yes I know this, but I don't know how to fromat it with commit without 
> switching to B 
>
> eg: git format-patch commit1..commit2, 
>
> but How could I could I format branch B's? 



You don't have to switch to branch B to do the above command. You can do it 
on any branch you like, and still get patch files from branch B.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/5YvaKVdPYsMJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread lei yang
On Tue, Jul 24, 2012 at 7:53 PM, Thomas Ferris Nicolaisen
 wrote:
> On Tuesday, July 24, 2012 7:05:14 AM UTC+2, lei yang wrote:
>>
>> how to?
>>
>
> If you want to format-patch for example the last two commits on branch B,
> this should do it:
>
> git format-patch B~2..B
>


Yes I know this, but I don't know how to fromat it with commit without
switching to B

eg: git format-patch commit1..commit2,

but How could I could I format branch B's?


> The dot-dot (..) notation specifies a range from B-minus-two to B-head.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/T-UD6NjibKEJ.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread Konstantin Khomoutov
On Tue, 24 Jul 2012 04:53:26 -0700 (PDT)
Thomas Ferris Nicolaisen  wrote:

> > how to? 
> If you want to format-patch for example the last two commits on
> branch B, this should do it:
> 
> git format-patch B~2..B
> 
> The dot-dot (..) notation specifies a range *from *B-minus-two *to
> *B-head. 

The original poster was clearly lazy enough to read the bloody man page
which explains it all.  I think it would be good if we would not give
ready solutions for trivial problems which can be solved by simply
studying an appropriate manual page.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread Thomas Ferris Nicolaisen
On Tuesday, July 24, 2012 7:05:14 AM UTC+2, lei yang wrote:
>
> how to? 
>
>
If you want to format-patch for example the last two commits on branch B, 
this should do it:

git format-patch B~2..B

The dot-dot (..) notation specifies a range *from *B-minus-two *to *B-head. 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/T-UD6NjibKEJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-23 Thread lei yang
how to?

Lei

On Tue, Jul 24, 2012 at 12:18 AM, Konstantin Khomoutov
 wrote:
> On Mon, 23 Jul 2012 23:43:50 +0800
> lei yang  wrote:
>
>> I want to format patch from branch A, but current branch is B, is it
>> possible to format patch without switching to B?
> Yes.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to git format patch without swith to that branch

2012-07-23 Thread Konstantin Khomoutov
On Mon, 23 Jul 2012 23:43:50 +0800
lei yang  wrote:

> I want to format patch from branch A, but current branch is B, is it
> possible to format patch without switching to B?
Yes.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to git format patch without swith to that branch

2012-07-23 Thread lei yang
Hi

I want to format patch from branch A, but current branch is B, is it
possible to format patch without switching to B?

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.