Exemplo n.º 1
0
 public static void Rm(string @ref)
 {
     if (Refs.IsRef(@ref))
     {
         File.Delete(Path.Combine(Files.GitletPath(), @ref));
     }
 }
Exemplo n.º 2
0
 public static void Write(string @ref, string content)
 {
     if (Refs.IsRef(@ref))
     {
         Files.Write(Path.Combine(Files.GitletPath(), @ref), content);
     }
 }
Exemplo n.º 3
0
 private static bool Exists(string @ref)
 {
     return(Refs.IsRef(@ref) && File.Exists(Path.Combine(Files.GitletPath(), @ref)));
 }