Merge pull request #808 from drasill/master

git-ignore: support non-default .git directory
This commit is contained in:
罗泽轩 2019-12-07 19:13:31 +08:00 committed by GitHub
commit d0636d2b07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
: ${GIT_DIR:=.git}
: ${GIT_DIR:=$(git rev-parse --git-dir)}
function show_contents {
local file="${2/#~/$HOME}"