Skip to content

flags

Returns the flags on the delta.

Signature

ts
class DiffDelta {
  flags(): number;
}

Returns

  • number

    The flags on the delta.

Examples

ts
import { DiffDelta, DiffFlags, diffFlagsContains } from 'es-git';

const delta: DiffDelta;
console.assert(diffFlagsContains(delta.flags(), DiffFlags.Binary | DiffFlags.ValidId));

Released under the MIT License.