【发布时间】:2014-02-27 19:52:22
【问题描述】:
所以我在为我的提交正确添加大块时遇到了问题。
我有这样的事情:
@@ -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);
我试图仅将更改暂存为 func2 我希望他在差异提交中更改为 func1,我很挣扎,因为我每次和每一次组合都会删除 - 或行或其他导致补丁不适用。我认为我可以简单地从func1 前面删除- 并删除func1 的+ 行,这很好,但它不起作用。
【问题讨论】:
标签: git git-commit