Re: git rev-parse --git-dir does report yield relative path to git directory, per documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Junio C Hamano wrote:
> Jon Seymour <jon.seymour@xxxxxxxxx> writes:

>> Per this advice in git-rev-parse(1):
>>
>>      Show $GIT_DIR if defined. Otherwise show the path to the .git
>> directory, relative to the current directory.
>> ...
[...]
> I am not sure what we were smoking.

Yeah, that text is pretty confusing.  Thanks for finding it.

The intent was:

	Show the path to the git repository database (usually $GIT_DIR or
	".git").  When relative, this path is relative to the current
	directory.

The point of that last part is that this is relative to the cwd when
rev-parse is called and not relative to the top level of the worktree.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]