internal static void WriteHeader(DiffItemUtil aItem, DiffItemUtil bItem,
DiffOptions diffOpts)
{
StreamWriter stream = diffOpts.StreamWriter;
stream.Write("diff --tfs " + aItem.Name + " ");
if (!String.IsNullOrEmpty(diffOpts.SourceLabel))
stream.Write(diffOpts.SourceLabel + " ");
stream.Write(bItem.Name);
if (!String.IsNullOrEmpty(diffOpts.TargetLabel))
stream.Write("@" + diffOpts.TargetLabel);
stream.WriteLine();
// the trailing tabs below help diffutils grok filenames with spaces
stream.WriteLine("--- " + aItem.Name + "\t");
stream.WriteLine("+++ " + bItem.Name + "\t");
}