The feature was introduced in ec9aa4f.
Requested by bill lam.
parse_string() adapts the string length to automatically remove quotation marks when copying the string. However, when calling string_ncopy_do() strlen(arg) used to be called again instead of using the adapted value. This e.g. led to wrong locale settings when using set commit-encoding = "UTF-8" and thus a slightly messed up display. Thanks to Gerfried Fuchs for reporting this. Signed-off-by: Sebastian Harl <email@example.com> Signed-off-by: Jonas Fonseca <firstname.lastname@example.org>
Fixes Debian bug #514990 reported by Gerfried Fuchs.
Inspired by gitweb.
Signed-off-by: Carsten Brockmann <email@example.com> Signed-off-by: Jonas Fonseca <firstname.lastname@example.org>
From commit 2677b74.
Currently when you ask to re-blame from the parent of a commit that created the file, blame_read_file will complain that it cannot get the file contents ("No blame exist"). At the time we try to read the file, it is too late to abort the operation, as we have already changed to the new blame view. However, we can detect this situation early by limiting the selection of the parent revision to the particular path of interest: if it returns a parent even with path-limiting, then we know the path exists; if not, then we know it doesn't. Signed-off-by: Jeff King <email@example.com> Signed-off-by: Jonas Fonseca <firstname.lastname@example.org>
... by looking through the commit's diff for the hunk which introduced the line. Also, try to set the filename properly.
This was developed in parallel and is very similar to patch posted by Jeff King, however, with different goals in mind. Message-Id: <20090207112613.GA18079@coredump.intra.peff.net>