From: Andreas Ericsson <ae@op5.se>
To: luis@itaapy.com
Cc: git@vger.kernel.org
Subject: Re: "tla missing -s" equivalent with git/cogito
Date: Wed, 18 Jan 2006 18:08:00 +0100 [thread overview]
Message-ID: <43CE75F0.4060009@op5.se> (raw)
In-Reply-To: <43CE5666.90502@itaapy.com>
Belmar-Letelier wrote:
> Hello,
>
> Could someone say me how we do in cogito or git the
>
> arch-tla equivalent of
>
> $ cd project--luis--0.1
> $ tla missing -sD paul@mail.com--public/project--paul--0.1
>
> so I get the information like what are the interesting patch to get
>
> and then I take all of them with
>
> $ tla star-merge -t paul@mail.com--public/project--paul--0.1
>
> or I cherry pick only one of them (here patch-6) with
>
> $ tla replay somefriend@mail.com--public/project--branchA--0.1--patch-6
>
Not that I'm even half aware of how arch does this, but if the two repos
are cloned from the same one (which they seem to be), you could just do
$ git checkout -b paul
$ git pull <path-to-pauls-repo> <branch-from-pauls-repo>
The "pull" above will do the merging nessecary. You can merge several
branches at once if you like (known as "doing an octopus" in gittish. I
imagine that's a star-merge in arch).
Then, if you want to cherry-pick commits from Paul's repo to your
master-branch, you do
$ git checkout master
$ git cherry-pick -r paul~3
to replay the commit 3 steps below the tip of Paul's latest commit in
the branch you just pulled from.
If you want to import all of them into your own master branch you can do
$ git checkout master
$ git pull . paul
You can also do
$ cd pauls-repo
$ git format-patch --mbox -k HEAD~10 -o /your/repo
$ cd /your/repo
$ git am -k 00*.txt
but that has the feel of doing things the wrong way around (exporting
from a repo to import to another should be done by a fetch or, if you
want to merge them into whatever branch you're currently on, a pull).
Two things worth noting:
* git repositories are damn near indestructible, so long as you don't
run "git prune" while mucking around doing very strange things or suffer
hardware failure. Don't be afraid to experiment.
* gitk is your friend for finding out where you are in the repo and what
actually happens when you merge, reset, revert, rebase, commit, pull,
fetch, branch, tag or does something else entirely. Use it. You'll be
glad you did.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2006-01-18 17:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 14:53 "tla missing -s" equivalent with git/cogito Belmar-Letelier
2006-01-18 17:08 ` Andreas Ericsson [this message]
2006-01-18 17:46 ` Junio C Hamano
2006-01-18 18:06 ` Martin Langhoff
2006-01-17 3:29 ` Cogito wishlist: ability to set merge strategy H. Peter Anvin
2006-01-18 19:32 ` Petr Baudis
2006-01-18 20:14 ` Martin Langhoff
2006-01-18 17:56 ` "tla missing -s" equivalent with git/cogito Martin Langhoff
2006-01-18 18:55 ` Petr Baudis
2006-01-18 19:07 ` Martin Langhoff
2006-01-18 19:26 ` Petr Baudis
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=43CE75F0.4060009@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=luis@itaapy.com \
/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).