Liking cljdoc? Tell your friends :D

test-filter.git

Git operations for detecting code changes between revisions.

Git operations for detecting code changes between revisions.
raw docstring

changed-filesclj

(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
sourceraw docstring

current-revisionclj

(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.
sourceraw docstring

find-changed-symbolsclj

(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
sourceraw docstring

git-diffclj

(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
sourceraw docstring

has-uncommitted-changes?clj

(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.
sourceraw docstring

parse-diff-line-rangesclj

(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}]}
sourceraw docstring

resolve-revisionclj

(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.
sourceraw docstring

symbols-in-rangeclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close