atom/git-utils

Status Code Number Means?

vnpnlz opened this issue · 1 comments

I am not sure if the status number I am getting using the getStatus() method is a git status code or it is a standard response of this app? I have 3 files for testing, the modified file has 256 status number, the deleted file has 512 and created file has 128. Someone enlighten me :) thanks!

Not well documented, but you can find the meaning behind the numbers here:

git-utils/src/git.js

Lines 5 to 14 in ad8c620

const statusIndexNew = 1 << 0
const statusIndexModified = 1 << 1
const statusIndexDeleted = 1 << 2
const statusIndexRenamed = 1 << 3
const statusIndexTypeChange = 1 << 4
const statusWorkingDirNew = 1 << 7
const statusWorkingDirModified = 1 << 8
const statusWorkingDirDelete = 1 << 9
const statusWorkingDirTypeChange = 1 << 10
const statusIgnored = 1 << 14