* Pushing and fetching sha1s directly
@ 2007-12-22 21:13 Finn Arne Gangstad
2007-12-22 23:12 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Finn Arne Gangstad @ 2007-12-22 21:13 UTC (permalink / raw)
To: git
Currently there seems to be no way of pusing a sha1 directly, or to
fetch a sha1 directly. When working with submodules, it is convenient
to be able to work with detached HEADs, so it would be good if this
could be supported also by fetch and push.
What would be a resonable syntax for this? I'm thinking something like
git fetch --sha1 <repository> <sha1>
git push --sha1 <repository> <sha1>
Where <sha1> could really be a <commit> I guess, but the option name
"--commit" seems wrong somehow. Another option is to extend refspecs
so sha1s can be allowed in there directly, so this would just work:
git fetch <repository> <sha1>
What do you prefer?
- Finn Arne
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Pushing and fetching sha1s directly
2007-12-22 21:13 Pushing and fetching sha1s directly Finn Arne Gangstad
@ 2007-12-22 23:12 ` Junio C Hamano
2007-12-23 20:04 ` Johannes Schindelin
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-12-22 23:12 UTC (permalink / raw)
To: Finn Arne Gangstad; +Cc: git
Finn Arne Gangstad <finnag@pvv.org> writes:
> Currently there seems to be no way of pusing a sha1 directly, or to
> fetch a sha1 directly. When working with submodules, it is convenient
> to be able to work with detached HEADs, so it would be good if this
> could be supported also by fetch and push.
At least push of an arbitrary commit is already supported, I
think.
For fetch, I would normally say "check the list archives", but
it was very long time ago that it was proposed and discussed.
It has some security and performance implications.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Pushing and fetching sha1s directly
2007-12-22 23:12 ` Junio C Hamano
@ 2007-12-23 20:04 ` Johannes Schindelin
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2007-12-23 20:04 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Finn Arne Gangstad, git
Hi,
On Sat, 22 Dec 2007, Junio C Hamano wrote:
> Finn Arne Gangstad <finnag@pvv.org> writes:
>
> > Currently there seems to be no way of pusing a sha1 directly, or to
> > fetch a sha1 directly. When working with submodules, it is convenient
> > to be able to work with detached HEADs, so it would be good if this
> > could be supported also by fetch and push.
>
> For fetch, I would normally say "check the list archives", but it was
> very long time ago that it was proposed and discussed. It has some
> security and performance implications.
To enhance on that: sometimes you need to delete a branch in a hurry,
because you publicised some secret code/file. In that case, you do _not_
want people being able to fetch arbitrary commits.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-23 20:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-22 21:13 Pushing and fetching sha1s directly Finn Arne Gangstad
2007-12-22 23:12 ` Junio C Hamano
2007-12-23 20:04 ` Johannes Schindelin
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).