UNPKG

thegit

Version:

Implementation of git in node.js.

38 lines (35 loc) 872 B
let rootDir = ""; // tells you const baseDirs = [".legit/refs/heads", ".legit/objects"]; const baseFiles = [".legit/HEAD", ".legit/index",".legit/config",".legit/COMMIT_EDITMSG"]; const baseRef = "ref: refs/heads/main"; const indexDir = ".legit/index"; const objectDir = ".legit/objects/"; const headsDir = ".legit/refs/heads/" const commitFileCommand = ''; let username = ""; let email = ""; let commitMessage = ""; const yellowColor = "\x1b[33m"; const greenColor = "\x1b[32m"; const redColor = '\x1b[31m'; const resetColor = "\x1b[0m"; const rootToWorkingPath = ""; const global = { rootDir, baseDirs, baseFiles, baseRef, indexDir, objectDir, username, email, commitMessage, yellowColor, resetColor, headsDir, greenColor, redColor, rootToWorkingPath, commitFileCommand }; module.exports = global;