El 21/11/2007, a las 12:27, Jeff King escribió:A few problems with that: - FileMerge is broken, and crashes if you pass /dev/null as a param (which happens for new/deleted files) - you need to escape those $-signs - the params you're interested in are actually $2 and $5, not $1 and $2, according to git(7) - you need to handle the clean tree case (no params are passed) - and also the 1-param case, "for unmerged paths", whatever that means - will only work when run from the top of the tree (path parameters are passed in relative to that) So here's a less-broken version of your suggestion, but it's still broken; a relatively complex wrapper is required to do this right: $ cat >merge.sh <<EOF #!/bin/sh [ \$# -eq 7 ] && opendiff "\$2" "\$5" EOF chmod +x merge.sh GIT_EXTERNAL_DIFF=./merge.sh git-diff ... Cheers, Wincent - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Adrian Bunk | Re: Linux 2.6.21 |
| Eric W. Biederman | Re: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu |
| Gene Heskett | Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
| Mel Gorman | Re: 2.6.21-rc7-mm2 -- x86_64 VDSO compile error |
git: | |
| David Miller | Re: Git and GCC |
| Paolo Ciarrocchi | Question about "git commit -a" |
| Abdelrazak Younes | Git-windows and git-svn? |
| Steven Grimm | Re: Git User's Survey 2007 |
| Kai Römer | Re: GPS |
| Thomas MIGLINCI | AW: 2.5mm or 3.5mm |
| Alexey Feldgendler | Re: Neo as cellular modem? |
| ian douglas | Re: SanDisk micro SDHC 8GB card under testing |
| Richard Stallman | Real men don't attack straw men |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| L. V. Lammert | Re: About Xen: maybe a reiterative question but .. |
| Michael | Performance: OpenVPN vs IPsec |
| Shared swap partition | 5 hours ago | Linux general |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 2 days ago | Applications and Utilities |
| the kernel how to power off the machine | 2 days ago | Linux kernel |
| Easter Eggs in windows XP | 2 days ago | Windows |
| Root password | 2 days ago | Linux general |
| Where/when DNOTIFY is used? | 2 days ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 2 days ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 2 days ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 2 days ago | Linux general |
