From: Nguyen Thai Ngoc Duy Date: Tue, 26 Jul 2011 13:03:01 GMT Subject: Re: feature request: git add--interactive --patch on regex-matched hunks only Message-ID: In-Reply-To: It would be even more cool if --hunks (or whatever the name will be) could work without -p. I mean, if "git diff" supports it, then I can fine tune my regex to meet a selection of hunks I want, and verify it really is what I want. Then "git add --hunks=magic" and voila! (The "git add --hunks" without -p surely can be workaround by adding "-p", then accept all hunks). And if diff machinery learns this, we would have "git log --hunks" too. OK I'm asking too much.. -- Duy