【发布时间】:2019-02-18 03:52:32
【问题描述】:
我正在尝试使用this 来应用我所做的重大更改。我做了以下事情:
1. git pull (before I started working)
2. changed some code
3. git diff > ~/my_diff
4. git stash
5. git pull
6. git stash pop
由于冲突而失败,所以我尝试了:
7. cp ~/my_diff ./
8. git add -p ~/my_diff
但我什么也没得到...该文件包含很多更改,但出于某种原因,它表明没有大块要修补。有什么问题?
这是来自 git 的确切响应:
Your branch is up-to-date with '...'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
my_diff
nothing added to commit but untracked files present (use "git add" to track)
.../trunk $ git add -p my_diff
No changes.
这里是head -30 ~/my_diff:
diff --git a/trunk/files_transfer_mgmt/inc/files_transfer_mgmt.h b/trunk/files_transfer_mgmt/inc/files_transfer_mgmt.h
index 28907bd..f108931 100644
--- a/trunk/files_transfer_mgmt/inc/files_transfer_mgmt.h
+++ b/trunk/files_transfer_mgmt/inc/files_transfer_mgmt.h
@@ -13,6 +13,7 @@
#include "iss_api.h"
#include "rf_termserver.h"
#include "rf_versions_util.h"
+#include "common_apis.h"
#ifdef __cplusplus
extern "C" {
@@ -23,23 +24,40 @@
#define DEVICE_SFP "/dev/sfp"
-#define SECONDS_TO_USECONDS(seconds) (seconds * 1000000)
+#define SECONDS_TO_USECONDS(seconds) (seconds * 1000000)
+
+#define DEFAULT_FTPS_ERR_LOG "FTPS_error_log_tmp.txt"
#ifdef __cplusplus
}
#endif /* __cplusplus */
void SECURE_StartFileDownloadFromHere(void * data);
+void SECURE_ZT_entry_point(void * data);
void SECURE_StartGenericFileTransferFromHere(void * data);
void SECURE_getDownloadStatus(int argc, char *argv[],FILE *fin, FILE *fout,pedro_callback_func_args_t *pedro);
所以你可以看到它是一个格式良好的差异文件
【问题讨论】:
标签: git git-commit git-add