# HG changeset patch # User Ludovic Chabant # Date 1712125353 25200 # Tue Apr 02 23:22:33 2024 -0700 # Node ID 8ef4da9be292add67b989a30d3656139f4833dfe # Parent e52c62ac52fc0a5a33a7b88e1b051cbe219b8058 Only check status of modified files before annotate This prevents being led astray by errors that are unrelated to what we're trying to do. diff --git a/autoload/lawrencium/annotate.vim b/autoload/lawrencium/annotate.vim --- a/autoload/lawrencium/annotate.vim +++ b/autoload/lawrencium/annotate.vim @@ -30,7 +30,7 @@ " Check if we're trying to annotate something with local changes. let l:has_local_edits = 0 - let l:path_status = l:repo.RunCommand('status', l:path) + let l:path_status = l:repo.RunCommand('status', '-m', l:path) if l:path_status != '' call lawrencium#trace("Found local edits for '" . l:path . "'. Will annotate parent revision.") let l:has_local_edits = 1