login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
17
Re: [PATCH] fix adbhid mismerge
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Björn
Subject:
Re: [PATCH] fix adbhid mismerge
Date: Wednesday, October 17, 2007 - 11:28 am
On 2007.10.17 18:18:21 +0200, Björn Steinbrink wrote:
quoted text
> On 2007.10.16 19:21:53 -0700, Linus Torvalds wrote: > > > > > > On Tue, 16 Oct 2007, Linus Torvalds wrote: > > > > > > I don't think you did anything wrong. You used both --full-history > > > (implicitly: git-whatchanged) and you made sure to see the diffs for both > > > sides of any merge (-m), and that means that you should see every single > > > diff involved. > > > > Btw, if anybody can come up with a better way to find these kinds of > > mis-merges, I'd love to hear about it. > > > [...] > > > > What I'd actually really like would be something that shows the original > > conflict, but that's really expensive to compute (it basically involves > > re-doing the merge from scratch - finding the proper base commit(s) etc). > > So we never did that. > > So here's what I came up with: > > git grep -l "int keycode, up_flag" \ > $(git-rev-list HEAD --parents -- drivers/macintosh/adbhid.c | \ > egrep '(.{40} ?){3}' | cut -d' ' -f1) \ > -- drivers/macintosh/adbhid.c | grep -o '^[^:]*' > > Which gives: b981d8b3f5e008ff10d993be633ad00564fc22cd > > Then: > git checkout b981d8b3f5e008ff10d993be633ad00564fc22cd^1 > git merge b981d8b3f5e008ff10d993be633ad00564fc22cd^2 > > And you got your merge conflict. > > The idea is, that the above ugliness searches for the last commit that
Oops! Obviously I meant to do s/last commit/merge commit/ before sending that email.
quoted text
> produced the bad line. The inner git-rev-list call searches for merge > commits (thanks to Ilari in #git for the egrep trick), then git-grep > looks which of these have the "bad line" and the final grep just filters > the filename out. > > If the bash thing spits out more than one commit hash, you probably want > to use the last one... I guess... And if the given result doesn't > produce the request merge conflict, well, I guess you could replace HEAD > in the git-rev-list call with the sha1 you got in the first run, but I'm > not entirely sure about that. > > Is that helpful? > > Björn
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] fix adbhid mismerge
, Al Viro
, (Tue Oct 16, 5:02 pm)
Re: [PATCH] fix adbhid mismerge
, Linus Torvalds
, (Tue Oct 16, 6:21 pm)
Re: [PATCH] fix adbhid mismerge
, Linus Torvalds
, (Tue Oct 16, 7:21 pm)
Re: [PATCH] fix adbhid mismerge
, Björn
, (Wed Oct 17, 9:18 am)
Re: [PATCH] fix adbhid mismerge
, Björn
, (Wed Oct 17, 11:28 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Andy Walls
Re: [PATCH 11/32] v4l/cx18: update workqueue usage
Thomas Gleixner
[patch -mm 19/28] x86_64: Use generic cmos update
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Laflen, Brandon (GE, Research)
RE: fatal: Unable to find remote helper for 'http'
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate