From 895e735b5e2c961bea0b18bcbdfe695a101407b4 Mon Sep 17 00:00:00 2001 From: Joel Reed Date: Fri, 20 Jul 2007 13:04:46 -0400 Subject: [PATCH] write.path.hack --- tools/tf/Command.cs | 7 +++++++ tools/tf/DiffCommand.cs | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/tf/Command.cs b/tools/tf/Command.cs index 6b22882..c394a5b 100644 --- a/tools/tf/Command.cs +++ b/tools/tf/Command.cs @@ -228,6 +228,13 @@ abstract class Command : CommandOptions } } + public void WritePath(string p) + { + // make this an option soon + if (!runningOnUnix) p = p.Replace('\\', '/'); + Console.WriteLine(p); + } + public abstract void Run (); } diff --git a/tools/tf/DiffCommand.cs b/tools/tf/DiffCommand.cs index bef37ca..e71c296 100644 --- a/tools/tf/DiffCommand.cs +++ b/tools/tf/DiffCommand.cs @@ -75,7 +75,7 @@ class DifferenceCommand : Command if (OptionBrief) { - Console.WriteLine(p); + WritePath(p); continue; } @@ -154,7 +154,7 @@ class DifferenceCommand : Command string p = fname.Substring(path.Length+1); if (OptionBrief) { - Console.WriteLine(p); + WritePath(p); continue; } @@ -233,7 +233,7 @@ class DifferenceCommand : Command if (OptionBrief) { - Console.WriteLine(p); + WritePath(p); continue; } -- 2.11.4.GIT