Re: .gitlink for Summer of Code

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: .gitlink for Summer of Code

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:01

"Shawn O. Pearce" [off-list ref] writes:
Actually, I'd almost say put it into .git/config, e.g.:

	mkdir .git
	cat >.git/config <<EOF
	[core]
		repositoryversion = 0
		filemode = true
		link = /path/to/source
	EOF

as then the index and HEAD file can both be stored in .git, just
like with the non-gitlink case.
This is not usable at least for me as it does not allow sharing
the .git/config file across checkouts.

Re: .gitlink for Summer of Code

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:01

Junio C Hamano [off-list ref] wrote:
"Shawn O. Pearce" [off-list ref] writes:
quoted
Actually, I'd almost say put it into .git/config, e.g.:

	mkdir .git
	cat >.git/config <<EOF
	[core]
		repositoryversion = 0
		filemode = true
		link = /path/to/source
	EOF

as then the index and HEAD file can both be stored in .git, just
like with the non-gitlink case.
This is not usable at least for me as it does not allow sharing
the .git/config file across checkouts.
Me either.

What I thought of after writing that was that core.link should
also imply reading ${core.link}/config before .git/config, so that
the repository config can override the master repository, but the
master repository provides the bulk of the configuration.

-- 
Shawn.

Re: .gitlink for Summer of Code

From: Petr Baudis <hidden>
Date: 2016-06-15 22:43:01

On Sun, Mar 25, 2007 at 10:55:31PM CEST, Junio C Hamano wrote:
"Shawn O. Pearce" [off-list ref] writes:
quoted
Actually, I'd almost say put it into .git/config, e.g.:

	mkdir .git
	cat >.git/config <<EOF
	[core]
		repositoryversion = 0
		filemode = true
		link = /path/to/source
	EOF

as then the index and HEAD file can both be stored in .git, just
like with the non-gitlink case.
This is not usable at least for me as it does not allow sharing
the .git/config file across checkouts.
Can't you take linked .git/config and override it with stuff from local
.git/config in that case? Don't replace, supraposition.

Take somewhat contrived example of having checkout on a FAT partition
linking to a repository on a sane filesystem (are you permanently short
on disk space on your /home partition too, except for about two months
right after you double your disk capacity? :). You might want to disable
core.fileMode there. Maybe this will not ever happen in real world and
we might not care. Maybe not...

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help