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