3 ms·
Yes, this is a very underhyped feature. They're called "hunks" in git parlance: sections of the file that define a "diff". A diff on a file can be made of mult
by zak_mc_kracken 11y ago
Yes, this is a very underhyped feature.
They're called "hunks" in git parlance: sections of the file that define a "diff". A diff on a file can be made of multiple hunks.
Very often, my changes to a file are a mix of "fixing a serious bug" and "minor refactoring" and "removing dead code". When the time to commit comes, git makes it trivial to separate all these changes in different commits so that each commit does one thing and one thing only.