From: Martin Paraskevov <martin.paraskevov@gmail.com>
To: git@vger.kernel.org
Subject: git apply won't work
Date: Thu, 12 Mar 2009 16:14:34 -0700 [thread overview]
Message-ID: <a6d7dc140903121614s229ce97an2cb5737ef46c0421@mail.gmail.com> (raw)
Hi all,
I did the following:
edited
did commit 1
edited
did commit 2
edited
did commit 3
Now I want to patch the changes between 2 and 3 onto 1, i.e. have commit 3 but
with the changes from commit 2 removed. I created a branch where I reset
it to commit 1 and then tried to apply the diff between 3 and 2.
The patch however won't patch certain files. It contains the excerpt below,
for example, so it should be patching directory.c but it isn't. The command
I'm running is just:
% git apply filesys.patch
What am I doing wrong?
diff --git a/src/filesys/directory.c b/src/filesys/directory.c
index 0d265d5..31b7fd6 100644
--- a/src/filesys/directory.c
+++ b/src/filesys/directory.c
@@ -2,50 +2,57 @@
#include <stdio.h>
#include <string.h>
#include <list.h>
+#include "filesys/file.h"
#include "filesys/filesys.h"
#include "filesys/inode.h"
#include "threads/malloc.h"
-
-/* A directory. */
-struct dir
- {
- struct inode *inode; /* Backing store. */
- off_t pos; /* Current position. */
- };
... more lines ...
- Martin
next reply other threads:[~2009-03-12 23:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 23:14 Martin Paraskevov [this message]
2009-03-13 0:09 ` git apply won't work Bryan Donlan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a6d7dc140903121614s229ce97an2cb5737ef46c0421@mail.gmail.com \
--to=martin.paraskevov@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).