Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/steveukx/git-js
/ functions
Functions
659 in github.com/steveukx/git-js
⨍
Functions
659
◇
Types & classes
147
↓ 7 callers
Function
pluginContext
(task: SimpleGitTask<R>, commands: string[])
simple-git/src/lib/runners/git-executor-chain.ts:264
↓ 7 callers
Function
toPaths
(value: string)
packages/args-pathspec/src/pathspec.ts:20
↓ 6 callers
Function
aVulnerability
(category: VulnerabilityCategory)
packages/argv-parser/test/__fixtures__/mocks.ts:22
↓ 6 callers
Function
assertExecutedTasksCount
(count: number)
simple-git/test/unit/__fixtures__/expectations.ts:10
↓ 6 callers
Function
callbackArray
(callbacks: jest.Mock[] = [])
simple-git/test/unit/promises.spec.ts:82
↓ 6 callers
Function
configOperation
(isWrite = false, positionals: string[] = [])
packages/argv-parser/src/config/detect-config-action.ts:42
↓ 6 callers
Function
createAbortController
()
packages/test-utils/src/create-abort-controller.ts:3
↓ 6 callers
Function
file
(path, content = `File content ${path}`)
packages/test-utils/src/create-test-context.ts:69
↓ 6 callers
Method
getConfig
* Gets the current value of a configuration property by it key, optionally specify the scope in which * to run the command (omit / set to `undefin
simple-git/typings/simple-git.d.ts:584
↓ 6 callers
Function
getRemotesTask
( verbose: boolean )
simple-git/src/lib/tasks/remote.ts:20
↓ 6 callers
Method
isClean
* Gets whether this represents a clean working branch.
simple-git/typings/response.d.ts:379
↓ 6 callers
Function
logFormatFromCommand
(customArgs: string[])
simple-git/src/lib/args/log-format.ts:11
↓ 6 callers
Method
mergeFromTo
* Merges from one branch to another, equivalent to running `git merge ${remote} ${branch}`, the `options` argument can * either be an array of add
simple-git/typings/simple-git.d.ts:87
↓ 6 callers
Function
mockSuccessCallback
(expected: Partial<InitResult>, commands: string[])
simple-git/test/unit/init.spec.ts:159
↓ 6 callers
Function
parseEnv
(raw: Record<string, unknown>)
packages/argv-parser/src/env/parse-env.ts:69
↓ 6 callers
Function
parsePullResult
(stdOut, stdErr)
simple-git/src/lib/parsers/parse-pull.ts:56
↓ 6 callers
Function
parseRemoteMessages
( _stdOut: string, stdErr: string )
simple-git/src/lib/parsers/parse-remote-messages.ts:30
↓ 6 callers
Method
tags
* Gets a list of tagged versions.
simple-git/typings/simple-git.d.ts:1015
↓ 6 callers
Function
theChildProcessMatching
(what: string[] | ((mock: MockChildProcess) => boolean))
simple-git/test/unit/__fixtures__/child-processes.ts:67
↓ 6 callers
Method
version
* Retrieves `git` version information, including whether `git` is installed on the `PATH`
simple-git/typings/simple-git.d.ts:1030
↓ 6 callers
Function
writeToStdErr
(data = '')
simple-git/test/unit/__fixtures__/child-processes.ts:7
↓ 5 callers
Method
$emitted
(event: string)
simple-git/test/unit/__mocks__/mock-child-process.ts:26
↓ 5 callers
Function
$logNames
(...matching: RegExp[])
simple-git/test/unit/__fixtures__/debug.ts:44
↓ 5 callers
Method
addRemote
* Adds a remote to the list of remotes. * * - `remoteName` Name of the repository - eg "upstream" * - `remoteRepo` Fully qualified SSH or
simple-git/typings/simple-git.d.ts:223
↓ 5 callers
Function
asStringArray
(source: T | T[])
simple-git/src/lib/utils/util.ts:134
↓ 5 callers
Function
assertBranchDeletion
( options: string[], branchSummary: BranchSummary | BranchSingleDeleteResult, hash:
simple-git/test/unit/branch.spec.ts:58
↓ 5 callers
Function
branchDeleteLog
(branchName: string, hash = 'b190102')
simple-git/test/unit/branch.spec.ts:19
↓ 5 callers
Function
configurationLinesMatching
(test: string)
simple-git/test/integration/config.spec.ts:20
↓ 5 callers
Function
createInstanceConfig
( ...options: Array<Partial<SimpleGitOptions> | undefined> )
simple-git/src/lib/utils/simple-git-options.ts:10
↓ 5 callers
Function
deleteLocalSuccess
()
simple-git/test/unit/branch.spec.ts:366
↓ 5 callers
Method
diff
* Get the diff of the current repo compared to the last commit with a set of options supplied as a string.
simple-git/typings/simple-git.d.ts:500
↓ 5 callers
Function
givenTheResponse
(stdOut: string, stdErr = '')
simple-git/test/unit/merge.spec.ts:185
↓ 5 callers
Method
merge
* Runs a merge, `options` can be either an array of arguments * supported by the [`git merge`](https://git-scm.com/docs/git-merge) * or an opt
simple-git/typings/simple-git.d.ts:78
↓ 5 callers
Function
parser
()
simple-git/src/git.js:555
↓ 5 callers
Function
preventFlagBuilder
( task: string | null, flag: string | RegExp, category: VulnerabilityCategory, name = String(flag)
packages/argv-parser/src/vulnerabilities/detect-vulnerable-flags.ts:18
↓ 5 callers
Function
remove
(target: Set<T> | T[], item: T)
simple-git/src/lib/utils/util.ts:108
↓ 5 callers
Function
showPrefix
(git: SimpleGit)
simple-git/test/integration/change-directory.spec.ts:84
↓ 5 callers
Method
stash
* Stash the local repo
simple-git/typings/simple-git.d.ts:137
↓ 4 callers
Function
bufferToString
(input: Buffer | Buffer[])
simple-git/src/lib/utils/util.ts:157
↓ 4 callers
Function
change
(count: number, sign: '-' | '+')
simple-git/test/unit/__fixtures__/responses/diff.ts:5
↓ 4 callers
Method
checkoutLocalBranch
* Checkout a local branch - equivalent to `git checkout -b ${branchName}`
simple-git/typings/simple-git.d.ts:352
↓ 4 callers
Function
configListParser
(text: string)
simple-git/src/lib/responses/ConfigList.ts:46
↓ 4 callers
Method
countObjects
* Retrieves `git` disk usage information, see https://git-scm.com/docs/git-count-objects
simple-git/typings/simple-git.d.ts:455
↓ 4 callers
Function
diffSummarySingleFile
( insertions: SmallNumber = 1, deletions: SmallNumber = 2, fileName = 'package.json' )
simple-git/test/unit/__fixtures__/responses/diff.ts:26
↓ 4 callers
Method
env
* Sets an environment variable for the spawned child process, either supply both a name and value as strings or * a single object to entirely repl
simple-git/typings/simple-git.d.ts:535
↓ 4 callers
Function
filterArray
( input )
simple-git/src/lib/utils/argument-filters.ts:19
↓ 4 callers
Function
filterFunction
(input: unknown)
simple-git/src/lib/utils/argument-filters.ts:58
↓ 4 callers
Function
filterPlainObject
( input: T | unknown )
simple-git/src/lib/utils/argument-filters.ts:52
↓ 4 callers
Function
first
(input: unknown[] | IArguments, offset = 0)
simple-git/src/lib/utils/util.ts:41
↓ 4 callers
Function
givenTheResponse
({ stdErr, stdOut }: { stdErr: string; stdOut: string })
simple-git/test/unit/push.spec.ts:196
↓ 4 callers
Function
orVoid
(input: T | false)
simple-git/src/lib/utils/util.ts:180
↓ 4 callers
Function
out
(file: DiffResultTextFile, changed = 0, insertions = 0, deletions = 0)
simple-git/test/integration/log.spec.ts:71
↓ 4 callers
Function
prefixedArray
(input: T[], prefix: T)
simple-git/src/lib/utils/util.ts:149
↓ 4 callers
Function
prefixedLogger
( to: Debugger, prefix: string, forward?: OutputLoggingHandler )
simple-git/src/lib/git-logger.ts:35
↓ 4 callers
Function
process
(proc: MockChildProcess, data: string, close = false, exit = false)
simple-git/test/unit/plugins/plugin.completion-detection.spec.ts:5
↓ 4 callers
Function
renaming
(from: string, to: string)
simple-git/test/unit/mv.spec.ts:5
↓ 4 callers
Function
runUsingAwait
(cmd: string)
simple-git/test/integration/promise.spec.ts:30
↓ 4 callers
Function
runUsingThen
(cmd: string)
simple-git/test/integration/promise.spec.ts:23
↓ 4 callers
Method
show
* Show various types of objects, for example the file at a certain commit
simple-git/typings/simple-git.d.ts:908
↓ 4 callers
Method
step
(nextStep?: string)
simple-git/src/lib/git-logger.ts:31
↓ 4 callers
Function
subModuleTask
(customArgs: string[])
simple-git/src/lib/tasks/sub-module.ts:12
↓ 4 callers
Function
test
(target: T[] | Set<T>, itemA: T, itemB: T)
simple-git/test/unit/utils.spec.ts:103
↓ 4 callers
Function
toNumber
(input: string | undefined)
simple-git/src/lib/responses/TagList.ts:58
↓ 4 callers
Function
versionResponse
( major = 0, minor = 0, patch: string | number = 0, agent = '', installed = true )
simple-git/src/lib/tasks/version.ts:15
↓ 4 callers
Function
vulnerabilityCheck
(tokens: readonly string[], env: Record<string, unknown>)
packages/argv-parser/src/vulnerabilities/vulnerability-check.ts:8
↓ 3 callers
Function
$logMessagesFor
(name: string)
simple-git/test/unit/__fixtures__/debug.ts:52
↓ 3 callers
Function
aPushedBranch
( local: string, remote: string, state = states.newBranch, branch = true
simple-git/test/unit/push.spec.ts:98
↓ 3 callers
Function
adhocExecTask
(parser: EmptyTaskParser)
simple-git/src/lib/tasks/task.ts:13
↓ 3 callers
Function
asConfigScope
( scope: GitConfigScope | unknown, fallback: T )
simple-git/src/lib/tasks/config.ts:14
↓ 3 callers
Function
assertAllExecutedCommands
(...commands: string[][])
simple-git/test/unit/__fixtures__/expectations.ts:18
↓ 3 callers
Function
assertCheckIsRepoRoot
(response: string, expected: boolean)
simple-git/test/unit/check-is-repo.spec.ts:131
↓ 3 callers
Function
assertChildProcessEnvironmentVariables
(env: any)
simple-git/test/unit/__fixtures__/expectations.ts:34
↓ 3 callers
Function
assertSuccess
(summary: StatusResult | unknown, commands: string[])
simple-git/test/unit/status.spec.ts:459
↓ 3 callers
Method
branchLocal
* List of local branches
simple-git/typings/simple-git.d.ts:260
↓ 3 callers
Function
branchSummaryLine
(commit: string, hash = '', current = false)
simple-git/test/unit/__fixtures__/responses/branch.ts:5
↓ 3 callers
Function
callback
(err: Error | null, result?: any)
simple-git/src/lib/runners/promise-wrapped.ts:123
↓ 3 callers
Method
catFile
* Returns a list of objects in a tree based on commit hash. * Passing in an object hash returns the object's content, size, and type. * *
simple-git/typings/simple-git.d.ts:272
↓ 3 callers
Method
checkoutBranch
* Checkout a remote branch - equivalent to `git checkout -b ${branchName} ${startPoint}` * * - branchName name of branch. * - startPoint (
simple-git/typings/simple-git.d.ts:327
↓ 3 callers
Function
checkoutTask
(args: string[])
simple-git/src/lib/tasks/checkout.ts:6
↓ 3 callers
Function
conflicts
(indexX: PorcelainFileStatus, ...indexY: PorcelainFileStatus[])
simple-git/src/lib/responses/StatusSummary.ts:57
↓ 3 callers
Function
createLogger
( label: string, verbose?: string | Debugger, initialStep?: string, infoDebugger = createLog() )
simple-git/src/lib/git-logger.ts:74
↓ 3 callers
Function
currentlyRunning
()
simple-git/test/integration/output-handler.spec.ts:14
↓ 3 callers
Method
deleteLocalBranches
* Delete one or more local branches. Supply the branchName as a string to return a * single `BranchDeletionSummary` or as an array of branch names
simple-git/typings/simple-git.d.ts:491
↓ 3 callers
Function
exitChildProcess
(proc: MockChildProcess, data: string | null, exitSignal: number)
simple-git/test/unit/__fixtures__/child-processes.ts:84
↓ 3 callers
Function
expectedBranchSummary
(commit = '', label = '')
simple-git/test/integration/branches-show-current.spec.ts:6
↓ 3 callers
Function
forEachLineWithContent
( input: string, callback: LineWithContentCallback<T> )
simple-git/src/lib/utils/util.ts:72
↓ 3 callers
Function
including
(target: T[], item: T)
simple-git/src/lib/utils/util.ts:100
↓ 3 callers
Method
kill
(reason)
simple-git/src/lib/runners/git-executor-chain.ts:205
↓ 3 callers
Function
listConfigFile
(...lines: string[])
simple-git/test/unit/config.spec.ts:51
↓ 3 callers
Method
mv
* Moves one or more files to a new destination. * * @see https://git-scm.com/docs/git-mv
simple-git/typings/simple-git.d.ts:677
↓ 3 callers
Function
objectEnumerationResult
( remoteMessages: T )
simple-git/src/lib/parsers/parse-remote-objects.ts:8
↓ 3 callers
Method
outputHandler
* Sets a handler function to be called whenever a new child process is created, the handler function will be called * with the name of the command
simple-git/typings/simple-git.d.ts:114
↓ 3 callers
Function
parseBranchDeletions
( stdOut, stdErr )
simple-git/src/lib/parsers/parse-branch-delete.ts:29
↓ 3 callers
Function
parseTagList
(data: string, customSort = false)
simple-git/src/lib/responses/TagList.ts:10
↓ 3 callers
Method
pushTags
* Pushes the current tag changes to a remote which can be either a URL or named remote. When not specified uses the * default configured remote sp
simple-git/typings/simple-git.d.ts:705
↓ 3 callers
Method
rebase
* Rebases the current working copy. Options can be supplied either as an array of string parameters * to be sent to the `git rebase` command, or a
simple-git/typings/simple-git.d.ts:807
↓ 3 callers
Method
revert
* Revert one or more commits in the local working copy * * - commit The commit to revert. Can be any hash, offset (eg: `HEAD~2`) or range (eg:
simple-git/typings/simple-git.d.ts:864
↓ 3 callers
Method
stashList
* List the stash(s) of the local repo
simple-git/typings/simple-git.d.ts:935
↓ 3 callers
Method
submoduleInit
* Initialise submodules
simple-git/typings/simple-git.d.ts:962
↓ 3 callers
Method
submoduleUpdate
* Update submodules
simple-git/typings/simple-git.d.ts:983
← previous
next →
101–200 of 659, ranked by callers