* stGIT: commit vs export vs mail
@ 2006-02-17 21:09 Jesse Brandeburg
2006-02-17 22:12 ` Catalin Marinas
0 siblings, 1 reply; 4+ messages in thread
From: Jesse Brandeburg @ 2006-02-17 21:09 UTC (permalink / raw)
To: git
So I am using stgit .8 right now, and I'm having a hard time figuring out
what the correct workflow should be for using stg and then committing a
change
Here is what I've been doing:
stg new test
enter my short description on first line
enter my long description on next lines.
vi file
stg refresh
stg mail <blah blah blah>
or
stg commit
Problem that I'm having right now is that the templates do the right thing
for mail, but, the commit only puts in the "enter my..." text.
Is there a template based way to automatically append the author in the
Signed-off-by: line when i do stg commit?
I realize that I could put Signed-off-by in the log by hand (or even in
.git/patchdescr.tmpl which i just found) but it would be cool if the
commit just had something like patchmail.tmpl (maybe call it
commitdescr.tmpl or something?)
thanks for any opinions or instruction.
Jesse
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stGIT: commit vs export vs mail
2006-02-17 21:09 stGIT: commit vs export vs mail Jesse Brandeburg
@ 2006-02-17 22:12 ` Catalin Marinas
2006-02-18 2:11 ` Jesse Brandeburg
0 siblings, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2006-02-17 22:12 UTC (permalink / raw)
To: Jesse Brandeburg; +Cc: git
Jesse Brandeburg wrote:
> So I am using stgit .8 right now, and I'm having a hard time figuring
> out what the correct workflow should be for using stg and then
> committing a change
>
> Here is what I've been doing:
> stg new test
> enter my short description on first line
> enter my long description on next lines.
> vi file
> stg refresh
> stg mail <blah blah blah>
> or
> stg commit
There is no "or" above but only "and maybe". The 'commit' command is
only used to permanently store a set of patches into the repository.
After that, you should not be able to change them anymore (well, someone
just sent me a patch for an uncommit command). I only use this command
when I work in the "maintainer" mode on StGIT. For contributing patches,
you shouldn't need it since the base of the stack should usually be
identical to the HEAD of the remote repository.
> Problem that I'm having right now is that the templates do the right
> thing for mail, but, the commit only puts in the "enter my..." text.
I don't fully understand this. Where does commit put the "enter my..." text?
> Is there a template based way to automatically append the author in the
> Signed-off-by: line when i do stg commit?
This can only be done when creating a patch. Commit doesn't modify the
patches. I think you slightly misunderstood the commit command.
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stGIT: commit vs export vs mail
2006-02-17 22:12 ` Catalin Marinas
@ 2006-02-18 2:11 ` Jesse Brandeburg
2006-02-18 8:30 ` Catalin Marinas
0 siblings, 1 reply; 4+ messages in thread
From: Jesse Brandeburg @ 2006-02-18 2:11 UTC (permalink / raw)
To: Catalin Marinas; +Cc: Jesse Brandeburg, git
On Fri, 17 Feb 2006, Catalin Marinas wrote:
> Jesse Brandeburg wrote:
>> So I am using stgit .8 right now, and I'm having a hard time figuring
>> out what the correct workflow should be for using stg and then
>> committing a change
>>
>> Here is what I've been doing:
>> stg new test
>> enter my short description on first line
>> enter my long description on next lines.
>> vi file
>> stg refresh
>> stg mail <blah blah blah>
>> or
>> stg commit
>
> There is no "or" above but only "and maybe". The 'commit' command is
> only used to permanently store a set of patches into the repository.
> After that, you should not be able to change them anymore (well, someone
> just sent me a patch for an uncommit command). I only use this command
> when I work in the "maintainer" mode on StGIT. For contributing patches,
> you shouldn't need it since the base of the stack should usually be
> identical to the HEAD of the remote repository.
I'm trying to commit changes to a local repository so that the maintainer
can do a "pull" off of my repository.
>> Problem that I'm having right now is that the templates do the right
>> thing for mail, but, the commit only puts in the "enter my..." text.
>
> I don't fully understand this. Where does commit put the "enter my..." text?
so I used stgit to commit this change. It puts it in the git log of
checkins for the repository.
[jbrandeb@lindenhurst-2 e1000]$ git log | head -n 20
commit fb16b7111dae51b9a928aa7706d1cc022df8741d
Author: Jesse Brandeburg <jesse.brandeburg@intel.com>
Date: Fri Feb 17 11:29:19 2006 -0800
e1000: update readme
Update the e1000 text to the latest version
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
>> Is there a template based way to automatically append the author in the
>> Signed-off-by: line when i do stg commit?
>
> This can only be done when creating a patch. Commit doesn't modify the
> patches. I think you slightly misunderstood the commit command.
the stgit command stg commit freezes patches that I've made into my
repository. I think I get that, but I've been wrong before. Its just
that I can template the Signed-off-by: line for emails, but when I do a
stg commit I want the thing to have the Signed-off-by: line in the commit
text (like above where I added it by hand)
I guess I'll just change my templates to not auto add the Signed-off-by
line and then things will work okay, as I'll just add the line during stg
new ...
Thanks for your reply, and the cool tool!
Jesse
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stGIT: commit vs export vs mail
2006-02-18 2:11 ` Jesse Brandeburg
@ 2006-02-18 8:30 ` Catalin Marinas
0 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2006-02-18 8:30 UTC (permalink / raw)
To: Jesse Brandeburg; +Cc: git
On 18/02/06, Jesse Brandeburg <jesse.brandeburg@intel.com> wrote:
> On Fri, 17 Feb 2006, Catalin Marinas wrote:
> > Jesse Brandeburg wrote:
> >> stg mail <blah blah blah>
> >> or
> >> stg commit
> >
>
> I'm trying to commit changes to a local repository so that the maintainer
> can do a "pull" off of my repository.
All the applied patches in your repository are visible via HEAD. There
is no need to do a commit, unless you want to store them permanently.
The way of using StGIT in contributor mode is to always have the base
of the stack identical to the HEAD of the upstream repository.
I usually just mail the patches but the other way would be to apply
the patches you want to be merged and ask the maintainer to pull from
it. Once the changes were pulled, you could run 'stg pull' on your
repository and StGIT should detect which patches were merged and
whether there are any conflicts (patches modified upstream for
example).
If you want to continue the work on your branch before the maintainer
would pull the changes, you can create a separate "stable" branch for
this. Either use 'stg branch --clone' or simply create it with 'stg
branch --create base' and pick the patches you want merged.
> the stgit command stg commit freezes patches that I've made into my
> repository. I think I get that, but I've been wrong before. Its just
> that I can template the Signed-off-by: line for emails, but when I do a
> stg commit I want the thing to have the Signed-off-by: line in the commit
> text (like above where I added it by hand)
>
> I guess I'll just change my templates to not auto add the Signed-off-by
> line and then things will work okay, as I'll just add the line during stg
> new ...
I got it now. You added Signed-off-by to the mail template. As I said
above, commit should not be used to facilitate the maintainer pulling.
It is already available since the patches are valid GIT commits.
--
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-02-18 8:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 21:09 stGIT: commit vs export vs mail Jesse Brandeburg
2006-02-17 22:12 ` Catalin Marinas
2006-02-18 2:11 ` Jesse Brandeburg
2006-02-18 8:30 ` Catalin Marinas
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).