# git apply --interactive

1 messages from 2013-05-07 to 2013-05-07. Participants: Mark Lodato.
Thread: https://gitlist.dev/t/33739

## Mark Lodato, 2013-05-07 02:08

Subject: git apply --interactive
Message-ID: <CAHREChgni3iiONUO28FoVbQzjAe83ysRRzuYC2jEqkgntV-BYQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAHREChgni3iiONUO28FoVbQzjAe83ysRRzuYC2jEqkgntV-BYQ%40mail.gmail.com

```
I'd love for "git apply" to have an equivalent to "git add -p".  (I'm
guessing it would be called --interactive since "git apply -p" is
taken and --patch would be confusing.)  Has anyone thought about this?

After taking a quick look at git-add--interactive.perl, it seems like
the main steps would be:
1) making sure the patch comes from a file and not stdin, since stdin
is required for the interactive input
2) collecting the input patch(es) and separating by output file
3) modifying parse_diff to accept these pre-split patches
4) coloring the patch

Mark

```
