mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
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.
29 lines
940 B
C++
29 lines
940 B
C++
#ifndef SCM_STATUS_H_KRMEHC4M
|
|
#define SCM_STATUS_H_KRMEHC4M
|
|
|
|
#include <oak/misc.h>
|
|
|
|
namespace scm
|
|
{
|
|
namespace status
|
|
{
|
|
enum type
|
|
{
|
|
unknown = 0, // We should always know the state of a file so this should never happen
|
|
none = 1, // File is known and clean
|
|
unversioned = 2, // File is not tracked by the version control system nor ignored
|
|
modified = 4, // File has local changes
|
|
added = 8, // File is locally marked for tracking
|
|
deleted = 16, // File is locally marked for deletion
|
|
conflicted = 32, // File has conflicts that the user should resolve
|
|
ignored = 64, // File is being ignored by the version control system
|
|
mixed = 128, // Directory contains files with mixed state
|
|
};
|
|
PUBLIC std::string to_s (type status);
|
|
};
|
|
typedef std::map<std::string, scm::status::type> status_map_t;
|
|
|
|
} /* scm */
|
|
|
|
#endif /* end of include guard: SCM_STATUS_H_KRMEHC4M */
|