Sha256: 6f4b5f6a8a28dd25569b7ad7189e54a843399e92002c61e6946012a2ae12d176
Contents?: true
Size: 397 Bytes
Versions: 128
Compression:
Stored size: 397 Bytes
Contents
-module(tg_git_tools). -export([ find_git/1 ]). -include_lib("kernel/include/file.hrl"). find_git("") -> error; find_git(Dir) -> io:format("Checking ~s~n", [Dir]), case file:read_file_info(Dir ++ "/.git") of {ok, #file_info{type=directory}} -> {ok, Dir}; _ -> Parent = tg_file_tools:parent_dir(Dir), find_git(Parent) end.
Version data entries
128 entries across 128 versions & 1 rubygems