But this one just made it into Ubuntu Natty (11.04), and my bash history says that I've used it 30+ times already this week...
I think Larry Wall's diff and patch utilities are among the most important programs in all of free software. These are the most fundamental tools that allow us to modify code, share those modifications with one another in both a human and machine readable format, and apply those changes elsewhere. It's not uncommon for me to use the two of them more than a hundred times in a work day.
And yet there's two things that bother me about patch...
- the -p|--strip parameter should be auto detected, if unspecified
- usually, I just want to pass a file in as a parameter using tab-completion, rather than piping it or redirecting it from standard input
Example:
kirkland@x201:/tmp/foo/patch-2.6$ apply-patch debian/patches/lenny-options patching file src/patch.c patching file patch.man
Useful to anyone besides me?
I'm pretty sure I could hack patch.c and pch.c in the upstream source for patch to do this auto detection of strip level, but I wonder if upstream would take it?
:-Dustin

