Git operations for detecting code changes between revisions.
Git operations for detecting code changes between revisions.
(changed-files from-rev)
(changed-files from-rev to-rev)
Returns a list of files that changed between two revisions.
Args: from-rev - Starting revision to-rev - Ending revision (defaults to HEAD)
Returns: Vector of file paths
Returns a list of files that changed between two revisions. Args: from-rev - Starting revision to-rev - Ending revision (defaults to HEAD) Returns: Vector of file paths
(current-revision)
Returns the current git revision (commit SHA).
This function retrieves the full 40-character SHA hash of the current HEAD commit.
Returns the current git revision (commit SHA). This function retrieves the full 40-character SHA hash of the current HEAD commit.
(find-changed-symbols symbol-graph from-rev)
(find-changed-symbols symbol-graph from-rev to-rev)
Finds all symbols that have changed between two revisions.
Args: symbol-graph - Symbol graph from analyzer from-rev - Starting revision to-rev - Ending revision (nil = working directory, defaults to HEAD)
Returns: Set of symbols that have changed
Finds all symbols that have changed between two revisions. Args: symbol-graph - Symbol graph from analyzer from-rev - Starting revision to-rev - Ending revision (nil = working directory, defaults to HEAD) Returns: Set of symbols that have changed
(git-diff from-rev)
(git-diff from-rev to-rev)
Gets the diff between two revisions.
Args: from-rev - Starting revision (commit SHA) to-rev - Ending revision (nil = working directory, defaults to HEAD)
Returns: String containing the git diff output
Gets the diff between two revisions. Args: from-rev - Starting revision (commit SHA) to-rev - Ending revision (nil = working directory, defaults to HEAD) Returns: String containing the git diff output
(has-uncommitted-changes?)
Returns true if there are uncommitted changes in the working directory.
Returns true if there are uncommitted changes in the working directory.
(parse-diff-line-ranges diff-output)
Parses git diff output to extract changed line ranges per file.
Returns: Map of {file-path -> [{:start-line N :end-line M :type :added/:deleted/:modified}]}
Parses git diff output to extract changed line ranges per file. Returns: Map of {file-path -> [{:start-line N :end-line M :type :added/:deleted/:modified}]}
(resolve-revision rev-spec)
Resolves a git revision reference (partial SHA, branch name, tag, etc.) to a full SHA.
Examples: (resolve-revision "abc123") ; partial SHA (resolve-revision "HEAD~3") ; relative reference (resolve-revision "main") ; branch name (resolve-revision "v1.0.0") ; tag
Returns the full commit SHA.
Resolves a git revision reference (partial SHA, branch name, tag, etc.) to a full SHA. Examples: (resolve-revision "abc123") ; partial SHA (resolve-revision "HEAD~3") ; relative reference (resolve-revision "main") ; branch name (resolve-revision "v1.0.0") ; tag Returns the full commit SHA.
(symbols-in-range symbol-graph file start-line end-line)
Returns symbols whose definitions overlap with the given line range.
Args: symbol-graph - Symbol graph from analyzer file - File path start-line - Start of changed range end-line - End of changed range
Returns: Set of symbols that overlap with the range
Returns symbols whose definitions overlap with the given line range. Args: symbol-graph - Symbol graph from analyzer file - File path start-line - Start of changed range end-line - End of changed range Returns: Set of symbols that overlap with the range
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |