From: Karl Hasselström Date: Sun, 21 Sep 2008 12:17:41 +0000 (+0200) Subject: Don't write a log entry if there were no changes X-Git-Tag: v0.15-rc1~143 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/67b01c133fea32df4041ef68cb6d6f4d8fa1189e?hp=67b01c133fea32df4041ef68cb6d6f4d8fa1189e Don't write a log entry if there were no changes Some commands end up calling log_entry() without verifying that they did in fact change anything. (One example of this is a conflicting push, which will log two entries, everything else and the conflicting push, with the "everything else" part being empty if there was only one patch to push.) So before appending to the log, make sure that the entry we're appending isn't a no-op. Signed-off-by: Karl Hasselström ---