* Editing Git Log
@ 2008-09-18 5:52 Piet Delaney
2008-09-18 6:13 ` Boaz Harrosh
2008-09-18 6:21 ` Matthias Kestenholz
0 siblings, 2 replies; 4+ messages in thread
From: Piet Delaney @ 2008-09-18 5:52 UTC (permalink / raw)
To: Git Mailing List; +Cc: Piet Delaney
I think I recall reading that a feature of git was the prevention of the
git commits
from being changed. I noticed today that a couple of us have checked in
files
without our customary [XTENSA] architecture prefixed to the 1st line of our
Commit Messages.
I couldn't find a way to do this, other than our reverting back to a
earlier repository
and recommitting (each?) change with the slightly changed Commit Message;
not an attractive investment of our time.
Any suggestions?
-piet
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Editing Git Log
2008-09-18 5:52 Editing Git Log Piet Delaney
@ 2008-09-18 6:13 ` Boaz Harrosh
2008-09-18 6:21 ` Björn Steinbrink
2008-09-18 6:21 ` Matthias Kestenholz
1 sibling, 1 reply; 4+ messages in thread
From: Boaz Harrosh @ 2008-09-18 6:13 UTC (permalink / raw)
To: Piet Delaney; +Cc: Git Mailing List
Piet Delaney wrote:
> I think I recall reading that a feature of git was the prevention of the
> git commits
> from being changed. I noticed today that a couple of us have checked in
> files
> without our customary [XTENSA] architecture prefixed to the 1st line of our
> Commit Messages.
>
> I couldn't find a way to do this, other than our reverting back to a
> earlier repository
> and recommitting (each?) change with the slightly changed Commit Message;
> not an attractive investment of our time.
>
> Any suggestions?
>
> -piet
> --
git rebase --interactive FIRST_BAD_COMMIT^ will effectively do the same
as above but in a nice automated way. Just change pick => edit on these
patches that need fixing, you'll see.
Boaz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Editing Git Log
2008-09-18 6:13 ` Boaz Harrosh
@ 2008-09-18 6:21 ` Björn Steinbrink
0 siblings, 0 replies; 4+ messages in thread
From: Björn Steinbrink @ 2008-09-18 6:21 UTC (permalink / raw)
To: Boaz Harrosh; +Cc: Piet Delaney, Git Mailing List
On 2008.09.18 09:13:50 +0300, Boaz Harrosh wrote:
> Piet Delaney wrote:
> > I think I recall reading that a feature of git was the prevention of the
> > git commits
> > from being changed. I noticed today that a couple of us have checked in
> > files
> > without our customary [XTENSA] architecture prefixed to the 1st line of our
> > Commit Messages.
> >
> > I couldn't find a way to do this, other than our reverting back to a
> > earlier repository
> > and recommitting (each?) change with the slightly changed Commit Message;
> > not an attractive investment of our time.
> >
> > Any suggestions?
> >
> > -piet
> > --
>
> git rebase --interactive FIRST_BAD_COMMIT^ will effectively do the same
> as above but in a nice automated way. Just change pick => edit on these
> patches that need fixing, you'll see.
git filter-branch with a suited msg-filter is even more automated :-)
Björn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Editing Git Log
2008-09-18 5:52 Editing Git Log Piet Delaney
2008-09-18 6:13 ` Boaz Harrosh
@ 2008-09-18 6:21 ` Matthias Kestenholz
1 sibling, 0 replies; 4+ messages in thread
From: Matthias Kestenholz @ 2008-09-18 6:21 UTC (permalink / raw)
To: Piet Delaney; +Cc: Git Mailing List
On Thu, Sep 18, 2008 at 7:52 AM, Piet Delaney
<piet.delaney@tensilica.com> wrote:
> I think I recall reading that a feature of git was the prevention of the git
> commits
> from being changed. I noticed today that a couple of us have checked in
> files
> without our customary [XTENSA] architecture prefixed to the 1st line of our
> Commit Messages.
>
> I couldn't find a way to do this, other than our reverting back to a earlier
> repository
> and recommitting (each?) change with the slightly changed Commit Message;
> not an attractive investment of our time.
>
> Any suggestions?
>
You have to create new commits, but you do not have to do it by hand. See
filter-branch[1]
The example given in the manpage removes the git-svn identifiers:
git filter-branch --msg-filter '
sed -e "/^git-svn-id:/d"
'
You can probably modify the sed expression and use it nearly as is (of course
you would not want to filter the whole history, only the handful commits that
came from you or your team.
[1]: http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-18 6:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 5:52 Editing Git Log Piet Delaney
2008-09-18 6:13 ` Boaz Harrosh
2008-09-18 6:21 ` Björn Steinbrink
2008-09-18 6:21 ` Matthias Kestenholz
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).