chiark / gitweb /
dgit: cleaning: Improve handling of note about ignores
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Jan 2019 11:36:52 +0000 (11:36 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Jan 2019 13:36:45 +0000 (13:36 +0000)
commita73c60edeaaf776cee0b9065b25ce312baccc49b
treee5fabcf0ece50f009762a9b9bcd1745a524eab82
parent9453958d76cb530bbc0af1802cfeaadd26e19c6c
dgit: cleaning: Improve handling of note about ignores

* Provide a new $ignmessage parameter to clean_tree_check_git and use
  that.  This makes it a bit easier to:

* Only print the additional message if the clean mode actually
  honoured ignores.  If it didn't then the problem is not `due
  to missing .gitignore entries' because they would not have helped.

* Change all callers other than clean_tree_check_git_wd to
  pass the empty string, so no other overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit