Skip to content

Commit

Permalink
Merge pull request #20 from ubisoft/dot-not-use-first-parent-when-get…
Browse files Browse the repository at this point in the history
…ting-file-revisi

Dot not use --first-parent when getting file revisions
  • Loading branch information
LaurentM-Ubi authored Dec 7, 2022
2 parents 022d888 + ad3dbf5 commit 7dea52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitTimelapseView.Core/Models/FileHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private IReadOnlyList<FileCommitId> GetFileCommitIDs(ILogger logger)
var filePath = FilePath;
do
{
var args = $"rev-list --first-parent HEAD -- \"{filePath}\"";
var args = $"rev-list HEAD -- \"{filePath}\"";
var result = GitHelpers.RunGitCommand(GitRootPath, args, logger).Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries).ToList();

if (result.Count == 0)
Expand Down

0 comments on commit 7dea52d

Please sign in to comment.