@@ -43,6 +43,7 @@ func NewCommand() *cobra.Command {
43
43
"ignore-history" ,
44
44
"ignore-file-order" ,
45
45
"ignore-file-mode-redundant-bits" ,
46
+ "ignore-file-timestamps" ,
46
47
"ignore-image-name" ,
47
48
"ignore-tar-format" ,
48
49
"treat-canonical-paths-equal" ,
@@ -67,6 +68,7 @@ func NewCommand() *cobra.Command {
67
68
flags .Bool ("ignore-history" , false , "Ignore history" )
68
69
flags .Bool ("ignore-file-order" , false , "Ignore file order in tar layers" )
69
70
flags .Bool ("ignore-file-mode-redundant-bits" , false , "Ignore redundant bits of file mode" )
71
+ flags .Bool ("ignore-file-timestamps" , false , "Ignore timestamps on files" )
70
72
flags .Bool ("ignore-image-name" , false , "Ignore image name annotation" )
71
73
flags .Bool ("ignore-tar-format" , false , "Ignore tar format" )
72
74
flags .Bool ("treat-canonical-paths-equal" , false , "Treat leading `./` `/` `` in file paths as canonical" )
@@ -111,6 +113,10 @@ func action(cmd *cobra.Command, args []string) error {
111
113
if err != nil {
112
114
return err
113
115
}
116
+ options .IgnoreFileTimestamps , err = flags .GetBool ("ignore-file-timestamps" )
117
+ if err != nil {
118
+ return err
119
+ }
114
120
options .IgnoreImageName , err = flags .GetBool ("ignore-image-name" )
115
121
if err != nil {
116
122
return err
0 commit comments