So I have a problem adding hunks for my commit properly.
I have something like so:
@@ -6,6 +9,5 @@
#include "incfile.h"
bool func3(int&, const char*);
-int func1(const int, std::vector<std::unique_ptr<type> >&);
-void func2(const std::vector<std::unique_ptr<type> >&);
+int func1(const int, std::vector<std::shared_ptr<type> >&);
void func4(const int);
I am trying to only stage only the change to func2
I want t he changes to func1
in a diff commit, and I am struggling because every time and every combination of me removing -
or lines or whatever is resulting in a patch that doesn't apply. I thought that I could simply remove the -
from in front of func1
and delete the +
line for func1
and it would be fine but it is not working.