Left over from before I'd added the here document, so there'd be a file to
diff against, and it would be wrong, and I could find the actual contents.
I just forgot to take it out when I was creating the real thing.
Sure. Possibly we should instead just be testing for the presence of the
correct line, and absence of incorrect lines, in any case?
What I'm actually testing for is the "M<tab>one" line, and that the
previous line isn't name-status stuff; that is, that the name-status stuff
is right.
Of course, a patch to clean up the user experience could have a hunk that
makes the test expect that the UI is cleaned up. It's not like we can't
change our tests to accompany improvements in behavior, and I'd argue that
those hunks give a useful example of the improvement.
I think we're already testing for that. I really want the "HEAD is now..."
line, which ought to give the right info.
The point of adding these tests (and parts of tests) is that I'd forgotten
to maintain some of the important information while writing
builtin-checkout, and there wasn't a test that it was provided. While some
of the output is arbitrary informative text, there's a certain amount of
generated information there that shouldn't get lost or be incorrect.
-Daniel
*This .sig left intentionally blank*
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html