git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cg-mkpatch use case
@ 2006-05-02  7:47 Belmar-Letelier
  2006-05-02 21:41 ` Martin Langhoff
  2006-05-02 21:57 ` Petr Baudis
  0 siblings, 2 replies; 5+ messages in thread
From: Belmar-Letelier @ 2006-05-02  7:47 UTC (permalink / raw)
  To: git

Hello,

I have 3 questions about cg-mkpatch

1. I've receive a file "xxx.patch", this content came from
   cg-mkpatch, but I can't apply it.
   For example if I try git-am I get::

     $ git-am --signoff xxx.patch
     Patch does not have a valid e-mail address.

   What is the Cogito way to apply the result of "cg-mkpatch"


2. What are the difference between usecases with "cg-mkpatch"
   and "git-format-patch" ?


3. It seem that if a commit as a binary file they are no way to manage
   it by email patches. Any plan about this in Cogito ?


-- 
Luis

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

* Re: cg-mkpatch use case
  2006-05-02  7:47 cg-mkpatch use case Belmar-Letelier
@ 2006-05-02 21:41 ` Martin Langhoff
  2006-05-02 21:57 ` Petr Baudis
  1 sibling, 0 replies; 5+ messages in thread
From: Martin Langhoff @ 2006-05-02 21:41 UTC (permalink / raw)
  To: Belmar-Letelier; +Cc: git

On 5/2/06, Belmar-Letelier <luis@itaapy.com> wrote:
>    What is the Cogito way to apply the result of "cg-mkpatch"

AFAIK, cg-patch. However, cg-mkpatch appeared before cg-patch, so you
may have a version of Cogito without cg-patch.

> 2. What are the difference between usecases with "cg-mkpatch"
>    and "git-format-patch" ?

If you are familiar with git tools, use them instead of cg tools ;-)

Cg is simpler, so if you have relatively simple needs, or a team with
simple needs that doesn't need to know all the git tricks and
internals, it can be a timesaver. In my team, people start with Cg and
eventually evolve into using more and more of git.

cheers,


martin

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

* Re: cg-mkpatch use case
  2006-05-02  7:47 cg-mkpatch use case Belmar-Letelier
  2006-05-02 21:41 ` Martin Langhoff
@ 2006-05-02 21:57 ` Petr Baudis
  2006-05-02 22:19   ` Martin Langhoff
  1 sibling, 1 reply; 5+ messages in thread
From: Petr Baudis @ 2006-05-02 21:57 UTC (permalink / raw)
  To: Belmar-Letelier; +Cc: git

  Hi,

Dear diary, on Tue, May 02, 2006 at 09:47:26AM CEST, I got a letter
where Belmar-Letelier <luis@itaapy.com> said that...
> I have 3 questions about cg-mkpatch
> 
> 1. I've receive a file "xxx.patch", this content came from
>   cg-mkpatch, but I can't apply it.
>   For example if I try git-am I get::
> 
>     $ git-am --signoff xxx.patch
>     Patch does not have a valid e-mail address.
> 
>   What is the Cogito way to apply the result of "cg-mkpatch"

  cg-mkpatch is a very old tool which has been long neglected and
not many people actually use it nowadays, I believe. You can apply it
back using cg-patch (or even patch itself, or git-apply if you are
lucky), but it won't automagically extract the commit message and
authorship information.

> 2. What are the difference between usecases with "cg-mkpatch"
>   and "git-format-patch" ?

  git-format-patch outputs stuff in the mailbox format while cg-mkpatch
outputs it in a more "human readable" (well, but quite historical)
format, but really, you probably want to use git-format-patch in almost
every case. In the (probably relatively near) future, cg-mkpatch might
become merely a git-format-patch wrapper.

> 3. It seem that if a commit as a binary file they are no way to manage
>   it by email patches. Any plan about this in Cogito ?

  Not any clear plans. I will welcome patches but it is not high
priority for me currently.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.

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

* Re: cg-mkpatch use case
  2006-05-02 21:57 ` Petr Baudis
@ 2006-05-02 22:19   ` Martin Langhoff
  2006-05-02 22:34     ` Petr Baudis
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Langhoff @ 2006-05-02 22:19 UTC (permalink / raw)
  To: Petr Baudis; +Cc: Belmar-Letelier, git

On 5/3/06, Petr Baudis <pasky@suse.cz> wrote:
> not many people actually use it nowadays, I believe. You can apply it
> back using cg-patch (or even patch itself, or git-apply if you are
> lucky), but it won't automagically extract the commit message and
> authorship information.

Erm... I don't personally use it, but cg-patch --long-help tells me...

-c::
        Automatically extract the commit message and authorship information
        (if provided) from the patch and commit it after applying it
        successfuly.

Truth in advertising? ;-)

cheers,


martin

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

* Re: cg-mkpatch use case
  2006-05-02 22:19   ` Martin Langhoff
@ 2006-05-02 22:34     ` Petr Baudis
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Baudis @ 2006-05-02 22:34 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: Belmar-Letelier, git

Dear diary, on Wed, May 03, 2006 at 12:19:00AM CEST, I got a letter
where Martin Langhoff <martin.langhoff@gmail.com> said that...
> On 5/3/06, Petr Baudis <pasky@suse.cz> wrote:
> >not many people actually use it nowadays, I believe. You can apply it
> >back using cg-patch (or even patch itself, or git-apply if you are
> >lucky), but it won't automagically extract the commit message and
> >authorship information.
> 
> Erm... I don't personally use it, but cg-patch --long-help tells me...
> 
> -c::
>        Automatically extract the commit message and authorship information
>        (if provided) from the patch and commit it after applying it
>        successfuly.
> 
> Truth in advertising? ;-)

Uhm, no, it just didn't stick in my mind in the storm of cg-patch
improvements. :-) Oops.

So, YES, there IS a way to apply cg-mkpatches preserving autorship and
everything - cg-patch -c. Sorry for the confusion. ;-)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.

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

end of thread, other threads:[~2006-05-02 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-02  7:47 cg-mkpatch use case Belmar-Letelier
2006-05-02 21:41 ` Martin Langhoff
2006-05-02 21:57 ` Petr Baudis
2006-05-02 22:19   ` Martin Langhoff
2006-05-02 22:34     ` Petr Baudis

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 NNTP newsgroup(s).