From: Radoslaw Szkodzinski <astralstorm@o2.pl>
To: git@vger.kernel.org
Subject: Question about possible git races
Date: Mon, 20 Mar 2006 17:24:05 +0100 [thread overview]
Message-ID: <200603201724.12442.astralstorm@o2.pl> (raw)
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]
I'd like to write a multithreaded application using git, so I'd like to see if
there are any races:
- push vs pull
One thread pushes to the repository while another is pulling from it at the
same time. I should get the older commit.
- push vs push
Both threads push at the same time. What happens?
Any good way to merge those pushes?
(I have full access to both repos)
Possibly those two aren't fast-forward of each other.
I think one of the pushes should abort in this case unless I force it.
- fetch vs fetch
I mean that two threads try to fetch from different repositories to a single
one. Possibly those two aren't fast-forward of each other.
Any good way to merge those fetches?
(I have full access to both repos)
I'm meaning really bare git there, w/o bash+perl scripts.
--
GPG Key id: 0xD1F10BA2
Fingerprint: 96E2 304A B9C4 949A 10A0 9105 9543 0453 D1F1 0BA2
AstralStorm
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next reply other threads:[~2006-03-20 16:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-20 16:24 Radoslaw Szkodzinski [this message]
2006-03-22 20:46 ` Question about possible git races Radoslaw Szkodzinski
2006-03-22 23:55 ` Andreas Ericsson
2006-03-22 23:28 ` Andreas Ericsson
2006-03-23 1:24 ` Radoslaw Szkodzinski
2006-03-23 2:55 ` Andreas Ericsson
2006-03-23 20:51 ` Radoslaw Szkodzinski
2006-03-23 0:24 ` Junio C Hamano
2006-03-23 1:22 ` Radoslaw Szkodzinski
2006-03-23 1:46 ` Junio C Hamano
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=200603201724.12442.astralstorm@o2.pl \
--to=astralstorm@o2.pl \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.