Date: Wed, 30 Sep 2015 18:35:38 +0200 From: Polytropon <freebsd@edvax.de> To: Dangling Pointer <danglingpointer@outlook.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: git diff encoding issue when running via Hyper-V Message-ID: <20150930183538.2a5041f7.freebsd@edvax.de> In-Reply-To: <BAY169-W71C66922F8EC775F053CC4A74D0@phx.gbl> References: <BAY169-W424C7A9E96B8530A5BCAF0A74D0@phx.gbl> <20150930165744.3437d751.freebsd@edvax.de> <BAY169-W427D636EB4B23950789C1BA74D0@phx.gbl> <20150930175436.c1117526.freebsd@edvax.de> <BAY169-W71C66922F8EC775F053CC4A74D0@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Sep 2015 16:21:57 +0000, Dangling Pointer wrote: > # echo "This is ^[[31mred^[[m text." > > > > prints red colored "red" text. :) > > > > # git diff &1> ../blah.txt > > # cat ../blah.txt > > > > shows: > > > > [...] > > -setup_dirs() > +setup_dirs2() > > [...] > > > > but > > > > # git diff > > > > still emits the mangled output on stdout. This seems to suggest that git does not use the default pager for output ("cat" or "less"). When you pipe the output to one of those programs, like % git diff | cat or % git diff | less is the output different? Does the Git documentation provide some clue about the pager it uses for its diff functionality? The problem becomes more clear now. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150930183538.2a5041f7.freebsd>