Bug 195680

Summary: devel/git: color diff prints instead of evaluating the color sequences
Product: Ports & Packages Reporter: VK <vlad-fbsd>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed FIXED    
Severity: Affects Only Me CC: wxs
Priority: --- Flags: bugzilla: maintainer-feedback?
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
devel_git.r376291.diff none

Description VK 2014-12-04 18:07:07 UTC
The git diff color output is broken because the color sequences are printed instead of being evaluated. The accepted answer here works for me (with default less pager):

http://unix.stackexchange.com/questions/64927/git-diff-displays-colors-incorrectly

I suggest a pkg-message added with a note describing the problem and the fix.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-04 18:07:07 UTC
Auto-assigned to maintainer wxs@FreeBSD.org
Comment 2 VK 2015-01-05 12:55:26 UTC
Created attachment 151352 [details]
devel_git.r376291.diff

Adding a patch against the SVN tree (rev 376291) to include a message about configuring git in general, including the pager for broken color output.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-01-07 16:12:20 UTC
A commit references this bug:

Author: garga
Date: Wed Jan  7 16:11:27 UTC 2015
New revision: 376467
URL: https://svnweb.freebsd.org/changeset/ports/376467

Log:
  - Add a pkg-message warning user about git diff color being broken with
    default PAGER [1]
  - Add LICENSE
  - Bump PORTREVISION

  PR:		195680 [1]
  Submitted by:	Vlad "Blackflow" K. [1]

Changes:
  head/devel/git/Makefile
  head/devel/git/pkg-message