Exemplo n.º 1
0
        /// <inheritdoc/>
        public void Backup(LockedFile file)
        {
            if (file is null)
            {
                throw new ArgumentNullException(nameof(file));
            }

            file.Close();
            _ = Git.StageAndCommit(file.File, allowEmptyCommit: false);
        }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public void Backup(LockedFile file)
 {
     file.Close();
     Git.StageAndCommit(file.File, allowEmptyCommit: false);
 }