News for hackers. Stuff that matters.
Re:Git 2.0 release notes by lobster_johnson on Wednesday March 12, 2014 @07:25PM (#7389115)
I like the "add" is more inclusive by default. But does this mean that "add -p" also can add untracked files? (If not, it seems inconsistent to me.)
Re:Git 2.0 release notes by doidydoidy on Wednesday March 12, 2014 @11:29PM (#7389908)
Like it says in the man page, git add -p "effectively runs add --interactive, but bypasses the initial command menu and directly jumps to the patch subcommand". Interactive mode does support adding untracked files.
Re:Git 2.0 release notes by lobster_johnson on Thursday March 13, 2014 @01:05AM (#7390126)
Not what I'm asking. "add -p" will offer deletions, but it should also offer to add untracked files, essentially showing a diff with all lines added (with an empty file as the base).

"add -p --all some_untracked_file" does nothing, "--interactive" does something completely different; a menu system, not a "yes/no/etc." patch prompt.