From: Jonathan Nieder <jrnieder@gmail.com>
To: Maaartin-1 <grajcar1@seznam.cz>
Cc: git@vger.kernel.org, Jakub Narebski <jnareb@gmail.com>,
Aleksey Shumkin <zapped@mail.ru>
Subject: Re: [RFC/PATCH 2/1] fixup! Documentation: start to explain what git replace is for
Date: Fri, 14 Jan 2011 13:30:23 -0600 [thread overview]
Message-ID: <20110114193023.GA14294@burratino> (raw)
In-Reply-To: <4D308B69.1050003@seznam.cz>
Maaartin wrote:
> On 11-01-14 09:49, Jonathan Nieder wrote:
>> [side note: please do not prune the cc list; I only stumbled on this
>> message in the online archive by luck]
>
> What could I have done about it?
See [1].
> Maybe just something like "Let's assume there's only one and let's call
> it FIRST". For the example, this is enough.
True enough. Even better would be to give a reference to the "coolest merge
ever" (is that documented anywhere?) so the interested reader can discover
how there could be more than one.
> I'd go the other way round and use "-i" so I'd need only one file.
"sed -i" is not portable (not sure how important that is for documentation).
But perl -i is. :)
> $ first_commit = $($ echo $first_commit |
> perl -p
> "s/^tree .*/$&\nparent $(git rev-parse v2.4)/") <4>
So:
perl -pi -e "s/^tree .*$/\$&\nparent $(git rev-parse v2.4)/" new
Unfortunately "echo" and process substitution destroy some formatting
in the commit message --- in particular, trailing whitespace.
Thanks for the suggestions. Please feel free to pick up the patch and
run with it (I trust you for this more than I would trust myself).
Regards,
Jonathan
[1] My current method: [2] Yes, I agree that this is cumbersome.
I'm also told that Thunderbird when used as a newsreader can reply-to-all
easily, though I haven't tried it.
[2] http://thread.gmane.org/gmane.comp.version-control.git/154490
next prev parent reply other threads:[~2011-01-14 19:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 10:41 Merge two different repositories (v2.4 + v2.5) into the one (v2.4 -> v2.5). Possible? Алексей Шумкин
2011-01-11 11:49 ` "Martin Krüger"
2011-01-11 12:33 ` Re[2]: " Алексей Шумкин
2011-01-11 12:41 ` Andreas Ericsson
2011-01-11 14:58 ` Re[2]: " Алексей Шумкин
2011-01-11 12:47 ` "Martin Krüger"
2011-01-11 13:21 ` Jakub Narebski
2011-01-11 14:49 ` Re[2]: " Алексей Шумкин
2011-01-11 15:16 ` Алексей Шумкин
2011-01-12 0:08 ` [RFC/PATCH] Documentation: start to explain what git replace is for Jonathan Nieder
2011-01-12 22:47 ` Maaartin
2011-01-13 7:52 ` Alexey Shumkin
2011-01-14 8:49 ` [RFC/PATCH 2/1] fixup! " Jonathan Nieder
2011-01-14 17:44 ` Maaartin-1
2011-01-14 19:30 ` Jonathan Nieder [this message]
2011-01-14 21:09 ` how multiple roots happen (Re: [RFC/PATCH 2/1] fixup! Documentation: start to explain what git replace is for) Jonathan Nieder
2011-01-14 22:48 ` [RFC/PATCH 2/1] fixup! Documentation: start to explain what git replace is for Jakub Narebski
2011-01-15 0:04 ` Maaartin-1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110114193023.GA14294@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=grajcar1@seznam.cz \
--cc=jnareb@gmail.com \
--cc=zapped@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).