On Thu, Jun 18, 2015 at 11:50 AM, Junio C Hamano gits...@pobox.com wrote:
Patrick Palka patr...@parcs.ath.cx writes:
Currently the diff-highlight script does not try to highlight hunks that
have different numbers of removed/added lines. But we can be a little
smarter than that, without
On Thu, 18 Jun 2015, Jeff King wrote:
On Thu, Jun 18, 2015 at 11:08:16AM -0700, Junio C Hamano wrote:
So as I said, I do not think it would hurt to have this as an
incremental improvement (albeit going in a possibly wrong
direction).
Of course, it is a separate question if this change makes
On Thu, Jun 18, 2015 at 2:08 PM, Junio C Hamano gits...@pobox.com wrote:
Patrick Palka patr...@parcs.ath.cx writes:
I have this nagging feeling that it is just as likely that two
uneven hunks align at the top as they align at the bottom, so while
this might not hurt it may not be the right
On Thu, Jun 18, 2015 at 3:08 PM, Jeff King p...@peff.net wrote:
On Thu, Jun 18, 2015 at 12:28:58PM -0400, Patrick Palka wrote:
By the way, what would it take to get something like this script into
git proper? It is IMHO immensely useful even in its current form, yet
because it's not baked
On Thu, Jun 18, 2015 at 5:23 PM, Jeff King p...@peff.net wrote:
On Thu, Jun 18, 2015 at 04:45:05PM -0400, Jeff King wrote:
Still, I think this is probably a minority case, and it may be
outweighed by the improvements. The real solution is to consider the
hunk as a whole and do an LCS diff on
On Thu, 18 Jun 2015, Jeff King wrote:
On Thu, Jun 18, 2015 at 04:14:19PM -0400, Patrick Palka wrote:
in a test script becomes more clear. But some of the output is not so
great. For instance, the very commit under discussion has a
confusing and useless highlight. Or take a documentation patch
(lexicographical) add/remove pairs. It is not uncommon for hunks to
have common prefixes, and in such a case this change is very useful
for spotting differences.
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
contrib/diff-highlight/diff-highlight | 26 +-
1 file changed, 17
more sense to make
it optional.
Reported-by: Patrick Palka patr...@parcs.ath.cx
Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com
Thanks! I can confirm that this change fixes my use case.
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord
Hi everyone,
I noticed that git-reset does not seem to respect GIT_WORK_TREE. Here
is a simplified test case:
$ mkdir src_dir cd src_dir
$ git init
$ touch A git add A git commit -m Dummy commit.
$ mkdir ../build_dir cd ../build_dir
$ export GIT_WORK_TREE=../src_dir
$ export
You can override an option set in the LESS variable by simply prefixing
the command line option with `-+`. This is more robust than the previous
example if the default LESS options are to ever change.
Signed-off-by: Patrick Palka patr...@parcs.ath.cx
---
Documentation/config.txt |8
10 matches
Mail list logo