libgit2 bindings for Emacs
This is an experimental module for libgit2 bindings to Emacs, intended to boost the performance of magit.
Other work in this direction:
- ksjogo/emacs-libgit2 in C, has been dormant for more than a year.
- ubolonton/magit-libgit2 in Rust.
This module is written in C, and aims to be a thin wrapper around libgit2. That means that all functions in the libgit2 reference should translate more-or-less directly to Emacs, in the following sense:
- Function names are the same, except with underscores replaced by hyphens. The prefix is changed
from
git-
tolibgit-
. - Predicate functions are given a
-p
suffix, and words like "is" are removed, e.g.git_repository_is_bare
becomeslibgit-repository-bare-p
. - Output parameters become return values.
- Error codes become error signals (type
giterr
). - Return types map to their natural Emacs counterparts, or opaque user pointers when not applicable
(e.g. for
git-???
structures). Exceptions:git-oid
andgit-buf
types are converted to Emacs strings. - Boolean parameters or pointers towards the end of argument lists whose natural default value is false or NULL will be made optional.
Quality-of-life convenience functionality is better implemented in Emacs Lisp than in C.
Building
There is a loader file written in Emacs Lisp that will build the module for you, but the
git submodule
steps need to be run manually.
git submodule init
git submodule update
mkdir build
cd build
cmake ..
make
If you're on OSX and using Macports, you may need to set CMAKE_PREFIX_PATH
to avoid linking
against the wrong libiconv. For example,
cmake -DCMAKE_PREFIX_PATH=/opt/local ..
Testing
Ensure that you have Cask installed.
cask install
cd build
make test
To see more output for debugging new tests you can specify more verbose output.
make test ARGS=-V
Using
Ensure that libgit.el
is somewhere in your load path. Then
(require 'libgit)
If the dynamic module was not already built, you should be asked to do it manually.
If you use Borg, then use the following .gitmodules
entry.
[submodule "libgit"]
path = lib/libgit
url = [email protected]:magit/libegit2.git
build-step = make
Contributing
Adding a function
- Find the section that the function belongs to (i.e.
git_SECTION_xyz
). - Create, if necessary,
src/egit-SECTION.h
andsrc/egit-SECTION.c
. - In
src/egit-SECTION.h
, declare the function withEGIT_DEFUN
. See existing headers for examples. - In
src/egit-SECTION.c
, document the function withEGIT_DOC
. See existing files for examples. - In
src/egit-SECTION.c
, implement the function. See existing files for examples.- Always check argument types in the beginning. Use
EGIT_ASSERT
for this. These macros may return. - Then, extract the data needed from
emacs_value
. This may involve allocating buffers for strings. - Call the
libgit2
backend function. - Free any memory you might need to free that was allocated in step 2.
- Check the error code if applicable with
EGIT_CHECK_ERROR
. This macro may return. - Create return value and return.
- Always check argument types in the beginning. Use
- In
src/egit.c
, create aDEFUN
call inegit_init
. You may need to include a new header.
Adding a type
Sometimes a struct of type git_???
may need to be returned to Emacs as an opaque user pointer.
To do this, we use a wrapper structure with a type information tag.
Some objects expose data that belong to other objects. In many cases, libgit2 keeps reference-counts
on these internally, but that's not always true. In particular, git_repository
structs are not
reference-counted (although the data-owning sub-objects like git_odb
are). Neither are lightweight
public structs like git_index_entry
, git_diff_XYZ
, etc. In these cases, the parent types must
be reference-counted on our side, and the child types must keep a reference to the parent alive.
- In
src/egit.h
, add an entry to theegit_type
enum for the new type. - In
src/egit.h
add a newEGIT_ASSERT
macro for the new type. - In
src/egit.c
add a new entry to theegit_finalize
switch statement to free the structure. If the type is reference-counted, also add an entry to the decref switch statement. - In
src/egit.c
add a new entry to theegit_typeof
switch statement. - In
src/egit.c
add a new type predicate by calling theTYPECHECKER
macro. - In
src/egit.c
create aDEFUN
call inegit_init
for the type predicate. - In
src/interface.h
add two new symbols,libgit-TYPE-p
andTYPE
. - In
src/interface.c
initialize those symbols in theem_init
function.
Returning opaque pointers to Emacs
To create a new user pointer, call egit_wrap
with arguments:
- The
emacs_env*
- The type tag
- The pointer to wrap
- The parent wrapper, if applicable (note: this is an
egit_object*
, not agit_XYZ*
)
To return an existing user pointer (usually by grabbing the parent field of an egit_object*
),
just increase the reference count and use the EM_USER_PTR
macro. Do not do this for types that are
not reference-counted!
Function list
This is a complete list of functions in libgit2. It therefore serves more or less as an upper bound on the amount of work needed.
Legend:
โ๏ธ Function is implementedโ Function should probably not be implemented (reason given)โ Undecided
Some functions are defined in libgit2 headers in the sys
subdirectory, and are not reachable from
a standard include (i.e. #include "git2.h"
). For now, we will skip those on the assumption that
they are more specialized.
Estimates (updated periodically):
- Implemented: 325 (41.8%)
- Should not implement: 169 (21.7%)
- To do: 284 (36.5%)
- Total: 778
extra
These are functions that do not have a libgit2
equivalent.
Type checkers and predicates:
โ๏ธ git-typeof
โ๏ธ git-blame-p
โ๏ธ git-commit-p
โ๏ธ git-cred-p
โ๏ธ git-diff-p
โ๏ธ git-diff-delta-p
โ๏ธ git-diff-binary-p
โ๏ธ git-diff-hunk-p
โ๏ธ git-diff-line-p
โ๏ธ git-index-p
โ๏ธ git-index-entry-p
โ๏ธ git-object-p
โ๏ธ git-reference-p
โ๏ธ git-repository-p
โ๏ธ git-signature-p
โ๏ธ git-reference-direct-p
โ๏ธ git-reference-symbolic-p
โ๏ธ git-transaction-p
โ๏ธ git-tree-p
Getters for public structs:
โ๏ธ git-blame-hunk-commit-id
โ๏ธ git-blame-hunk-lines
โ๏ธ git-blame-hunk-orig-path
โ๏ธ git-blame-hunk-signature
โ๏ธ git-blame-hunk-start-line-number
โ๏ธ git-diff-delta-file-id
โ๏ธ git-diff-delta-file-path
โ๏ธ git-diff-delta-nfiles
โ๏ธ git-diff-delta-similarity
โ๏ธ git-diff-delta-status
โ๏ธ git-diff-delta-file-exists-p
โ๏ธ git-diff-hunk-header
โ๏ธ git-diff-hunk-lines
โ๏ธ git-diff-hunk-start
โ๏ธ git-diff-line-origin
โ๏ธ git-diff-line-lineno
โ๏ธ git-diff-line-content
โ๏ธ git-index-entry-path
โ๏ธ git-signature-name
โ๏ธ git-signature-email
โ๏ธ git-signature-time
Iterators converted to map functions:
โ๏ธ git-branch-foreach
โ๏ธ git-index-conflict-foreach
annotated
โ git-annotated-commit-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-annotated-commit-from-fetchhead
โ๏ธ git-annotated-commit-from-ref
โ๏ธ git-annotated-commit-from-revspec
โ๏ธ git-annotated-commit-id
โ๏ธ git-annotated-commit-lookup
attr
โ git-attr-add-macro
โ git-attr-cache-flush
โ git-attr-foreach
โ git-attr-get
โ git-attr-get-many
โ git-attr-value
blame
โ git-blame-buffer
โ๏ธ git-blame-file
โ git-blame-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-blame-get-hunk-byindex
โ๏ธ git-blame-get-hunk-byline
โ๏ธ git-blame-get-hunk-count
โ git-blame-init-options
(options are represented by analist
)
blob
โ๏ธ git-blob-create-frombuffer
โ๏ธ git-blob-create-fromdisk
โ git-blob-create-fromstream
โ git-blob-create-fromstream-commit
โ๏ธ git-blob-create-fromworkdir
โ git-blob-dup
โ๏ธ git-blob-filtered-content
โ git-blob-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-blob-id
โ๏ธ git-blob-is-binary
(aslibgit-blob-binary-p
)โ๏ธ git-blob-lookup
โ๏ธ git-blob-lookup-prefix
โ๏ธ git-blob-owner
โ๏ธ git-blob-rawcontent
โ๏ธ git-blob-rawsize
branch
โ๏ธ git-branch-create
โ๏ธ git-branch-create-from-annotated
โ๏ธ git-branch-delete
โ๏ธ git-branch-is-checked-out
โ๏ธ git-branch-is-head
โ git-branch-iterator-free
โ git-branch-iterator-new
โ๏ธ git-branch-lookup
โ๏ธ git-branch-move
โ๏ธ git-branch-name
โ git-branch-next
โ๏ธ git-branch-remote-name
โ๏ธ git-branch-set-upstream
โ๏ธ git-branch-upstream
โ๏ธ git-branch-upstream-name
โ๏ธ git-branch-upstream-remote
buf
Probably none of these functions are necessary, since we can expose buffers to Emacs as strings.
โ git-buf-contains-nul
โ git-buf-free
(memory management shouldn't be exposed to Emacs)โ git-buf-grow
โ git-buf-is-binary
โ git-buf-set
checkout
โ๏ธ git-checkout-head
โ๏ธ git-checkout-index
โ git-checkout-init-options
โ๏ธ git-checkout-tree
cherrypick
โ๏ธ git-cherrypick
โ๏ธ git-cherrypick-commit
โ git-cherrypick-init-options
clone
โ๏ธ git-clone
โ git-clone-init-options
commit
โ git-commit-amend
โ๏ธ git-commit-author
โ๏ธ git-commit-body
โ๏ธ git-commit-committer
โ๏ธ git-commit-create
โ git-commit-create-buffer
โ git-commit-create-from-callback
(insys
)โ git-commit-create-from-ids
(insys
)โ git-commit-create-v
(git-commit-create
does the same)โ git-commit-create-with-signature
โ git-commit-dup
โ git-commit-extract-signature
โ git-commit-free
(memory management shouldn't be exposed to Emacs)โ git-commit-header-field
โ๏ธ git-commit-id
โ๏ธ git-commit-lookup
โ๏ธ git-commit-lookup-prefix
โ๏ธ git-commit-message
โ git-commit-message-encoding
โ git-commit-message-raw
โ๏ธ git-commit-nth-gen-ancestor
โ๏ธ git-commit-owner
โ๏ธ git-commit-parent
โ๏ธ git-commit-parent-id
โ๏ธ git-commit-parentcount
โ git-commit-raw-header
โ๏ธ git-commit-summary
โ๏ธ git-commit-time
โ git-commit-time-offset
(included ingit-commit-time
)โ๏ธ git-commit-tree
โ๏ธ git-commit-tree-id
config
โ git-config-add-backend
(insys
)โ๏ธ git-config-add-file-ondisk
โ git-config-backend-foreach-match
โ๏ธ git-config-delete-entry
โ๏ธ git-config-delete-multivar
โ git-config-entry-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-config-find-global
โ๏ธ git-config-find-programdata
โ๏ธ git-config-find-system
โ๏ธ git-config-find-xdg
โ git-config-foreach
โ git-config-foreach-match
โ git-config-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-config-get-bool
โ git-config-get-entry
โ git-config-get-int32
(don't need different integer types)โ๏ธ git-config-get-int64
(as-int
)โ git-config-get-mapped
โ git-config-get-multivar-foreach
โ๏ธ git-config-get-path
โ๏ธ git-config-get-string
โ git-config-get-string-buf
(probably fine with just-get-string
)โ git-config-init-backend
(insys
)โ git-config-iterator-free
(memory management shouldn't be exposed to Emacs)โ git-config-iterator-glob-new
โ git-config-iterator-new
โ๏ธ git-config-lock
โ git-config-lookup-map-value
โ git-config-multivar-iterator-new
โ๏ธ git-config-new
โ git-config-next
โ๏ธ git-config-open-default
โ๏ธ git-config-open-global
โ๏ธ git-config-open-level
โ๏ธ git-config-open-ondisk
โ git-config-parse-bool
โ git-config-parse-int32
โ git-config-parse-int64
โ git-config-parse-path
โ๏ธ git-config-set-bool
โ git-config-set-int32
(don't need different integer types)โ๏ธ git-config-set-int64
(as-int
)โ git-config-set-multivar
โ๏ธ git-config-set-string
โ๏ธ git-config-snapshot
cred
โ๏ธ git-cred-default-new
โ git-cred-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-cred-has-username
(git-cred-username-p
)โ git-cred-ssh-custom-new
โ git-cred-ssh-interactive-new
โ๏ธ git-cred-ssh-key-from-agent
โ๏ธ git-cred-ssh-key-memory-new
โ๏ธ git-cred-ssh-key-new
โ๏ธ git-cred-username-new
โ git-cred-userpass
(stock callback)โ๏ธ git-cred-userpass-plaintext-new
describe
โ๏ธ git-describe-commit
โ git-describe-format
(we return strings immediately)โ git-describe-result-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-describe-workdir
diff
โ git-diff-blob-to-buffer
โ git-diff-blobs
โ git-diff-buffers
โ git-diff-commit-as-email
โ git-diff-find-init-options
โ๏ธ git-diff-find-similar
โ๏ธ git-diff-foreach
โ git-diff-format-email
โ git-diff-format-email-init-options
โ git-diff-free
(memory management shouldn't be exposed to Emacs)โ git-diff-from-buffer
โ๏ธ git-diff-get-delta
โ git-diff-get-perfdata
(insys
)โ git-diff-get-stats
โ๏ธ git-diff-index-to-index
โ๏ธ git-diff-index-to-workdir
โ git-diff-init-options
โ git-diff-is-sorted-icase
โ git-diff-merge
โ๏ธ git-diff-num-deltas
โ๏ธ git-diff-num-deltas-of-type
(usegit-diff-num-deltas
)โ git-diff-patchid
โ git-diff-patchid-init-options
โ๏ธ git-diff-print
โ git-diff-print-callback--to-buf
(insys
)โ git-diff-print-callback--to-file-handle
โ git-diff-stats-deletions
โ git-diff-stats-files-changed
โ git-diff-stats-free
(memory management shouldn't be exposed to Emacs)โ git-diff-stats-insertions
โ git-diff-stats-to-buf
โ git-diff-status-char
โ git-diff-to-buf
โ๏ธ git-diff-tree-to-index
โ๏ธ git-diff-tree-to-tree
โ๏ธ git-diff-tree-to-workdir
โ๏ธ git-diff-tree-to-workdir-with-index
fetch
โ git-fetch-init-options
filter
โ git-filter-init
(insys
)โ git-filter-list-apply-to-blob
โ git-filter-list-apply-to-data
โ git-filter-list-apply-to-file
โ git-filter-list-contains
โ git-filter-list-free
(memory management shouldn't be exposed to Emacs)โ git-filter-list-length
(insys
)โ git-filter-list-load
โ git-filter-list-new
(insys
)โ git-filter-list-push
(insys
)โ git-filter-list-stream-blob
โ git-filter-list-stream-data
โ git-filter-list-stream-file
โ git-filter-lookup
(insys
)โ git-filter-register
(insys
)โ git-filter-source-filemode
(insys
)โ git-filter-source-flags
(insys
)โ git-filter-source-id
(insys
)โ git-filter-source-mode
(insys
)โ git-filter-source-path
(insys
)โ git-filter-source-repo
(insys
)โ git-filter-unregister
(insys
)
giterr
Probably none of these functions will be necessary, since we expose errors to Emacs as signals.
โ giterr-clear
โ giterr-last
โ giterr-set-oom
โ giterr-set-str
graph
โ๏ธ git-graph-ahead-behind
โ๏ธ git-graph-descendant-of
hashsig
โ git-hashsig-compare
(insys
)โ git-hashsig-create
(insys
)โ git-hashsig-create-fromfile
(insys
)โ git-hashsig-free
(memory management shouldn't be exposed to Emacs)
ignore
โ๏ธ git-ignore-add-rule
โ๏ธ git-ignore-clear-internal-rules
โ๏ธ git-ignore-path-is-ignored
index
โ git-index-add
โ๏ธ git-index-add-all
โ๏ธ git-index-add-bypath
โ git-index-add-frombuffer
โ๏ธ git-index-caps
โ๏ธ git-index-checksum
โ๏ธ git-index-clear
โ git-index-conflict-add
โ git-index-conflict-cleanup
โ๏ธ git-index-conflict-get
โ๏ธ git-index-conflict-iterator-free
(usegit-index-conflict-foreach
)โ๏ธ git-index-conflict-iterator-new
(usegit-index-conflict-foreach
)โ๏ธ git-index-conflict-next
(usegit-index-conflict-foreach
)โ git-index-conflict-remove
โ๏ธ git-index-entry-is-conflict
(usegit-index-entry-stage
)โ๏ธ git-index-entry-stage
โ๏ธ git-index-entrycount
โ git-index-find
โ git-index-find-prefix
โ git-index-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-index-get-byindex
โ๏ธ git-index-get-bypath
โ๏ธ git-index-has-conflicts
(asgit-index-conflicts-p
)โ git-index-new
โ git-index-open
โ๏ธ git-index-owner
โ๏ธ git-index-path
โ๏ธ git-index-read
โ git-index-read-tree
โ git-index-remove
โ git-index-remove-all
โ git-index-remove-bypath
โ git-index-remove-directory
โ git-index-set-caps
โ git-index-set-version
โ git-index-update-all
โ๏ธ git-index-version
โ๏ธ git-index-write
โ๏ธ git-index-write-tree
โ๏ธ git-index-write-tree-to
(usegit-index-write-tree
)
indexer
โ git-indexer-append
โ git-indexer-commit
โ git-indexer-free
(memory management shouldn't be exposed to Emacs)โ git-indexer-hash
โ git-indexer-new
libgit2
โ๏ธ git-libgit2-features
(aslibgit-feature-p
)โ git-libgit2-init
(internal)โ git-libgit2-opts
โ git-libgit2-shutdown
(internal)โ๏ธ git-libgit2-version
(aslibgit-version
)
mempack
โ git-mempack-dump
(insys
)โ git-mempack-new
(insys
)โ git-mempack-reset
(insys
)
merge
โ๏ธ git-merge
โ๏ธ git-merge-analysis
โ๏ธ git-merge-base
โ๏ธ git-merge-base-many
(usegit-merge-base
)โ๏ธ git-merge-base-octopus
โ๏ธ git-merge-bases
โ๏ธ git-merge-bases-many
(usegit-merge-bases
)โ git-merge-commits
โ git-merge-file
โ git-merge-file-from-index
โ git-merge-file-init-input
โ git-merge-file-init-options
โ git-merge-file-result-free
โ git-merge-init-options
โ git-merge-trees
message
โ๏ธ git-message-prettify
โ git-message-trailer-array-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-message-trailers
note
โ git-note-author
โ git-note-commit-create
โ git-note-commit-iterator-new
โ git-note-commit-read
โ git-note-commit-remove
โ git-note-committer
โ git-note-create
โ git-note-foreach
โ git-note-free
(memory management shouldn't be exposed to Emacs)โ git-note-id
โ git-note-iterator-free
โ git-note-iterator-new
โ git-note-message
โ git-note-next
โ git-note-read
โ git-note-remove
object
โ git-object--size
(memory management shouldn't be exposed to Emacs)โ git-object-dup
โ git-object-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-object-id
โ git-object-lookup
โ๏ธ git-object-lookup-bypath
โ๏ธ git-object-lookup-prefix
โ๏ธ git-object-owner
โ git-object-peel
โ๏ธ git-object-short-id
โ git-object-string2type
(see below)โ git-object-type
(can be covered by a more generalgit-typeof
for all opaque user pointers)โ git-object-type2string
(see above)โ git-object-typeisloose
odb
โ git-odb-add-alternate
โ git-odb-add-backend
โ git-odb-add-disk-alternate
โ git-odb-backend-loose
โ git-odb-backend-one-pack
โ git-odb-backend-pack
โ git-odb-exists
โ git-odb-exists-prefix
โ git-odb-expand-ids
โ git-odb-foreach
โ git-odb-free
(memory management shouldn't be exposed to Emacs)โ git-odb-get-backend
โ git-odb-hash
โ git-odb-hashfile
โ git-odb-init-backend
(insys
)โ git-odb-new
โ git-odb-num-backends
โ git-odb-object-data
โ git-odb-object-dup
โ git-odb-object-free
(memory management shouldn't be exposed to Emacs)โ git-odb-object-id
โ git-odb-object-size
โ git-odb-object-type
โ git-odb-open
โ git-odb-open-rstream
โ git-odb-open-wstream
โ git-odb-read
โ git-odb-read-header
โ git-odb-read-prefix
โ git-odb-refresh
โ git-odb-stream-finalize-write
โ git-odb-stream-free
(memory management shouldn't be exposed to Emacs)โ git-odb-stream-read
โ git-odb-stream-write
โ git-odb-write
โ git-odb-write-pack
oid
Probably none of these functions will be necessary, since we can expose OIDs to Emacs as strings.
โ git-oid-cmp
โ git-oid-cpy
โ git-oid-equal
โ git-oid-fmt
โ git-oid-fromraw
โ git-oid-fromstr
โ git-oid-fromstrn
โ git-oid-fromstrp
โ git-oid-iszero
โ git-oid-ncmp
โ git-oid-nfmt
โ git-oid-pathfmt
โ git-oid-shorten-add
โ git-oid-shorten-free
โ git-oid-shorten-new
โ git-oid-strcmp
โ git-oid-streq
โ git-oid-tostr
โ git-oid-tostr-s
oidarray
โ git-oidarray-free
(memory management shouldn't be exposed to Emacs)
openssl
โ git-openssl-set-locking
(insys
)
packbuilder
โ git-packbuilder-foreach
โ git-packbuilder-free
(memory management shouldn't be exposed to Emacs)โ git-packbuilder-hash
โ git-packbuilder-insert
โ git-packbuilder-insert-commit
โ git-packbuilder-insert-recur
โ git-packbuilder-insert-tree
โ git-packbuilder-insert-walk
โ git-packbuilder-new
โ git-packbuilder-object-count
โ git-packbuilder-set-callbacks
โ git-packbuilder-set-threads
โ git-packbuilder-write
โ git-packbuilder-written
patch
โ git-patch-free
(memory management shouldn't be exposed to Emacs)โ git-patch-from-blob-and-buffer
โ git-patch-from-blobs
โ git-patch-from-buffers
โ git-patch-from-diff
โ git-patch-get-delta
โ git-patch-get-hunk
โ git-patch-get-line-in-hunk
โ git-patch-line-stats
โ git-patch-num-hunks
โ git-patch-num-lines-in-hunk
โ git-patch-print
โ git-patch-size
โ git-patch-to-buf
pathspec
โ git-pathspec-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-pathspec-match-diff
โ๏ธ git-pathspec-match-index
โ๏ธ git-pathspec-match-list-diff-entry
โ๏ธ git-pathspec-match-list-entry
โ๏ธ git-pathspec-match-list-entrycount
โ๏ธ git-pathspec-match-list-failed-entry
โ๏ธ git-pathspec-match-list-failed-entrycount
โ git-pathspec-match-list-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-pathspec-match-tree
โ๏ธ git-pathspec-match-workdir
โ๏ธ git-pathspec-matches-path
โ๏ธ git-pathspec-new
proxy
โ git-proxy-init-options
push
โ git-push-init-options
rebase
โ git-rebase-abort
โ git-rebase-commit
โ git-rebase-finish
โ git-rebase-free
(memory management shouldn't be exposed to Emacs)โ git-rebase-init
โ git-rebase-init-options
โ git-rebase-inmemory-index
โ git-rebase-next
โ git-rebase-open
โ git-rebase-operation-byindex
โ git-rebase-operation-current
โ git-rebase-operation-entrycount
refdb
โ git-refdb-backend-fs
(insys
)โ git-refdb-compress
โ git-refdb-free
(memory management shouldn't be exposed to Emacs)โ git-refdb-init-backend
(insys
)โ git-refdb-new
โ git-refdb-open
โ git-refdb-set-backend
(insys
)
reference
โ git-reference--alloc
(insys
)โ git-reference--alloc-symbolic
(insys
)โ git-reference-cmp
โ๏ธ git-reference-create
โ๏ธ git-reference-create-matching
โ๏ธ git-reference-delete
โ๏ธ git-reference-dup
โ๏ธ git-reference-dwim
โ๏ธ git-reference-ensure-log
โ๏ธ git-reference-foreach
โ๏ธ git-reference-foreach-glob
โ๏ธ git-reference-foreach-name
โ git-reference-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-reference-has-log
โ๏ธ git-reference-is-branch
โ๏ธ git-reference-is-note
โ๏ธ git-reference-is-remote
โ๏ธ git-reference-is-tag
โ๏ธ git-reference-is-valid-name
โ git-reference-iterator-free
(use the foreach functions)โ git-reference-iterator-glob-new
(use the foreach functions)โ git-reference-iterator-new
(use the foreach functions)โ๏ธ git-reference-list
โ๏ธ git-reference-lookup
โ๏ธ git-reference-name
โ๏ธ git-reference-name-to-id
โ git-reference-next
(use the foreach functions)โ git-reference-next-name
(use the foreach functions)โ git-reference-normalize-name
โ๏ธ git-reference-owner
โ๏ธ git-reference-peel
โ๏ธ git-reference-remove
โ git-reference-rename
โ๏ธ git-reference-resolve
โ git-reference-set-target
โ๏ธ git-reference-shorthand
โ git-reference-symbolic-create
โ git-reference-symbolic-create-matching
โ git-reference-symbolic-set-target
โ๏ธ git-reference-symbolic-target
โ๏ธ git-reference-target
โ๏ธ git-reference-target-peel
โ๏ธ git-reference-type
reflog
โ๏ธ git-reflog-append
โ๏ธ git-reflog-delete
โ๏ธ git-reflog-drop
โ๏ธ git-reflog-entry-byindex
โ๏ธ git-reflog-entry-committer
โ๏ธ git-reflog-entry-id-new
(usegit-reflog-entry-id
)โ๏ธ git-reflog-entry-id-old
(usegit-reflog-entry-id
)โ๏ธ git-reflog-entry-message
โ๏ธ git-reflog-entrycount
โ git-reflog-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-reflog-read
โ๏ธ git-reflog-rename
โ๏ธ git-reflog-write
refspec
โ๏ธ git-refspec-direction
โ๏ธ git-refspec-dst
โ๏ธ git-refspec-dst-matches
โ๏ธ git-refspec-force
โ git-refspec-rtransform
โ๏ธ git-refspec-src
โ๏ธ git-refspec-src-matches
โ๏ธ git-refspec-string
โ git-refspec-transform
remote
โ๏ธ git-remote-add-fetch
(usegit-remote-add-refspec
)โ๏ธ git-remote-add-push
(usegit-remote-add-refspec
)โ๏ธ git-remote-autotag
โ git-remote-connect
โ git-remote-connected
โ๏ธ git-remote-create
โ git-remote-create-anonymous
โ git-remote-create-detached
โ git-remote-create-with-fetchspec
โ git-remote-default-branch
โ git-remote-delete
โ git-remote-disconnect
โ git-remote-download
โ git-remote-dup
โ๏ธ git-remote-fetch
โ git-remote-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-remote-get-fetch-refspecs
(usegit-remote-get-refspecs
)โ๏ธ git-remote-get-push-refspecs
(usegit-remote-get-refspecs
)โ๏ธ git-remote-get-refspec
โ git-remote-init-callbacks
โ๏ธ git-remote-is-valid-name
โ๏ธ git-remote-list
โ๏ธ git-remote-lookup
โ git-remote-ls
โ๏ธ git-remote-name
โ๏ธ git-remote-owner
โ git-remote-prune
โ git-remote-prune-refs
โ๏ธ git-remote-push
โ๏ธ git-remote-pushurl
โ๏ธ git-remote-refspec-count
โ git-remote-rename
โ git-remote-set-autotag
โ git-remote-set-pushurl
โ git-remote-set-url
โ git-remote-stats
โ git-remote-stop
โ git-remote-update-tips
โ git-remote-upload
โ๏ธ git-remote-url
repository
โ git-repository--cleanup
(insys
)โ๏ธ git-repository-commondir
โ๏ธ git-repository-config
โ git-repository-config-snapshot
โ๏ธ git-repository-detach-head
โ๏ธ git-repository-discover
โ git-repository-fetchhead-foreach
โ git-repository-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-repository-get-namespace
โ git-repository-hashfile
โ๏ธ git-repository-head
โ๏ธ git-repository-head-detached
โ๏ธ git-repository-head-for-worktree
โ๏ธ git-repository-head-unborn
โ๏ธ git-repository-ident
โ๏ธ git-repository-index
โ๏ธ git-repository-init
โ git-repository-init-ext
โ git-repository-init-init-options
โ๏ธ git-repository-is-bare
โ๏ธ git-repository-is-empty
โ๏ธ git-repository-is-shallow
โ๏ธ git-repository-is-worktree
โ git-repository-item-path
โ git-repository-mergehead-foreach
โ๏ธ git-repository-message
โ๏ธ git-repository-message-remove
โ git-repository-new
(insys
)โ git-repository-odb
โ๏ธ git-repository-open
โ๏ธ git-repository-open-bare
โ git-repository-open-ext
โ git-repository-open-from-worktree
โ๏ธ git-repository-path
โ git-repository-refdb
โ git-repository-reinit-filesystem
(insys
)โ git-repository-set-bare
(insys
)โ git-repository-set-config
(insys
)โ๏ธ git-repository-set-head
โ๏ธ git-repository-set-head-detached
โ git-repository-set-head-detached-from-annotated
โ๏ธ git-repository-set-ident
โ git-repository-set-index
(insys
)โ๏ธ git-repository-set-namespace
โ git-repository-set-odb
(insys
)โ git-repository-set-refdb
(insys
)โ๏ธ git-repository-set-workdir
โ๏ธ git-repository-state
โ๏ธ git-repository-state-cleanup
โ git-repository-submodule-cache-all
(insys
)โ git-repository-submodule-cache-clear
(insys
)โ๏ธ git-repository-workdir
โ git-repository-wrap-odb
reset
โ๏ธ git-reset
โ๏ธ git-reset-default
โ๏ธ git-reset-from-annotated
revert
โ๏ธ git-revert
โ๏ธ git-revert-commit
โ git-revert-init-options
revparse
โ๏ธ git-revparse
โ๏ธ git-revparse-ext
โ๏ธ git-revparse-single
revwalk
โ git-revwalk-add-hide-cb
(usegit-revwalk-foreach
)โ git-revwalk-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-revwalk-hide
โ๏ธ git-revwalk-hide-glob
โ๏ธ git-revwalk-hide-head
โ๏ธ git-revwalk-hide-ref
โ๏ธ git-revwalk-new
โ git-revwalk-next
(usegit-revwalk-foreach
)โ๏ธ git-revwalk-push
โ๏ธ git-revwalk-push-glob
โ๏ธ git-revwalk-push-head
โ๏ธ git-revwalk-push-range
โ๏ธ git-revwalk-push-ref
โ๏ธ git-revwalk-repository
โ๏ธ git-revwalk-reset
โ๏ธ git-revwalk-simplify-first-parent
โ๏ธ git-revwalk-sorting
signature
โ๏ธ git-signature-default
โ git-signature-dup
โ git-signature-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-signature-from-buffer
(usegit-signature-from-string
)โ๏ธ git-signature-new
โ๏ธ git-signature-now
smart
โ git-smart-subtransport-git
โ git-smart-subtransport-http
โ git-smart-subtransport-ssh
stash
โ git-stash-apply
โ git-stash-apply-init-options
โ git-stash-drop
โ git-stash-foreach
โ git-stash-pop
status
โ git-status-byindex
โ๏ธ git-status-file
โ๏ธ git-status-foreach
โ๏ธ git-status-foreach-ext
โ git-status-init-options
โ git-status-list-entrycount
โ git-status-list-free
โ git-status-list-get-perfdata
(insys
)โ git-status-list-new
โ๏ธ git-status-should-ignore
strarray
โ git-strarray-copy
โ git-strarray-free
(memory management shouldn't be exposed to Emacs)
stream
โ git-stream-register-tls
(insys
)
submodule
โ๏ธ git-submodule-add-finalize
โ๏ธ git-submodule-add-setup
โ๏ธ git-submodule-add-to-index
โ๏ธ git-submodule-branch
โ๏ธ git-submodule-fetch-recurse-submodules
โ๏ธ git-submodule-foreach
โ git-submodule-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-submodule-head-id
โ๏ธ git-submodule-ignore
โ๏ธ git-submodule-index-id
โ๏ธ git-submodule-init
โ๏ธ git-submodule-location
โ๏ธ git-submodule-lookup
โ๏ธ git-submodule-name
โ๏ธ git-submodule-open
โ๏ธ git-submodule-owner
โ๏ธ git-submodule-path
โ๏ธ git-submodule-reload
โ๏ธ git-submodule-repo-init
โ git-submodule-resolve-url
โ๏ธ git-submodule-set-branch
โ๏ธ git-submodule-set-fetch-recurse-submodules
โ๏ธ git-submodule-set-ignore
โ๏ธ git-submodule-set-update
โ๏ธ git-submodule-set-url
โ๏ธ git-submodule-status
โ๏ธ git-submodule-sync
โ๏ธ git-submodule-update
โ git-submodule-update-init-options
โ๏ธ git-submodule-update-strategy
โ๏ธ git-submodule-url
โ๏ธ git-submodule-wd-id
tag
โ git-tag-annotation-create
โ git-tag-create
โ git-tag-create-frombuffer
โ git-tag-create-lightweight
โ git-tag-delete
โ git-tag-dup
โ๏ธ git-tag-foreach
โ git-tag-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-tag-id
โ๏ธ git-tag-list
โ๏ธ git-tag-list-match
โ๏ธ git-tag-lookup
โ๏ธ git-tag-lookup-prefix
โ๏ธ git-tag-message
โ๏ธ git-tag-name
โ๏ธ git-tag-owner
โ๏ธ git-tag-peel
โ๏ธ git-tag-tagger
โ๏ธ git-tag-target
โ๏ธ git-tag-target-id
โ๏ธ git-tag-target-type
time
โ git-time-monotonic
(insys
)
trace
โ git-trace-set
transaction
โ๏ธ git_transaction_commit
โ git_transaction_free
(memory management shouldn't be exposed to Emacs)โ git_transaction_lock_ref
โ git_transaction_new
โ git_transaction_remove
โ git_transaction_set_reflog
โ git_transaction_set_symbolic_target
โ git_transaction_set_target
transport
โ git-transport-dummy
(insys
)โ git-transport-init
(insys
)โ git-transport-local
(insys
)โ git-transport-new
(insys
)โ git-transport-register
(insys
)โ git-transport-smart
(insys
)โ git-transport-smart-certificate-check
(insys
)โ git-transport-smart-credentials
(insys
)โ git-transport-smart-proxy-options
(insys
)โ git-transport-ssh-with-paths
(insys
)โ git-transport-unregister
(insys
)
tree
โ git-tree-create-updated
โ git-tree-dup
โ๏ธ git-tree-entry-byid
โ๏ธ git-tree-entry-byindex
โ๏ธ git-tree-entry-byname
โ๏ธ git-tree-entry-bypath
โ git-tree-entry-cmp
(tree entries are exposed to emacs as lists)โ git-tree-entry-dup
(tree entries are exposed to emacs as lists)โ git-tree-entry-filemode
(tree entries are exposed to emacs as lists)โ git-tree-entry-filemode-raw
(tree entries are exposed to emacs as lists)โ git-tree-entry-free
(memory management shouldn't be exposed to Emacs)โ git-tree-entry-id
(tree entries are exposed to emacs as lists)โ git-tree-entry-name
(tree entries are exposed to emacs as lists)โ git-tree-entry-to-object
(tree entries are exposed to emacs as lists)โ git-tree-entry-type
(tree entries are exposed to emacs as lists)โ๏ธ git-tree-entrycount
โ git-tree-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-tree-id
โ๏ธ git-tree-lookup
โ๏ธ git-tree-lookup-prefix
โ๏ธ git-tree-owner
โ๏ธ git-tree-walk
treebuilder
โ๏ธ git-treebuilder-clear
โ๏ธ git-treebuilder-entrycount
โ๏ธ git-treebuilder-filter
โ git-treebuilder-free
(memory management shouldn't be exposed to Emacs)โ๏ธ git-treebuilder-get
โ๏ธ git-treebuilder-insert
โ๏ธ git-treebuilder-new
โ๏ธ git-treebuilder-remove
โ๏ธ git-treebuilder-write
โ git-treebuilder-write-with-buffer
worktree
โ git-worktree-add
โ git-worktree-add-init-options
โ git-worktree-free
(memory management shouldn't be exposed to Emacs)โ git-worktree-is-locked
โ git-worktree-is-prunable
โ git-worktree-list
โ git-worktree-lock
โ git-worktree-lookup
โ git-worktree-open-from-repository
โ git-worktree-prune
โ git-worktree-prune-init-options
โ git-worktree-unlock
โ git-worktree-validate