Skip to content

Commit c3f9f25

Browse files
committed
diff: show tar entry index differences
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 3f641a5 commit c3f9f25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/diff/diff.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,8 @@ func (h *defaultEventHandler) HandleEventTreeNode(ctx context.Context, node *Eve
11371137
d0, d1 = "Atime "+hdr0.AccessTime.String(), "Atime "+hdr1.AccessTime.String()
11381138
} else if !hdr0.ChangeTime.Equal(hdr1.ChangeTime) {
11391139
d0, d1 = "Ctime "+hdr0.ChangeTime.String(), "Ctime "+hdr1.ChangeTime.String()
1140+
} else if ent0.Index != ent1.Index {
1141+
d0, d1 = fmt.Sprintf("Index %d", ent0.Index), fmt.Sprintf("Index %d", ent1.Index)
11401142
}
11411143
// TODO: Xattrs
11421144
}

0 commit comments

Comments
 (0)