# configuration/constants/vcs.constants.ts

> 14 lines of code and 5 definitions.

Tree: GovLab Stats
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/stats#file-stats-configuration-constants-vcs-constants-ts
Source text: https://banes-lab.com/source/stats/configuration/constants/vcs.constants.ts.txt

Listed in [configuration/constants](https://banes-lab.com/api/source/stats/configuration/constants.md), after [configuration/constants/taxonomy.constants.ts](https://banes-lab.com/source/stats/configuration/constants/taxonomy.constants.ts.md).

## Definitions

- `VCS_BINARY` (lexical_declaration, line 1, exported)
- `WORKSPACE_LABEL` (lexical_declaration, line 3, exported)
- `INSIDE_WORK_TREE` (lexical_declaration, line 5, exported)
- `SHORTLOG_SEPARATOR` (lexical_declaration, line 7, exported)
- `VCS_QUERIES` (lexical_declaration, line 9, exported)

## Contained in

- [configuration/constants](https://banes-lab.com/anatomy/stats/folder-stats-configuration-constants.md)

## Source

```typescript
export const VCS_BINARY = "git";

export const WORKSPACE_LABEL = "banes-lab";

export const INSIDE_WORK_TREE = "true";

export const SHORTLOG_SEPARATOR = "\t";

export const VCS_QUERIES = {
    branch: ["rev-parse", "--abbrev-ref", "HEAD"],
    commits: ["rev-list", "--count", "HEAD"],
    firstDate: ["log", "--reverse", "--max-parents=0", "-1", "--format=%as"],
    head: ["rev-parse", "--short", "HEAD"],
    inside: ["rev-parse", "--is-inside-work-tree"],
    lastDate: ["log", "-1", "--format=%as"],
    shortlog: ["shortlog", "-sne", "--all"],
    tracked: ["ls-files"],
} as const;
```
