Re: pci_update_resource() getting called on sparc64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mon, 8 Aug 2005, Greg KH wrote:
> 
> Hm, how do you revert a git patch?

Something like this?

	#!/bin/sh
	. git-sh-setup-script || die "Not a git archive"
	rev=$(git-rev-parse --verify --revs-only "$@") || exit
	git-diff-tree -R -p $rev | git-apply --index &&
		echo "Revert $rev" | git commit

Just name it "git-revert-script" and it might do what you want to do.

It may not have the nicest error messages: if you try to revert a merge
(which won't have a diff), git-apply will say something like

	fatal: No changes

which isn't exactly being helpful. And the revert message could be made 
more interesting (like putting the first line of the description of what 
we reverted into the message instead of just the revision number).

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux