Files
textmate/Frameworks/scm/src/status.cc
Allan Odgaard 2d2dd62351 Change scm::status::versioned → none
The scm::status::versioned status has now been removed.

The upshot of this is that SCM drivers can leave out files that are “clean” from their status map, and TextMate will assume they have status “none” (clean). This cuts down on the amount of data that needs to be sent (and/or processed) by the SCM drivers.
2012-09-02 17:53:50 +02:00

26 lines
604 B
C++

#include "status.h"
#include <text/format.h>
namespace scm
{
namespace status
{
std::string to_s (type status)
{
switch(status)
{
case unknown: return "unknown";
case none: return "clean";
case unversioned: return "untracked";
case modified: return "modified";
case added: return "added";
case deleted: return "deleted";
case conflicted: return "conflicted";
case ignored: return "ignored";
case mixed: return "mixed";
default: return text::format("unknown (%d)", status);
}
}
}
} /* scm */