path.c: and an option to call real_path() in expand_user_path()
commit4aad2f1627bb74948874c0f31e8ce256bf236aa6
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 5 Apr 2017 10:24:38 +0000 (5 17:24 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Apr 2017 06:51:38 +0000 (14 23:51 -0700)
treede6b04a3b94f2d709971e878375168120e4fa359
parent3efd0bedc6625a6b194c1f6e5f1b7aa7d8b7e6bb
path.c: and an option to call real_path() in expand_user_path()

In the next patch we need the ability to expand '~' to
real_path($HOME). But we can't do that from outside because '~' is part
of a pattern, not a true path. Add an option to expand_user_path() to do
so.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
builtin/config.c
cache.h
config.c
credential-cache.c
credential-store.c
path.c