ignore staged files that are not notes
Filter out staged files that do not look like they would contain release notes, as we do with unstaged files and with the commit history. Change-Id: I772a82f444b89b51f29f4e1b5b9b31dee1890ff0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -842,13 +842,16 @@ class Scanner(object):
|
||||
changes = porcelain.get_tree_changes(self._repo)
|
||||
for fname in changes['add']:
|
||||
fname = fname.decode('utf-8')
|
||||
tracker.add(fname, None, '*working-copy*')
|
||||
if fname.startswith(prefix) and _note_file(fname):
|
||||
tracker.add(fname, None, '*working-copy*')
|
||||
for fname in changes['modify']:
|
||||
fname = fname.decode('utf-8')
|
||||
tracker.modify(fname, None, '*working-copy*')
|
||||
if fname.startswith(prefix) and _note_file(fname):
|
||||
tracker.modify(fname, None, '*working-copy*')
|
||||
for fname in changes['delete']:
|
||||
fname = fname.decode('utf-8')
|
||||
tracker.delete(fname, None, '*working-copy*')
|
||||
if fname.startswith(prefix) and _note_file(fname):
|
||||
tracker.delete(fname, None, '*working-copy*')
|
||||
|
||||
# Process the git commit history.
|
||||
for counter, entry in enumerate(self._topo_traversal(branch), 1):
|
||||
|
||||
Reference in New Issue
Block a user