So, I have a patch that was created with "git diff" (can't use format-patch in my situation). If the patch deletes files, such as:
diff --git a/foo.cpp b/foo.cpp deleted file mode 100644 index ccfb3ce..0000000 --- a/foo.cpp +++ /dev/null @@ -1,82 +0,0 @@ - ... then those deletes are reflected in Git after the "git apply", which is good. But, if my patch ADDS a file, such as: diff --git a/bar.h b/bar.h new file mode 100644 index 0000000..46ecebe --- /dev/null +++ b/bar.h @@ -0,0 +1,40 @@ + ... then this file is just left in my workspace as an untracked file, and not added with "git add". This is annoying. Is there a way to convince "git apply" to add new files to Git? Cheers! -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
