In gitdiffcore(7) it simply states:
The pathspecs are used to limit the world diff operates in.
They remove the filepairs outside the specified sets of pathnames.
E.g. If the input set of filepairs included:
:100644 100644 bcd1234... 0123456... M junkfile
My question is how to read this, i.e. which fields are which, and what should they represent?
I’m looking so that I can understand if there is any mileage in detecting pathname changes (as an option) separately from the file rename detection which is both expensive and tends to suggest to users that many files have been renamed (rather than a single path change)
let’s break this down:
to create archives with a given name from a directory at a specified commit, use the
git archivecommand:assuming, you want to create an archive from
path/to/directory/as it was in versionv.1(tag, branch, you can even use a commit id here). the archive will be namedyour_product.zip(format inferred from file name,.taris also possible), and all files will be placed in the subfolderyour_product_v1.2inside the zip file.this way you don’t have to rename the directory inside your VCS (why would you do that anyways?). hope that helps! leave a comment if things are still unclear.