git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Pro Git Book

From
Scott Chacon <schacon@gmail.com>
Date
Jul 28, 2009, 16:14 UTC
Message-ID
<d411cc4a0907280914v520d3c25xefc4e0f74046c4bb@mail.gmail.com>
In-Reply-To
<20090728085600.GA33224@gmail.com>
Hey,
On Tue, Jul 28, 2009 at 1:56 AM, David Aguilar<davvid@gmail.com> wrote:
Show 21 quoted lines
>
> Good stuff,
> Thanks Scott.
>
> In http://progit.org/book/ch7-1.html we go through a
> lot of machinations to setup an external diff viewer.
>
> That might be a good time to introduce git-difftool, even if
> only to mention that the setup is much simpler when difftool is
> used.  It allows you to do without the wrapper scripts.
>
> $ p4=/Applications/p4.merge.app/Contents/MacOS/p4merge
> $ git config --global difftool.p4.cmd "$p4 \"\$LOCAL\" \"\$REMOTE\""
> $ git difftool -t p4
>
> $ git config --global diff.tool p4
> $ git difftool
>
> It's even easier if you use one of the several built-in tools,
> e.g. opendiff, kompare, meld, etc., since it requires no
> configuration.

That's a good point - I never actually covered that, it looks like. I'll put that in the list of things to cover for the second edition :)

>
> Mentioning that it's a fairly new feature is probably important,
> too.  Hmm. I guess I should've send a patch ;-)

If you are interested in contributing and don't mind releasing the rights to your contributions to also be published commercially under a second edition in the future, please feel free to fork the project on GitHub and send me a pull request for anything you add. I've already gotten errata in this manner, which is pretty cool. Otherwise I'll try to get this in eventually.

Thanks, Scott

Previous: David AguilarNext: Jakub Narebski
Message 4 of 8 in “Pro Git Book”
  1. Scott ChaconJul 27, 2009
  2. Tim VisherJul 27, 2009
  3. David AguilarJul 28, 2009
  4. Scott ChaconJul 28, 2009
  5. Jakub NarebskiJul 29, 2009
  6. Scott ChaconJul 29, 2009
  7. Sverre RabbelierJul 29, 2009
  8. Luciano RochaJul 30, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.