git log filter稀疏签出

时间:2019-05-14 22:33:51

标签: git git-log

我有一个大型项目,我使用稀疏检出来排除一个目录(该目录非常大)。但是,当我使用git log时,将显示已经通过稀疏检出排除的目录中的提交,这会污染我的真正兴趣。

通过指定一个目录为this question给出的答案对我不起作用,因为我需要排除一个目录,但要包含多个目录。我来自perforce,如果我指定return await stepContext.PromptAsync("ShowChoicePrompt", new PromptOptions { Prompt = MessageFactory.Text("Please select from choices"), RetryPrompt = MessageFactory.Text("Sorry, Please the valid choice"), Choices = ChoiceFactory.ToChoices(choicesList), Style = ListStyle.HeroCard, }, cancellationToken); ,它将不包含我的p4客户端规范中排除的文件或目录。

1 个答案:

答案 0 :(得分:0)

exclude选项与pathspecs一起使用。例如:

$ git log --first-parent --name-status -- ':(exclude)plugin/'

syntastic repository 的克隆中没有显示commit 69b0c3e85a319ad21f560d7b25524cf02921be82,而git log 没有的排除显示了它。