mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 17:25:28 +02:00
Revert "Fix committing with fugitive => stuck file status"
This reverts commit 0435d44984d06f4fada20e3d6df9b5bd2f601f16. The commit introduces a huge performance penalty and is removed for now.
This commit is contained in:
parent
540b076aa0
commit
2758c349db
@ -36,12 +36,8 @@ def do_status(directory, path, func):
|
|||||||
with open(gitd, 'rb') as f:
|
with open(gitd, 'rb') as f:
|
||||||
raw = f.read().partition(b':')[2].strip()
|
raw = f.read().partition(b':')[2].strip()
|
||||||
gitd = os.path.abspath(os.path.join(directory, raw))
|
gitd = os.path.abspath(os.path.join(directory, raw))
|
||||||
# We need HEAD as without it using fugitive to commit causes the
|
return get_file_status(directory, os.path.join(gitd, 'index'),
|
||||||
# current file's status (and only the current file) to not be updated
|
path, '.gitignore', func, extra_ignore_files=(os.path.join(gitd, 'info/exclude'),))
|
||||||
# for some reason I cannot be bothered to figure out.
|
|
||||||
return get_file_status(
|
|
||||||
directory, os.path.join(gitd, 'index'),
|
|
||||||
path, '.gitignore', func, extra_ignore_files=tuple(os.path.join(gitd, x) for x in ('HEAD', 'info/exclude')))
|
|
||||||
return func(directory, path)
|
return func(directory, path)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user