xendk / bandaid

Drush tool for patch management.
15 stars 7 forks source link

Check for changes before committing #31

Closed xendk closed 9 years ago

xendk commented 10 years ago

bandaid-diff fails on unmodified modules, due to git complaining that the commit is empty. Using --allow-ewpty is a workaround, but the more effective solution is to use diff-file/status to check and skip adding/committing/diffing. See https://github.com/reload/deployotron/blob/master/deployotron.actions.inc#L526

xendk commented 9 years ago

Well, sounds like a good idea, but it requires much reworking of the exec()ing functionality. So instead we'll add it as an argument and be explicit about when it's OK.