Let git diff
show "intent-to-add" files as new files
#647
Labels
leftoverbits
From the Git mailing list: https://lore.kernel.org/git/?q=%23leftoverbits
There is this feature where you can call
git add -N file
to tell Git that you intend to stage the file later, but do not want to stage any content yet. The intuitive thing forgit diff
would be to report those files with thenew file
header.Not only that, by not showing that header,
git add -p
does not show the expected prompt. Example:For full details, see https://lore.kernel.org/git/20200527230357.GB546534@coredump.intra.peff.net/ (and https://lore.kernel.org/git/nycvar.QRO.7.76.6.2005272150220.56@tvgsbejvaqbjf.bet/, which marked this as #leftoverbits).
The text was updated successfully, but these errors were encountered: