Since this is a git question, it probably belongs on that project's mailing list.
Anyhow, what I do is use git smudge/clean filters to ignore the line. Here's an example from a different application of smudge/clean filters of how to ignore specific lines in a file: http://stackoverflow.com/questions/16244969/how-to-tell-git-to-ignore-individual-lines-i-e-gitignore-for-specific-lines-of On Thu, Feb 12, 2015 at 10:11 PM, Jashandeep Sohi < [email protected]> wrote: > Hi, > > I'm using git to version control my PKGBUILDs. Most of them build > stable versions of packages using a static pkgver; however, some of > them build unstable versions (from git, hg, etc.), and make use of the > pkgver() function to compute a pkgver on build time. > > The problem that I'm having is that whenever I build one of the > unstable packages, the value of pkgver in the PKGBUILD get updated by > pkgver(), which causes Git to think that the file has changed. If I > ever want to commit changes to the PKGBUILD, I first have to change > pkgver back to what it was to prevent spurious changes to pkgver to > committed as well. > > I know I'm being pedantic, but if someone has already thought of a > solution/fix, that would appreciated. > > Thanks, > Jashandeep Sohi >
