Skip to content

status

Returns the status of this entry.

Signature

ts
class DiffDelta {
  status(): DeltaType;
}

Returns

  • DeltaType

    The status of this entry.

    - Unmodified : No changes.
    - Added : Entry does not exist in an old version.
    - Deleted : Entry does not exist in a new version.
    - Modified : Entry content changed between old and new.
    - Renamed : Entry was renamed between old and new.
    - Copied : Entry was copied from another old entry.
    - Ignored : Entry is ignored item in workdir.
    - Untracked : Entry is untracked item in workdir.
    - Typechange : Type of entry changed between old and new.
    - Unreadable : Entry is unreadable.
    - Conflicted : Entry in the index is conflicted.

Released under the MIT License.