* new file missing after resolving rebase merge conflict
@ 2008-08-24 17:20 Benny Halevy
0 siblings, 0 replies; only message in thread
From: Benny Halevy @ 2008-08-24 17:20 UTC (permalink / raw)
To: git
with git version 1.6.0
When rebasing a branch onto another
(command was git rebase --onto newbase newbase.orig branch)
I've hit a merge conflict in one of the patches that
among other things, adds some new files to the tree.
After resolving the conflict and running git add on the
resolved files I ran git rebase --continue and in a later
patch, when trying to compile I noticed that one of the files
that the former patch was supposed to add is missing from the
tree and from the index.
I'm not sure it's relevant, yet this file is the last hunk in
the patch.
Anyhow, the file still appears with git show of the rebased
patch:
$ git show 39fe203
...
diff --git a/include/linux/pnfs_xdr.h b/include/linux/pnfs_xdr.h
new file mode 100644
index 0000000..1f811c5
--- /dev/null
+++ b/include/linux/pnfs_xdr.h
@@ -0,0 +1,137 @@
but it doesn't appear to exist in the index:
$ git checkout include/linux/pnfs_xdr.h
error: pathspec 'include/linux/pnfs_xdr.h' did not match any file(s) known to git.
only after explicitly re-checking it out from the former patch:
$ git checkout 39fe203 -- include/linux/pnfs_xdr.h
it comes to existence.
Benny
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-24 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-24 17:20 new file missing after resolving rebase merge conflict Benny Halevy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.