Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC PATCH] Move git-dir for submodules

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:38

Fredrik Gustafsson [off-list ref] writes:
quoted
I wonder if we want a new option to "git rev-parse" so that we can say

	git rev-parse --is-well-formed-git-dir init/.git

to perform these checks without exposing the implimentation detail.
How about using
(cd <repo>; git rev-parse --verify HEAD" >/dev/null)
instead?
Can the <repo> be without any commit, i.e. just after created?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help