Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 478 Bytes
/// Contains helper functions which allow to deal with git's staging area.
module Fake.Tools.Git.Staging
open Fake.Core
open Fake.Tools.Git.CommandHelper
/// Adds a file to the staging area
let stageFile repositoryDir file =
|> fixPath
|> sprintf "update-index --add \"%s\""
|> runGitCommand repositoryDir
/// Adds all files to the staging area
let stageAll repositoryDir =
"add . --all"
|> runSimpleGitCommand repositoryDir
|> Trace.trace
You can’t perform that action at this time.