[wp-trac] [WordPress Trac] #56029: .git-blame-ignore-revs causes other revisions to be ignored
WordPress Trac
noreply at wordpress.org
Tue Jun 21 22:02:20 UTC 2022
#56029: .git-blame-ignore-revs causes other revisions to be ignored
------------------------------+------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: 6.0
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by costdev):
Using Git, adding the ignore-revs file with this command:
{{{#!sh
git config --local blame.ignoreRevsFile .git-blame-ignore-revs
}}}
Produces this result:
{{{#!sh
git blame -L946,946 src/wp-includes/pluggable.php
# Output (Incorrect)
78a2c0f7815 wp-includes/pluggable.php (Ryan Boren 2008-08-21 00:08:25
+0000 946) list( $username, $expiration, $token, $hmac ) =
$cookie_elements;
}}}
Removing the ignore-revs file with this command:
{{{#!sh
git config --local blame.ignoreRevsFile ""
}}}
And instead passing the `-w` flag produces this result:
{{{#!sh
git blame -w -L946,946 src/wp-includes/pluggable.php
# Output (Correct)
97fcbef707e (Andrew Nacin 2014-07-18 09:12:05 +0000 946) list( $username,
$expiration, $token, $hmac ) = $cookie_elements;
}}}
This does indeed point to the behaviour of the ignore-revs file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56029#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list