【发布时间】:2015-09-23 08:32:18
【问题描述】:
我一直在尝试获取在 Windows 7 上的 Sourcetree 中工作的 Word .docx 文件的文本差异。我已按照此处Using Microsoft Word with git 的说明使用 Pandoc,并且可以从命令行使其工作。不幸的是,我无法让那个差异出现在 Sourcetree 中。我还需要做些什么才能使其正常工作吗?
这是我放在项目根目录中的 .gitattributes 文件:
# Add diff of docx files.
*.docx diff=word
这是我的 .git\config 文件:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[diff "word"]
textconv=pandoc --to=markdown
prompt = false
[alias]
wdiff = diff --word-diff=color --unified=1
【问题讨论】:
-
您可能对 jira.atlassian.com/browse/SRCTREEWIN-1416 感兴趣,但该票尚未关闭
-
感谢您的链接。这表明我不会让这个工作。
-
是的,这表明这没有在源代码树中实现
标签: windows git diff docx atlassian-sourcetree