On Tue, 15 Jan 2008, Linus Torvalds wrote:Well, part of the issue is that, if you drop the prefix, then *git* can't understand the resulting patch (because --git causes git-apply to use open-coded -p1 handling of names, which won't be right). I suppose the other option is to have the header in this case be: diff --git --src-prefix= --dst-prefix= filename filename so that apply can figure out what diff did correctly. That seems wise to me. We should be able to generate patches that are accessible to programs that can't follow any clever instructions. I think the point of the "Index:" header is that these programs will freak out if two filenames don't match (or, more likely, break in some way), and it means you can't sensibly generate patches that upset them for deletes or creates. -Daniel *This .sig left intentionally blank* - 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
| Linus Torvalds | Re: [PATCH 00/23] per device dirty throttling -v8 |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| serge | Re: 2.6.25-rc5-mm1 |
| Kamalesh Babulal | [BUG] Linux 2.6.25-rc2 - Kernel Ooops while running dbench |
git: | |
| Francis Moreau | Track /etc directory using Git |
| Abdelrazak Younes | Git-windows and git-svn? |
| Johan Herland | Re: People unaware of the importance of "git gc"? |
| Scott Chacon | git-scm.com |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Stallman | Real men don't attack straw men |
| Florin Andrei | firewall is very slow, something's wrong |
| qw er | OpenBSD sucks |
| David Miller | xfrm_state locking regression... |
| David Miller | [GIT]: Networking |
| Thomas Jarosch | Re: TCP connection stalls under 2.6.24.7 |
| Dave Jones | Re: odd RTL8139 quirk. |
