diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-11-28 10:37:32 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-12-07 14:25:46 -0800 |
commit | 979f792951913d75f992f87022b75610303a614f (patch) | |
tree | 9fb806af8cc96b58b89c19e2720bf71bf42cab3c /http.c | |
parent | Make prefix_path() return char* without const (diff) | |
download | tgif-979f792951913d75f992f87022b75610303a614f.tar.xz |
get_sha1: support relative path ":path" syntax
Currently :path and ref:path can be used to refer to a specific object
in index or ref respectively. "path" component is absolute path. This
patch allows "path" to be written as "./path" or "../path", which is
relative to user's original cwd.
This does not work in commands for which startup_info is NULL
(i.e. non-builtin ones, it seems none of them needs this anyway).
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.c')
0 files changed, 0 insertions, 0 deletions