{"thread":{"id":"33739","subject":"git apply --interactive","startedAt":"2013-05-07T02:08:38Z","lastAt":"2013-05-07T02:08:38Z","messageCount":1,"participants":["Mark Lodato"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"216568","messageId":"CAHREChgni3iiONUO28FoVbQzjAe83ysRRzuYC2jEqkgntV-BYQ@mail.gmail.com","threadId":"33739","inReplyTo":null,"subject":"git apply --interactive","fromName":"Mark Lodato","fromEmail":"lodatom@gmail.com","sentAt":"2013-05-07T02:08:38Z","receivedAt":"2013-05-07T02:08:38Z","isPatch":false,"sender":{"key":"lodatom@gmail.com","avatar":"https://avatars.githubusercontent.com/u/58860?v=4"},"body":"I'd love for \"git apply\" to have an equivalent to \"git add -p\".  (I'm\nguessing it would be called --interactive since \"git apply -p\" is\ntaken and --patch would be confusing.)  Has anyone thought about this?\n\nAfter taking a quick look at git-add--interactive.perl, it seems like\nthe main steps would be:\n1) making sure the patch comes from a file and not stdin, since stdin\nis required for the interactive input\n2) collecting the input patch(es) and separating by output file\n3) modifying parse_diff to accept these pre-split patches\n4) coloring the patch\n\nMark\n"}]}