Don't expose /COMMIT_MSG as a modified file in ChangeData
We don't want uses to pattern match "file:^/COMMIT_MSG", because every single change contains it. Change-Id: Ib47af2ad97950d7a3f7326d743a9b01fb11866d4 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -50,7 +50,9 @@ public class CommentSender extends ReplyToChangeSender {
|
||||
Set<String> paths = new HashSet<String>();
|
||||
for (PatchLineComment c : plc) {
|
||||
Patch.Key p = c.getKey().getParentKey();
|
||||
paths.add(p.getFileName());
|
||||
if (!Patch.COMMIT_MSG.equals(p.getFileName())) {
|
||||
paths.add(p.getFileName());
|
||||
}
|
||||
}
|
||||
changeData.setCurrentFilePaths(paths);
|
||||
}
|
||||
|
Reference in New Issue
Block a user