Infrastructure\GitRepository.cs (12)
19=> (await command.ExecuteAsync("git", ["--no-pager", "-C", directory, "rev-parse", "HEAD"])).Trim();
25=> command.ExecuteAsync("git", [.. s_authenticatedRemoteArguments, "clone", "--depth", "1", "--branch", branch, remoteUrl, directory]);
28=> command.ExecuteAsync("git", ["--no-pager", "init", directory]);
31=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "checkout", "--orphan", branch]);
34=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "remote", "add", "origin", remoteUrl]);
38await command.ExecuteAsync("git", ["--no-pager", "-C", directory, "config", "user.name", name]);
39await command.ExecuteAsync("git", ["--no-pager", "-C", directory, "config", "user.email", email]);
43=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "config", "credential.helper", "!gh auth git-credential"]);
46=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "add", "--", .. files]);
49=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "diff", "--cached", "--name-only"]);
52=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "commit", "-m", message]);
55=> command.ExecuteAsync("git", ["--no-pager", "-C", directory, "push", "origin", $"HEAD:{branch}"]);