views:

47

answers:

1

I want to cherry pick from one branch to another, but they diverged strongly. How can I get list of commits that modified a given part of the file?

+3  A: 

2 common solutions:

Annotates each line in the given file with information from the revision which last modified the line. Optionally, start annotating from the given revision.

The command can also limit the range of lines annotated.

to quickly determine what commit did introduce a specific change.

See also "Using git to find first introduction of token on a specific line of a file…"

VonC