git diff-tree five six -r --name-status -B -M | sort >actual && { echo "R100 foo bar" echo "R100 bar foo" } | sort >expect && test_cmp expect actual'test_expect_success 'cross renames to be detected for typechange' 'git diff-tree one two -r --name-status -B -M | sort...
GIT_DIFF_INCLUDE_TYPECHANGE_TREES = (1u << 7), /** Ignore file mode changes */ GIT_DIFF_IGNORE_FILEMODE = (1u << 8), /** Treat all submodules as unmodified */ GIT_DIFF_IGNORE_SUBMODULES = (1u << 9), /** Use case insensitive filename comparisons */ GIT_DIFF_IGNORE_CASE =...
Objects in a packfile can either bedeltifiedornon-deltified. Deltification means that Git stores only a special diff instead of storing the whole object. Normal diffs reference a base object and describe a series of actions (e.g., insert, delete, or typechange) that should be applied to ...
case DIFF_STATUS_MODIFIED: return _("modified:"); case DIFF_STATUS_RENAMED: return _("renamed:"); case DIFF_STATUS_TYPE_CHANGED: return _("typechange:"); case DIFF_STATUS_UNKNOWN: return _("unknown:"); case DIFF_STATUS_UNMERGED: return _("unmerged:"); default: return...
示例8: test_diff_diffiter__iterate_files_2 ▲点赞 1▼ voidtest_diff_diffiter__iterate_files_2(void){ git_repository *repo =cl_git_sandbox_init("status"); git_diff_list *diff;size_td, num_d;intcount =0; cl_git_pass(git_diff_workdir_to_index(repo,NULL, &diff)); ...
* "git diff --submodule=diff" showed failure from run_command() when trying to run diff inside a submodule, when the user manually removes the submodule directory. * "git bundle unbundle" learned to show progress display. * In cone mode, the sparse-index code path learned to remove ignore...
msgid "typechange: %s" msgstr "" #: wt-status.c:285 #, c-format msgid "unknown: %s" msgstr "" #: wt-status.c:288 #, c-format msgid "unmerged: %s" msgstr "" #: wt-status.c:291 #, c-format msgid "bug: unhandled diff status %c" msgstr "" #: wt-stat...
但是,当我运行“git status”时,没有提到这一点。 在我通过运行“git diff”意识到文件被删除之前,我很高兴地想到没有错。 因此,我有两个问题:文件是否有理由不会在“git status”中显示为已删除或移动?另外,如何重新添加文件? 对于那些不确定我在说什么的人,请考虑以下示例:...
示例8: test_checkout_typechange__checkout_with_conflicts ▲点赞 1▼ voidtest_checkout_typechange__checkout_with_conflicts(void){inti; git_object *obj; git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; notify_counts cts = {0}; ...
t4016-diff-quote.sh t4017-diff-retval.sh t4018-diff-funcname.sh t4019-diff-wserror.sh t4020-diff-external.sh t4021-format-patch-numbered.sh t4022-diff-rewrite.sh t4023-diff-rename-typechange.sh t4024-diff-optimize-common.sh t4025-hunk-header.sh t4026-color.sh t4027-diff-submodule.sh...