]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
Merge branch 'jk/no-looking-at-dotgit-outside-repo'
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Oct 2016 21:58:48 +0000 (14:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Oct 2016 21:58:48 +0000 (14:58 -0700)
commit0d9c527d5963fca098ea4964f4129511bd5d82d8
treefdc63c9e33954d77aa5299e0fb02e1cba49a01cc
parentf9db0c055c2f93021ee32a069e15b9e54f39f0da
parent4f03666ac69ec4799998f010d04916c12e38edf8
Merge branch 'jk/no-looking-at-dotgit-outside-repo'

Update "git diff --no-index" codepath not to try to peek into .git/
directory that happens to be under the current directory, when we
know we are operating outside any repository.

* jk/no-looking-at-dotgit-outside-repo:
  diff: handle sha1 abbreviations outside of repository
  diff_aligned_abbrev: use "struct oid"
  diff_unique_abbrev: rename to diff_aligned_abbrev
  find_unique_abbrev: use 4-buffer ring
  test-*-cache-tree: setup git dir
  read info/{attributes,exclude} only when in repository
cache.h
diff.c
sha1_name.c