- Build on Electron 31+
- Build on Electron 29+
- Fix use-after-free in getRemotes
- Fix use-after-free in getReferences
- Use Collision Detection SHA1 implementation
- Fix win32 Electron build due to incorrect OpenSSL include path
- Bump libgit2 to 1.7.2
- Compatibility with Electron 28
- NodeGit now requires Node 16+
- Update OpenSSL to 1.1.1t
- Update got + other packages with security vulnerabilities
- Fix tag.createWithSignature function definition
- Bump OpenSSL to 1.1.1t
- Update got + other locked package versions
- Fix tag createWithSignature function
- Fix electron build issues
- OpenSSL bump
- OpenSSL binaries will be automatically downloaded when building for Electron on Windows and macOS
- Crash fix on Electron 18+ due to Nan bug
- Partial stash support
- Allow overriding C++ standard
- Bump OpenSSL to 1.1.1s
- Fix intermittent crash on Electron 18+
- type is a call
- Fix leak in agent
- Default to using precompiled OpenSSL for Electron
- Partial stash support
- Switch CI to macOS-11
- Preemptively Patch OpenSSL 1.1.1q
- Add getAllFilepaths function in tree object
- Allow fetching partial patches from diff
- Fix nanosecond comparison typo
- Enable nanosecond precision for file operations
- Allow disabling specific filters during checkout
- Expose
GIT_OPT_GET_OWNER_VALIDATION
andGIT_OPT_SET_OWNER_VALIDATION
- Allow statically linking OpenSSL on Linux
- Update libgit2 to 1.3.1
- Partially fix issue with building for Electron
- Updated CI because of GitHub deprecations
- Added workaround for LFS performance regression
- Update windows 2016 CI to 2019
- Skip "can clone with git" test, unauthenticated git protocol is no longer supported in Github
- UNSAFE Temporary workaround for LFS checkout performance regression
- Update Github Actions for node 16
- Updated libssh2 to add RSA SHA2 256/512 SSH key support
- RSA SHA2 256/512 key upgrade support RFC 8332 #536 (#626)
- Fix typos in examples
- Don't build shared OpenSSL libs
- Reworked CI due to GitHub dropping Ubuntu 16.04 support
- When building for Electron on Windows/macOS and prebuilts are unavailable: NodeGit will attempt to build OpenSSL locally by default. This is due to Conan changing their API/provided OpenSSL binaries. There are options for pointing to an installed OpenSSL location or URL for downloading prebuilt binaries, see Building from source.
- Updated OpenSSL to 1.1.1l
- Updated libssh2 to 1.10.0
- Added
Repo.prototype.statistics
method for calculating repository statistics - More progress towards becoming context-aware
- Allow download of prebuilt OpenSSL
- Update libssh2 to 1.10.0
- Statistics with same output as "git-sizer -j"
- Fix memory leak on context shutdown
- Build OpenSSL locally for Electron
- Fix a reference error when compiling with VC2019
- Use containers for Linux CI
- Fixes an issue where rebase.init and rebase.open were ignoring callbacks in some situations
- Fixes another issue where Kerberos proxy authentication causes network failures
- Fixes issue with where proxy authentication fails on linux/osx with assertion error.
- Rewrote options normalization such that it is done in C++. Provided deprecated classes for backwards compatibility. These will be removed in a later version of Nodegit.
- Deprecated construction of these objects, in the future, please pass plain objects with just the fields you wish to override to NodeGit, and the library will take care of the rest.
- NodeGit.ApplyOptions
- NodeGit.BlameOptions
- NodeGit.BlobFilterOptions
- NodeGit.CheckoutOptions
- NodeGit.CherrypickOptions
- NodeGit.CloneOptions
- NodeGit.DescribeFormatOptions
- NodeGit.DiffFindOptions
- NodeGit.FetchOptions
- NodeGit.MergeFileInput
- NodeGit.MergeFileOptions
- NodeGit.MergeOptions
- NodeGit.ProxyOptions
- NodeGit.PushOptions
- NodeGit.RebaseOptions
- NodeGit.RemoteCreatOptions
- NodeGit.RepositoryInitOptions
- NodeGit.RevertOptions
- NodeGit.StashApplyOptions
- NodeGit.StatusOptions
- NodeGit.SubmoduleUpdateOptions
- Ensured the following functions have their optional arguments labeled/working as optional:
- NodeGit.Apply
- NodeGit.Checkout.index
- NodeGit.Cherrypick
- NodeGit.Cherrypick.commit
- NodeGit.Merge
- NodeGit.PatchBlobs
- NodeGit.Rebase.open
- NodeGit.Remote.prototype.connect
- NodeGit.Remote.prototype.download
- NodeGit.Remote.prototype.fetch
- NodeGit.Remote.prototype.prune
- NodeGit.Remote.prototype.push
- NodeGit.Remote.prototype.upload
- NodeGit.Stash.apply
- NodeGit.Stash.pop
- NodeGit.Worktree.isPrunable
- NodeGit.Worktree.prune
- Updated the following functions to be async:
- NodeGit.Apply
- NodeGit.Remote.prototype.prune
- NodeGit.Worktree.isPrunable
- NodeGit.Worktree.prune
- Addressed issue where GitWorktreePruneOptions and GitWorktreeAddOptions were impossible to instantiate, thus making working with worktress possible now.
- Addressed issue where GitIndexTime was not configurable
- Addressed issue where the following functions did not return errors from libgit2:
- NodeGit.Merge.analysis
- NodeGit.Note.commitRemove
- Fixes crash in multithreaded checkout in fork of libgit2
- Default to GIT_BRANCH_DEFAULT if init.defaultBranch is empty string
- Remove duplicate line, in example code
- Introduces harder safeguards on persistent references to prevent garbage collection during async work
- Addresses failure to open repo with empty default branch name
- Addresses crash in mwindow from libgit2
- Bumps libgit2 to bring in bug fixes
- tree: deprecate
git_treebuilder_write_with_buffer
- winhttp: skip certificate check if unable to send request
- commit-graph: Introduce
git_commit_graph_needs_refresh()
- commit-graph: Support lookups of entries in a commit-graph
- merge: Check insert_head_ids error in create_virtual_base
- Check git_signature_dup failure
- Fix some typos
- include: fix typos in comments
- Fix documentation formating on repository.h
- index: Check git_vector_dup error in write_entries
- refdb_fs: Check git_sortedcache wlock/rlock errors
- Add new bindings for the R language
- Update .gitignore
- patch: add owner accessor
- commit-graph: Introduce a parser for commit-graph files
- revspec: rename git_revparse_mode_t to git_revspec_t
- mwindow: Fix a bug in the LRU window finding code
- ci: don't use ninja on macOS
- midx: Fix a bug in
git_midx_needs_refresh()
- clone: set refs/remotes/origin/HEAD when branch is specified
- Use
p_pwrite
/p_pread
consistently throughout the codebase - README: instructions for using libgit2 without compiling
- Cope with empty default branch
- github-actions: Also rename the main branch here
- blob: fix name of
GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
- Add documentation for git_blob_filter_options.version
- Build with NO_MMAP
- zlib: Add support for building with Chromium's zlib implementation
- Handle ipv6 addresses
- Add support for additional SSH hostkey types.
- Fix the
-DENABLE_WERROR=ON
build for gcc 10.2 - repository: use intptr_t's in the config map cache
- Add tests for
git__multiply_int64_overflow
- Third attempt to fix the 32-bit version of `git__multiply_int64_overf…
- Avoid using
__builtin_mul_overflow
with the clang+32-bit combo - ci: run codeql
- pack: continue zlib while we can make progress
- Re-enable the RC4 test
- Cache the parsed submodule config when diffing
- Make git__strntol64() ~70%* faster
- winhttp: support optional client cert
- git.git-authors: Replacing his/her with their
- Friendlier getting started in the lack of git_libgit2_init
- Thread-local storage: a generic internal library (with no allocations)
- Thread-free implementation
- Make the pack and mwindow implementations data-race-free
- Make the odb race-free
- Also add the raw hostkey to
git_cert_hostkey
- Fix the
ENABLE_WERROR=ON
build in Groovy Gorilla (gcc 10.2) - odb: Add git_odb_options
- Introduce GIT_ASSERT macros
- ci: only report main branch in README status
- ci: run coverity in the nightly builds
- ci: more GitHub Actions
- Add a ThreadSanitizer build
- msvc crtdbg -> win32 leakcheck
- Add missing worktree_dir check and test case
- Fix the
-DTHREADSAFE=OFF
build - ci: propagate environment variables
- ci: supply a token for self-hosted runners
- ci: supply a token for self-hosted runners
- ci: GitHub Actions for arm64
- ci: stop using deprecated set-env in GitHub Actions
- Deprecate
is_valid_name
functions; replace withname_is_valid
functions - Include
${MBEDTLS_INCLUDE_DIR}
when compilingcrypt_mbedtls.c
- threadstate: rename tlsdata when building w/o threads
- Refactor "global" state
- Make the Windows leak detection more robust
- Define
git___load
when building with-DTHREADSAFE=OFF
- ntlm: update ntlm dependency for htonll
- libgit2 v1.1.0
- Update PCRE to 8.44
- clone: update origin's HEAD
- Improve the support of atomics
- Fix error return for invalid extensions.
- Change bare free to allocator free (fixes #5653)
- midx: Introduce a parser for multi-pack-index files
- Fixed typo in comment
- Fix binary diff showing /dev/null
- httpclient: only free challenges for current_server type
- Respect
init.defaultBranch
setting - patch_parse: handle absence of "index" header for new/deleted cases
- boolean config parsing fails in some cases with mapped values
- Fix config file parsing with multi line values containing quoted parts
- Fix release build warnings
- Fix deprecation links inside of documentation not working
- Fix typo: Make ifndef macroname the same as the define name
- diff stats: fix segfaults with new files
- WinHTTP: Try to use TLS1.3
- Fixed includes for FreeBSD
- Don't fail if a HTTP server announces he supports a protocol upgrade
- Return false instead of segfaulting when checking for default port
- deps: ntlmclient: fix htonll for Haiku
- azure: Remove job generating documentation
- Fix crash in git_describe_commit when opts are NULL.
- Fix
git_mwindow_scan_recently_used
spuriously returning true - zstream: handle Z_BUF_ERROR appropriately in get_output_chunk
- docs: fix typo
- Notice We planned to fix / address Electron 11 compatibility, but ran into some roadblocks. Fix is coming soon, follow #114 for details
- Drops support for Node 10.x.y, < 12.19.x, < 14.10.0
- Brings in LibGit2 1.0.0
- NodeGit.Config.prototype.setBool handles truthiness, and NodeGit.Config.prototype.getBool returns true or false
- Fix GC ownership memory issue
- Exposes sidebandProgress callback in GitRemoteCallbacks
- Fixes issue with winhttp and optional client certificates
- Addresses proxy issue with certification validation in Windows
- Fix crash in NodeGit.Repository.prototype.refreshReferences
- Deprecations
- NodeGit.Cred is deprecated in favor of NodeGit.Credential
- Include libgit2 winhttp proxy fix #1824
- Return/accept boolean for Config#get/setBool #1827
- First stab at #1800 (async/await in examples) #1802
- returns_info: fix ownedByIndices #1823
- Remove block for sideband_progress in remote_callbacks #1801
- Use key to grab credential type #1828
- Don't strdup nullptr from git_tag_message #1822
- Refactor for context-awareness #1795
- Update longpath enums to match libgit2 #1797
- Bump libgit2 to fork of v1.0.0 #1788
- winhttp: skip certificate check if unable to send request #5814
- sanitizer ci: skip negotiate tests
- Add CI support for Memory and UndefinedBehavior Sanitizers
- Access HEAD via the refdb backends
- config_entries: Avoid excessive map operations
- mwindow: set limit on number of open files
- refdb: a set of preliminary refactorings for the reftable backend
- CMake modernization pt2
- Make the tests run cleanly under UndefinedBehaviorSanitizer
- Make the tests pass cleanly with MemorySanitizer
- Enable building git2.rc resource script with GCC
- Make NTLMClient Memory and UndefinedBehavior Sanitizer-clean
- Random fixes for diff-printing
- index: Update the documentation for git_index_add_from_buffer()
- Introduce CI with GitHub Actions
- Random code cleanups and fixes
- examples: log: fix documentation generation
- Missing declarations
- clar: add tap output option
- diff::parse: don't include
diff.h
- release script: fix typo
- tests: offer exact name matching with a
$
suffix - httpclient: support googlesource
- git_packbuilder_write: Allow setting path to NULL to use the default path
- mempack: Use threads when building the pack
- clar: use internal functions instead of /bin/cp and /bin/rm
- strarray refactoring
- CMake cleanups
- git_pool_init: allow the function to fail
- diff::workdir: actually test the buffers
- Handle unreadable configuration files
- Make git_index_write() generate valid v4 index
- OpenSSL certificate memory leak
- tests: checkout: fix flaky test due to mtime race
- cmake: Sort source files for reproducible builds
- futils: fix order of declared parameters for
git_futils_fake_symlink
- Check the version in package.json
- tests: merge: fix printf formatter on 32 bit arches
- Update package.json
- Introduce GIT_ASSERT macros
- README.md: Add instructions for building in MinGW environment
- Fix uninitialized stack memory and NULL ptr dereference in stash_to_index
- Honor GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH for all checkout types
- docs: add documentation for our coding style
- MSVC: Enable Control Flow Guard (CFG)
- git__hexdump: better mimic
hexdump -C
- Feature: Allow blame to ignore whitespace change
- deps: ntlmclient: use htobe64 on NetBSD too
- sysdir: remove unused git_sysdir_get_str
- Fix typo causing removal of symbol 'git_worktree_prune_init_options'
- pack: Improve error handling for get_delta_base()
- repo::open: ensure we can open the repository
- examples: additions and fixes
- merge: cache negative cache results for similarity metrics
- Handle repository format v1
- CMake: backend selection streamlining
- refdb_fs: remove unused header file
- patch: correctly handle mode changes for renames
- gitignore: clean up patterns from old times
- README.md: update build matrix to reflect our latest releases
- Release v1.0
- refdb_backend: improve callback documentation
- credentials: provide backcompat for opaque structs
- Fix segfault when calling git_blame_buffer()
- Fix spelling error
- refdb_fs: initialize backend version
- repository: improve commondir docs
- cmake: use install directories provided via GNUInstallDirs
- azure: fix errors due to curl and removal of old VM images
- win32: don't canonicalize relative paths
- CMake booleans
- Set proper pkg-config dependency for pcre2
- httpclient: use a 16kb read buffer for macOS
- ci: provide globalsign certs for bionic
- deps: ntlmclient: fix htonll on big endian FreeBSD
- azure-pipelines: download GlobalSign's certificate manually
- deps: ntlmclient: fix missing htonll symbols on FreeBSD and SunOS
- README: add language binding link to wasm-git
- Fix #5410: fix installing libgit2.pc in wrong location
- Fix typo on GIT_USE_NEC
- tests: diff: verify that we are able to diff with empty subtrees
- README: update our build matrix to reflect current releases
- azure: docker: set up HOME variable to fix Coverity builds
- sha1_lookup: inline its only function into "pack.c"
- Coverity fixes
- Release 0.99
- Release script
- azure: fix ARM32 builds by replacing gosu(1)
- openssl: fix Valgrind issues in nightly builds
- fuzzers: Fix the documentation
- azure: fix misleading messages printed to stderr being
- tests: iterator: fix iterator expecting too few items
- transports: http: fix custom headers not being applied
- azure: fix Coverity pipeline
- azure: tests: re-run flaky proxy tests
- fetchhead: strip credentials from remote URL
- azure-pipelines: properly expand negotiate passwords
- cred: change enum to git_credential_t and GIT_CREDENTIAL_*
- Update link to libgit2 Julia language binding
- Return int from non-free functions
- HTTP: Support Apache-based servers with Negotiate
- internal types: change enums from
type_t
to_t
- merge: Return non-const git_repository from accessor method
- Do not return free'd git_repository object on error
- refs: refuse to delete HEAD
- index: replace map macros with inline functions
- Make type mismatch errors consistent
- win32: fix relative symlinks pointing into dirs
- ntlm: prevent (spurious) compiler warnings
- Adds support for multiple SSH auth mechanisms being used sequentially
- netops: handle intact query parameters in service_suffix removal
- Refactor packfile code to use zstream abstraction
- Fix git_submodule_sync with relative url
- http: avoid generating double slashes in url
- Correct typo in name of referenced parameter
- patch_parse: fix undefined behaviour due to arithmetic on NULL pointers
- smart_pkt: fix overflow resulting in OOB read/write of one byte
- branch: clarify documentation around branches
- examples: checkout: implement guess heuristic for remote branches
- Minor doc improvements
- attr: Update definition of binary macro
- Security fixes for master
- release.md: note that we do two security releases
- MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *"
- ci: only push docs from the libgit2/libgit2 repo
- global: convert to fiber-local storage to fix exit races
- Fix copy&paste in git_cherrypick_commit docstring
- patch_parse: fix out-of-bounds reads caused by integer underflow
- tests: fix compiler warning if tracing is disabled
- tests: config: only test parsing huge file with GITTEST_INVASIVE_SPEED
- diff: complete support for git patchid
- Memory optimizations for config entries
- ssh: include sha256 host key hash when supported
- Various examples shape-ups
- Improve trace support in tests
- Move
git_off_t
togit_object_size_t
- Add compat typdef for git_attr_t
- CI Build Updates
- patch_parse: use paths from "---"/"+++" lines for binary patches
- Follow 308 redirect in WinHTTP transport
- fileops: correct error return on p_lstat failures when mkdir
- config_mem: implement support for snapshots
- patch_parse: fix segfault when header path contains whitespace only
- config_file: fix race when creating an iterator
- Fix crash if snapshotting a config_snapshot
- fix a bug introduced in 8a23597b
- reflogs: fix behaviour around reflogs with newlines
- commit: verify objects exist in git_commit_with_signature
- patch_parse: fixes for fuzzing errors
- apply: add GIT_APPLY_CHECK
- refs: unlock unmodified refs on transaction commit
- fuzzers: add a new fuzzer for patch parsing
- patch_parse: handle patches without extended headers
- Provide a wrapper for simple submodule clone steps
- macOS GSS Support
- cmake: correct the link stanza for CoreFoundation
- Fix file locking on POSIX OS
- cmake: update minimum CMake version to v3.5.1
- patch_parse: handle patches with new empty files
- DRY commit parsing
- azure: avoid building and testing in Docker as root
- regexp: implement a new regular expression API
- git_refdb API fixes
- Don't use enum for flags
- valgrind: suppress memory leaks in libssh2_session_handshake
- buffer: fix writes into out-of-memory buffers
- cred: add missing private header in GSSAPI block
- CMake pkg-config modulification
- Update chat resources in README.md
- Circular header splitting
- Expose git_remote_rename
- Bump OpenSSL from 1.1.0i -> 1.1.1c in Windows/Mac OS Electron builds
- Replace unmaintained request library with got
- Remove promisify-node and use vanilla promises for all NodeGit promises
- Prebuilds for Node 14, deprecate Node 8
- Persist RemoteCallbacks and ProxyOptions on the remote if using Remote.prototype.connect. This fixes a segfault when using any routines on a connected remote.
####Merged PRs into NodeGit
- Upgrade build environments #1785
- Remote needs to persist the callback/proxyOpts/headers #1784
- Remove promisify-node and remove old callback api remnants
- Replace deprecated package request with got
- Bump OpenSSL prebuilt to 1.1.1c
- Expose git_remote_rename
- Dedupe Remote.prototype.fetch
- Expose git_remote_rename
- Bump OpenSSL from 1.1.0i -> 1.1.1c in Windows/Mac OS Electron builds
- Replace unmaintained request library with got
- Remove promisify-node and use vanilla promises for all NodeGit promises
- Remove promisify-node and remove old callback api remnants
- Replace deprecated package request with got
- Bump OpenSSL prebuilt to 1.1.1c
- Expose git_remote_rename
- Dedupe Remote.prototype.fetch
- Bring in improvement to client certificate handling on Windows from winhttp: support optional client cert #5384
Commit.prototype.parent()
now correctly assigns the repo property on the retrieved commit. This should solve certain bugs when working with a commit retrieved fromparent
.
- Bring in Libgit2 #5384 to NodeGit
- Fix behavior of Commit#parent
- Remove DiffList
- Remove unnecessary assignment of Commit#repo
- winhttp: support optional client cert #5384
- Support
core.longpaths
on Windows #5347 - Parallelize checkout_create_the_new for perf #4205
- Bumped LibGit2
- Now can be configured to support longpaths on Windows. Does not respect the config value, but is configured through
NodeGit.Libgit2.opts
. See #1748 for details. - Support for complex SSH auth creds handshakes
- Now can be configured to support longpaths on Windows. Does not respect the config value, but is configured through
- Pulled in patch for Libssh2 that covers an integer overflow, see Libssh2#402
- Fix some issues from the libgit2 bump
- Add option to support longpaths on Windows
- Bring in libssh2#402
- Wait for copy and remove promises to finish
- Support
core.longpaths
on Windows #5347 - Parallelize checkout_create_the_new for perf #4205
- win32: fix relative symlinks pointing into dirs
- ntlm: prevent (spurious) compiler warnings
- Adds support for multiple SSH auth mechanisms being used sequentially
- netops: handle intact query parameters in service_suffix removal
- Refactor packfile code to use zstream abstraction
- Fix git_submodule_sync with relative url
- http: avoid generating double slashes in url
- Correct typo in name of referenced parameter
- patch_parse: fix undefined behaviour due to arithmetic on NULL pointers
- smart_pkt: fix overflow resulting in OOB read/write of one byte
- branch: clarify documentation around branches
- examples: checkout: implement guess heuristic for remote branches
- Minor doc improvements
- attr: Update definition of binary macro
- Security fixes for master
- release.md: note that we do two security releases
- MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *"
- ci: only push docs from the libgit2/libgit2 repo
- global: convert to fiber-local storage to fix exit races
- Fix copy&paste in git_cherrypick_commit docstring
- patch_parse: fix out-of-bounds reads caused by integer underflow
- tests: fix compiler warning if tracing is disabled
- tests: config: only test parsing huge file with GITTEST_INVASIVE_SPEED
- diff: complete support for git patchid
- Memory optimizations for config entries
- ssh: include sha256 host key hash when supported
- Various examples shape-ups
- Improve trace support in tests
- Move
git_off_t
togit_object_size_t
- Add compat typdef for git_attr_t
- CI Build Updates
- patch_parse: use paths from "---"/"+++" lines for binary patches
- Follow 308 redirect in WinHTTP transport
- fileops: correct error return on p_lstat failures when mkdir
- config_mem: implement support for snapshots
- patch_parse: fix segfault when header path contains whitespace only
- config_file: fix race when creating an iterator
- Fix crash if snapshotting a config_snapshot
- fix a bug introduced in 8a23597b
- reflogs: fix behaviour around reflogs with newlines
- commit: verify objects exist in git_commit_with_signature
- patch_parse: fixes for fuzzing errors
- apply: add GIT_APPLY_CHECK
- refs: unlock unmodified refs on transaction commit
- fuzzers: add a new fuzzer for patch parsing
- patch_parse: handle patches without extended headers
- Provide a wrapper for simple submodule clone steps
- macOS GSS Support
- cmake: correct the link stanza for CoreFoundation
- Fix file locking on POSIX OS
- cmake: update minimum CMake version to v3.5.1
- patch_parse: handle patches with new empty files
- DRY commit parsing
- azure: avoid building and testing in Docker as root
- regexp: implement a new regular expression API
- git_refdb API fixes
- Don't use enum for flags
- valgrind: suppress memory leaks in libssh2_session_handshake
- buffer: fix writes into out-of-memory buffers
- cred: add missing private header in GSSAPI block
- CMake pkg-config modulification
- Update chat resources in README.md
- Circular header splitting
- Include LibGit2 security patch: https://github.com/libgit2/libgit2/releases/tag/v0.28.4
- Added options to fetch additional data (gpg signature) from LibGit2 in revWalk.prototype.commitWalk and return plain objects
- revWalk.prototype.commitWalk(numCommits: number, { returnPlainObjects: boolean })
- Bumped LibGit2
- Additional git ignore fixes
- Allow credentials callback to return any credential type from list of supported types
- Memory leak and allocation fixes
- updateTips has optional parameters and should convert plain objects into options structs correctly now
- Added Nodegit.Blob.prototype.filter, this should be used instead of NodeGit.Blob.filteredContent as it is not deprecated.
- Parallelize checkout_create_the_new for perf #4205
- azure: build Docker images as part of the pipeline
- smart: use push_glob instead of manual filtering
- ntlm: fix failure to find openssl headers
- cmake: remove extraneous logging
- open:fix memory leak when passing NULL to git_repository_open_ext
- apply: Fix a patch corruption related to EOFNL handling
- ignore: correct handling of nested rules overriding wild card unignore
- Memory allocation fixes for diff generator
- Use an HTTP scheme that supports the given credentials
- apply: git_apply_to_tree fails to apply patches that add new files
- Optionally read
.gitattributes
from HEAD - config: implement "onbranch" conditional
- Fix include casing for case-sensitive filesystems.
- util: use 64 bit timer on Windows
- Memory allocation audit
- clone: don't decode URL percent encodings
- Security updates from 0.28.3
- Bumped libssh2 to 1.9 for security patch
- Remote.prototype.upload and Remote.prototype.updateTips should be async now
Security patch for LibGit2:
-
A carefully constructed commit object with a very large number of parents may lead to potential out-of-bounds writes or potential denial of service.
-
The ProgramData configuration file is always read for compatibility with Git for Windows and Portable Git installations. The ProgramData location is not necessarily writable only by administrators, so we now ensure that the configuration file is owned by the administrator or the current user.
Additionally:
- Stash should run much faster now.
- Parallelize checkout_create_the_new for perf #4205
- stash: avoid recomputing tree when committing worktree
- Variadic macros
- Add sign capability to git_rebase_commit
- remote: remove unused block of code
- Adjust printf specifiers in examples code
- config: check if we are running in a sandboxed environment
- Fix example checkout to forbid rather than require --
- editorconfig: update to match our coding style
- Compare buffers in diff example
- Include ahead_behind in the test suite
- config: separate file and snapshot backends
- object: deprecate git_object__size for removal
getRemotes
no longer returns remote names, it now returns remote objects directly. UsegetRemoteNames
to get a list of remote names.- Converted Buf.prototype.set and Buf.prototype.grow from async to sync
Repository.prototype.continueRebase
will now throw on any error except for EAPPLIED on the first call toRebase.prototype.next
- Drops support for Ubuntu 14 after EOL
- Removed access to the
diff_so_far
param ingit_diff_notify_cb
andgit_diff_progress_cb
- Changed
FilterSource.prototype.repo
to async to prevent segfaults on filters that run duringSubmodule.status
- Changed
NodeGit.Signature.default
to async, because it actually ends up reading the config. - Fixed bug where templates were not reporting errors for synchronous methods. It's a bit of a wide net, but in general, it is now possible certain sync methods in NodeGit will begin failing that did not fail before. This is the correct behavior.
- Support signing commits in
Repository.prototype.mergeBranches
. The last parameterprocessMergeMessageCallback
is now deprecated, but will continue to work. Use the options object instead, which will contain theprocessMergeMessageCallback
, as well as thesigningCb
.
- Support for Node 12
- Add signing support for commits and annotated tags
- Enforced consistent use of signing callbacks within the application. Any object that implements the signingCallback
pattern for signing commits or tags should use the exact same callback type and with the same meaning.
type SigningCallback = (content: string) => {| code: number, field?: string, signedData?: string |};
If the code isNodeGit.Error.CODE.OK
or 0, the operation will succeed and at least signedData is expected to be filled out. If the code is a negative number, except forNodeGit.Error.CODE.PASSTHROUGH
, the signing operation will fail. If the code isNodeGit.Error.CODE.PASSTHROUGH
, the operation will continue without signing the object.
- Enforced consistent use of signing callbacks within the application. Any object that implements the signingCallback
pattern for signing commits or tags should use the exact same callback type and with the same meaning.
- Exposed
AnnotatedCommit
methods:AnnotatedCommit.prototype.ref
- Exposed
Apply
methods:Apply.apply
applies a diff to the repositoryApply.toTree
applies a diff to a tree
- Exposed
Config
methods:Config.prototype.deleteEntry
Config.prototype.deleteMultivar
Config.prototype.getBool
Config.prototype.getInt32
Config.prototype.getInt64
Config.prototype.setMultivar
Config.prototype.snapshot
- Exposed
ConfigIterator
with methods:ConfigIterator.create
ConfigIterator.createGlob
ConfigIterator.createMultivar
ConfigIterator.prototype.next
- Exposed
IndexNameEntry
:IndexNameEntry.add
IndexNameEntry.clear
IndexNameEntry.entryCount
IndexNameEntry.getByIndex
IndexNameEntry.prototype.ancestor
IndexNameEntry.prototype.ours
IndexNameEntry.prototype.theirs
- Exposed
IndexReucEntry
:IndexReucEntry.add
IndexReucEntry.clear
IndexReucEntry.entryCount
IndexReucEntry.find
IndexReucEntry.getByIndex
IndexReucEntry.getByPath
IndexReucEntry.remove
IndexReucEntry.prototype.mode
IndexReucEntry.prototype.oid
IndexReucEntry.prototype.path
- Exposed
Mailmap
:Mailmap.prototype.addEntry
Mailmap.fromBuffer
Mailmap.fromRepository
Mailmap.create
Mailmap.prototype.resolve
Mailmap.prototype.resolveSignature
- Exposed
Merge
methods:Merge.analysis
Merge.analysisForRef
- Exposed
Path.isGitfile
- Added
RebaseOptions
toRepository.prototype.rebaseContinue
- Added
NodeGit.Reference.updateTerminal
- Exposed
Remote
methods:Remote.createWithOpts
- Exposed
Tag.createFromBuffer
- Expose
Tree.prototype.createUpdated(repo, numUpdates, updates)
- Updates lodash dependency to address security notice
- Fixed a prototype problem with cherrypick, merge, and other collections that have a function at their root. call, apply, and bind should now be on NodeGit.Cherrypick.
- Bumped libssh2 to resolve security notice.
- Improve speed and correctness of fileHistoryWalk. The API should not have changed; however, when the end of the walk has been reached,
reachedEndOfHistory
will be specified on the resulting array. - Fixes openssl prebuilt downloads for electron builds
- Fixes commits retrieved from
Commit.prototype.parent
- Bump Node-Gyp to 4.0.0 to fix tar security vulnerability
- Optimized a set of routines in NodeGit. These methods as written in Javascript require hundreds or thousands of requests to async workers to retrieve data. We've batched these requests and performed them on a single async worker. There are now native implementations of the following:
Repository.prototype.getReferences
: Retrieves all references on async worker.Repository.prototype.getRemotes
: Retrieves all remotes on async worker.Repository.prototype.getSubmodules
: Retrieves all submodules on async worker.Repository.prototype.refreshReferences
: Open sourced function from GitKraken. Grabs a lot of information about references on an async worker.Revwalk.prototype.commitWalk
: Retrieves up to N commits from a revwalk on an async worker.
- When installing on a machine that has yarn and does not have npm, the preinstall script should succeed now
ceiling_dirs
is now an optional parameter toRepository.discover
- Added support for building on IBM i (PASE) machines
- Fixed leak where struct/option types were leaking libgit2 pointers
- Switched
NodeGit.Oid.fromString
's internal implementation fromgit_oid_fromstr
togit_oid_fromstrp
- Fixed builds for Electron 4
- Updated
Signature.prototype.toString
to optionally include timestamps
- Fixes gitignore issue with pattern negation
Remote.list
now gets the correct list of remotes if remotes are changed by external process- Always use builtin regex for linux for portability
- Use Iconv on OSX for better internationalization support.
- Removed LibCurl from LibGit2:
- Now with built-in NTLM proxy support
- Now with built-in Negotiate/Kerberos proxy support
- Working with proxy URLs may be different as curl could auto detect scheme for proxies
- Various git config fixes
- Various git ignore fixes
- Various libgit2 performance improvements
- Windows/Linux now use PCRE for regex, OSX uses regcomp_l, this should address collation issues in diffing
- Add deprecation warnings for enums that need them. #1711
- nodegit#1706
- Reintroduce Odb.prototype.addDiskAlternate #1695
- Fix behaviour of Repository#getReferences #1708
- Bump libgit2 #1705
- Fix Tree#createUpdated #1704
- Fix failing tests on CI #1703
- Audit lodash and fix package-lock.json #1702
- Implement support for Node 12 #1696
- Remove NSEC #1699
- Use builtin regex library for linux for better portability #1693
- Remove pcre-config from binding.gyp #1694
- refresh_references.cc: skip refs that can't be directly resolved #1689
- Bump libgit2 to fork of latest master #1690
- Bump libssh2 to 1.8.2 and fix some npm audit warnings #1678
- Root functions should keep their function prototypes correctly #1681
- refresh_references.cc: bust LibGit2 remote list cache by reading config #1685
- Implement faster file history walk #1676
- EOL for Node 6 and Ubuntu 14.04 #1649
- Ensures that commits from parent(*) has a repository #1658
- Update openssl conan distributions #1663
- Support signing in Repository#mergeBranches #1664
- Dependency upgrade node-gyp upgraded to 4.0.0 #1672
- Add additional getters to streamline information gathering (breaking change) #1671
- Clean up some dangerous memory accesses in callbacks #1642
- Output the item that was deprecated when giving deprecation notice #1643
- Don't fail yarn installs when we can't find npm #1644
ceiling_dirs
parameter inRepository.discover
is optional #1245- Add missing
shouldAlloc
declarations for git_merge_analysis* functions #1641 - Fix regex state causing subsequent runs of Tag.extractSignature to fail #1630
- Update LibGit2 docs to v0.28.0 #1631
- Add support for building on IBM i (PASE) #1634
- Expose more config methods #1635
- Catch errors and pass them to libgit2 as error codes in rebase signingcb #1636
- Simplify check for IBM i operating system #1637
- Bump LibGit2 to fork of v0.28.1 #1638
- We should clear the persistent cell in structs when they are destroyed #1629
- Fix "errorno" typo #1628
- Bump Libgit2 fork to v0.28.0 #1627
- Fix macOS and Windows Electron 4 builds #1626
- Fix non-existent / dangling refs cause Repository.prototype.createCommitWithSignature to fail #1624
- Handle new gyp information for electron builds #1623
- Use same API for signingCb in all places that can be crypto signed #1621
- Breaking: Repository.prototype.continueRebase enhancements #1619
- adds support for gpg commit signing (fixes #1018) #1448
- Add
updateRef
parameter to Repository#createCommitWithSignature #1610 - Documentation fixes. #1611
- Add Commit#amendWithSignature #1616
- Bump libgit2 to a preview of v0.28 #1615
- Fix issues with Commit#amendWithSignature #1617
- Marked Repository.createBlobFromBuffer as async #1614
- Add functionality for creating Tags with signatures and extracting signatures from Tags #1618
- Add sign capability to git_rebase_commit #4913
- Parallelize checkout_create_the_new for perf #4205
- config_file: refresh when creating an iterator
- azure: drop powershell
- fuzzer: use futils instead of fileops
- w32: fix unlinking of directory symlinks
- patch_parse: fix segfault due to line containing static contents
- ignore: fix determining whether a shorter pattern negates another
- patch_parse: handle missing newline indicator in old file
- patch_parse: do not depend on parsed buffer's lifetime
- sha1: fix compilation of WinHTTP backend
- repository: do not initialize HEAD if it's provided by templates
- configuration: cvar -> configmap
- Evict cache items more efficiently
- clar: fix suite count
- Ignore VS2017 specific files and folders
- gitattributes: ignore macros defined in subdirectories
- clar: correctly account for "data" suites when counting
- Allocate memory more efficiently when packing objects
- fileops: fix creation of directory in filesystem root
- win32: fix fuzzers and have CI build them
- Config parser separation
- config_file: implement stat cache to avoid repeated rehashing
- ci: build with ENABLE_WERROR on Windows
- Fix Regression: attr: Correctly load system attr file (on Windows)
- hash: fix missing error return on production builds
- Resolve static check warnings in example code
- Multiple hash algorithms
- More documentation
- Incomplete commondir support
- Remove warnings
- Re-run flaky tests
- errors: use lowercase
- largefile tests: only write 2GB on 32-bit platforms
- Fix broken link in README
- net: remove unused
git_headlist_cb
- cmake: default NTLM client to off if no HTTPS support
- attr: rename constants and macros for consistency
- Change API instances of
fromnoun
tofrom_noun
(with an underscore) - object: rename git_object__size to git_object_size
- Replace fnmatch with wildmatch
- Documentation fixes
- Removal of
p_fallocate
- Modularize our TLS & hash detection
- tests: merge::analysis: use test variants to avoid duplicated test suites
- Rename options initialization functions
- deps: ntlmclient: disable implicit fallthrough warnings
- gitignore with escapes
- Handle URLs with a colon after host but no port
- Merge analysis support for bare repos
- Add memleak check docs
- Data-driven tests
- sha1dc: update to fix endianess issues on AIX/HP-UX
- Add NTLM support for HTTP(s) servers and proxies
- Callback type names should be suffixed with
_cb
- tests: checkout: fix symlink.git being created outside of sandbox
- ignore: handle escaped trailing whitespace
- Ignore: only treat one leading slash as a root identifier
- online tests: use gitlab for auth failures
- Ignore files: don't ignore whitespace
- cache: fix cache eviction using deallocated key
- SECURITY.md: split out security-relevant bits from readme
- Restore NetBSD support
- repository: fix garbage return value
- cmake: disable fallthrough warnings for PCRE
- Configuration parsing: validate section headers with quotes
- Loosen restriction on wildcard "*" refspecs
- Use PCRE for our fallback regex engine when regcomp_l is unavailable
- Remote URL last-chance resolution
- Skip UTF8 BOM in ignore files
- We've already added
ZLIB_LIBRARIES
toLIBGIT2_LIBS
so don't also add thez
library - Define SYMBOLIC_LINK_FLAG_DIRECTORY if required
- Support symlinks for directories in win32
- rebase: orig_head and onto accessors
- cmake: correctly detect if system provides
regcomp
- Correctly write to missing locked global config
- [RFC] util: introduce GIT_DOWNCAST macro
- examples: implement SSH authentication
- git_repository_init: stop traversing at windows root
- config_file: check result of git_array_alloc
- patch_parse.c: Handle CRLF in parse_header_start
- fix typo
- sha1: don't inline
git_hash_global_init
for win32 - ignore: treat paths with trailing "/" as directories
- Test that largefiles can be read through the tree API
- Tests for symlinked user config
- patch_parse: fix parsing addition/deletion of file with space
- Optimize string comparisons
- Negation of subdir ignore causes other subdirs to be unignored
- xdiff: fix typo
- docs: clarify relation of safe and forced checkout strategy
- Each hash implementation should define
git_hash_global_init
- [Doc] Update URL to git2-rs
- remote: Rename git_remote_completion_type to _t
- odb: provide a free function for custom backends
- Have git_branch_lookup accept GIT_BRANCH_ALL
- Rename git_transfer_progress to git_indexer_progress
- High-level map APIs
- refdb_fs: fix loose/packed refs lookup racing with repacks
- Allocator restructuring
- cache: fix misnaming of
git_cache_free
- examples: produce single cgit2 binary
- Remove public 'inttypes.h' header
- Prevent reading out of bounds memory
- Fix a memory leak in odb_otype_fast()
- Make stdalloc__reallocarray call stdalloc__realloc
- Remove
git_time_monotonic
- Fix a very improbable memory leak in git_odb_new()
- ci: publish documentation on merge
- Enable creation of worktree from bare repo's default branch
- Allow bypassing check for '.keep' file
- Deprecation: export the deprecated functions properly
- ci: skip ssh tests on macOS nightly
- CI build fixups
- v0.28 rc1
- Docs
- Documentation fixes
- ci: add an individual coverity pipeline
- ci: run docurium to create documentation
- ci: return coverity to the nightlies
- Clean up some warnings
- Nightlies: use
latest
docker images - index: preserve extension parsing errors
- Deprecate functions and constants more gently
- Don't use deprecated constants
- Fix VS warning C4098: 'giterr_set_str' : void function returning a value
- Move
giterr
togit_error
- odb: Fix odb foreach to also close on positive error code
- repository: free memory in symlink detection function
- ci: update poxyproxy, run in quiet mode
- Add/multiply with overflow tweaks
- Improve deprecation of old enums
- Move
git_ref_t
togit_reference_t
- More
git_obj
togit_object
updates - ci: only run invasive tests in nightly
- Always build a cdecl library
- changelog: document changes since 0.27
- Fix a bunch of warnings
- mailmap: prefer [email protected]
- Convert tests/resources/push.sh to LF endings
- Get rid of some test files that were accidentally committed
- Fix crash on remote connection when GIT_PROXY_AUTO is set but no proxy is detected
- Make ENABLE_WERROR actually work
- Remove unconditional -Wno-deprecated-declaration on macOS
- Fix warning 'function': incompatible types - from 'git_cvar_value *' to 'int *' (C4133) on VS
- Fix Linux warnings
- Coverity fixes
- Shutdown callback count
- Update CRLF filtering to match modern git
- refdb_fs: refactor error handling in
refdb_reflog_fs__delete
- Remove empty (sub-)directories when deleting refs
- Support creating annotated commits from annotated tags
- Fix segfault in loose_backend__readstream
- make proxy_stream_close close target stream even on errors
- Index API updates for consistency
- Allow merge analysis against any reference
- revwalk: Allow changing hide_cb
- Unused function warnings
- Add builtin proxy support for the http transport
- config: fix adding files if their parent directory is a file
- Allow certificate and credential callbacks to decline to act
- Fix warning C4133 incompatible types in MSVC
- index: introduce git_index_iterator
- commit: fix out-of-bound reads when parsing truncated author fields
- tests: 🌀 address two null argument instances #4847
- Some OpenSSL issues
- worktree: Expose git_worktree_add_init_options
- transport/http: Include non-default ports in Host header
- Support symlinks on Windows when core.symlinks=true
- strntol: fix out-of-bounds reads when parsing numbers with leading sign
- apply: small fixups in the test suite
- signature: fix out-of-bounds read when parsing timezone offset
- Remote creation API
- Index collision fixes
- Patch (diff) application
- smart transport: only clear url on hard reset (regression)
- Tree parsing fixes
- CI: Fix macOS leak detection
- README: more CI status badges
- ci: Fix some minor issues
- Object parse fixes
- Windows CI: fail build on test failure
- ci: run all the jobs during nightly builds
- strtol removal
- buf::oom tests: use custom allocator for oom failures
- ci: arm docker builds
- Win32 path canonicalization refactoring
- Check object existence when creating a tree from an index
- Ninja build
- docs: fix transparent/opaque confusion in the conventions file
- Configuration variables can appear on the same line as the section header
- path: export the dotgit-checking functions
- cmake: correct comment from libssh to libssh2
- Object parsing fuzzer
- config: Port config_file_fuzzer to the new in-memory backend.
- Add some more tests for git_futils_rmdir_r and some cleanup
- diff_stats: use git's formatting of renames with common directories
- ignore unsupported http authentication contexts
- submodule: ignore path and url attributes if they look like options
- Smart packet security fixes
- config_file: properly ignore includes without "path" value
- int-conversion
- cmake: enable new quoted argument policy CMP0054
- fix check if blob is uninteresting when inserting tree to packbuilder
- Documentation fixups
- CI: refactoring
- In-memory configuration
- Some warnings
- index: release the snapshot instead of freeing the index
- online::clone: free url and username before resetting
- git_remote_prune to be O(n * logn)
- Rename "VSTS" to "Azure DevOps" and "Azure Pipelines"
- cmake: enable -Wformat and -Wformat-security
- Fix revwalk limiting regression
- path validation:
char
is not signed by default. - revwalk: refer the sorting modes more to git's options
- Clar XML output redux
- remote: store the connection data in a private struct
- docs: clarify and include licenses of dependencies
- config_file: fix quadratic behaviour when adding config multivars
- config: Fix a leak parsing multi-line config entries
- Prevent heap-buffer-overflow
- ci: remove travis
- Update VSTS YAML files with the latest syntax
- Documentation fixes
- config: convert unbounded recursion into a loop
- Document giterr_last() use only after error. #4772
- util: make the qsort_r check work on macOS
- fuzzer: update for indexer changes
- tree: accept null ids in existing trees when updating
- Pack file verification
- cmake: detect and use libc-provided iconv
- Coverity flavored clang analyzer fixes
- tests: verify adding index conflicts with invalid filemodes fails
- worktree: unlock should return 1 when the worktree isn't locked
- Add a fuzzer for config files
- Fix 'invalid packet line' for ng packets containing errors
- Fix leak in index.c
- threads::diff: use separate git_repository objects
- travis: remove Coverity cron job
- parse: Do not initialize the content in context to NULL
- config_file: Don't crash on options without a section
- ci: Correct the status code check so Coverity doesn't force-fail Travis
- ci: remove appveyor
- diff: fix OOM on AIX when finding similar deltas in empty diff
- travis: do not execute Coverity analysis for all cron jobs
- ci: enable compilation with "-Werror"
- smart_pkt: fix potential OOB-read when processing ng packet
- Fix a double-free in config parsing
- Fuzzers
- ci: run VSTS builds on master and maint branches
- Windows: default credentials / fallback credential handling
- ci: add VSTS build badge to README
- ci: set PKG_CONFIG_PATH for travis
- CI: Refactor and introduce VSTS builds
- revwalk: remove tautologic condition for hiding a commit
- winhttp: retry erroneously failing requests
- Add a configurable limit to the max pack size that will be indexed
- mbedtls: remove unused variable "cacert"
- Squash some leaks
- Add a checkout example
- Assorted Coverity fixes
- Remove GIT_PKT_PACK entirely
- ignore: improve
git_ignore_path_is_ignored
description Git analogy - alloc: don't overwrite allocator during init if set
- C90 standard compliance
- Delta OOB access
- Release v0.27.3
- streams: report OpenSSL errors if global init fails
- patch_parse: populate line numbers while parsing diffs
- Fix git_worktree_validate failing on bare repositories
- git_refspec_transform: Handle NULL dst
- Add a "dirty" state to the index when it has unsaved changes
- refspec: rename
git_refspec__free
togit_refspec__dispose
- streams: openssl: Handle error in SSL_CTX_new
- refspec: add public parsing api
- Fix interaction between limited flag and sorting over resets
- deps: fix implicit fallthrough warning in http-parser
- Fix assorted leaks found via fuzzing
- Fix type confusion in git_smart__connect
- Verify ref_pkt's are long enough
- Config parser cleanups
- Fix last references to deprecated git_buf_free
- revwalk: avoid walking the entire history when output is unsorted
- Add mailmap support.
- tree: remove unused functions
- Link
mbedTLS
libraries in whenSHA1_BACKEND
== "mbedTLS" - editorconfig: allow trailing whitespace in markdown
- docs: fix statement about tab width
- diff: fix enum value being out of allowed range
- pack: rename
git_packfile_stream_free
- Stop leaking the memory
- Bugfix release v0.27.2
- Fix stash save bug with fast path index check
- path: unify
git_path_is_*
APIs - Fix negative gitignore rules with leading directories
- Custom memory allocators
- index: Fix alignment issues in write_disk_entry()
- travis: war on leaks
- refdb_fs: fix regression: failure when globbing for non-existant references
- tests: submodule: do not rely on config iteration order
- Detect duplicated submodules for the same path
- Fix docurium missing includes
- github: update issue template
- streams: openssl: add missing check on OPENSSL_LEGACY_API
- mbedtls: don't require mbedtls from our pkgconfig file
- Fixes for CVE 2018-11235
- Backport fixes for CVE 2018-11235
- Added note about Windows junction points to the differences from git document
- cmake: resolve libraries found by pkg-config
- refdb_fs: enhance performance of globbing
- global: adjust init count under lock
- Fix GCC 8.1 warnings
- Worktrees can be made from bare repositories
- docs: add documentation to state differences from the git cli
- Sanitize the hunk header to ensure it contains UTF-8 valid data
- examples: ls-files: add ls-files to list paths in the index
- OpenSSL legacy API cleanups
- worktree: add functions to get name and path
- Fix deletion of unrelated branch on worktree
- mbedTLS support
- Configuration entry iteration in order
- blame_git: fix coalescing step never being executed
- Fix leaks in master
- Leak fixes for v0.27.1
- worktree: Read worktree specific reflog for HEAD
- fixed stack smashing due to wrong size of struct stat on the stack
- scripts: add backporting script
- worktree: add ability to create worktree with pre-existing branch
- refs: preserve the owning refdb when duping reference
- Submodules-API should report .gitmodules parse errors instead of ignoring them
- Typedef git_pkt_type and clarify recv_pkt return type
- online::clone: validate user:pass in HTTP_PROXY
- transports: ssh: disconnect session before freeing it
- revwalk: fix uninteresting revs sometimes not limiting graphwalk
- attr_file: fix handling of directory patterns with trailing spaces
- transports: local: fix assert when fetching into repo with symrefs
- remote/proxy: fix git_transport_certificate_check_db description
- Flag options in describe.h as being optional
- diff: Add missing GIT_DELTA_TYPECHANGE -> 'T' mapping.
- appveyor: fix typo in registry key to disable DHE
- Fix build with LibreSSL 2.7
- appveyor: workaround for intermittent test failures
- sha1dc: update to fix errors with endianess
- submodule: check index for path and prefix before adding submodule
- odb: mempack: fix leaking objects when freeing mempacks
- types: remove unused git_merge_result
- checkout: change default strategy to SAFE
- Add myself to git.git-authors
- Adds support for Node 12
- Updates lodash dependency to address security notice
- Expose Tree.prototype.createUpdated(repo, numUpdates, updates)
- Bumps libgit2
- Fixes gitignore issue with pattern negation
- Remote.list now gets the correct list of remotes if remotes are changed by external process
- Bump libgit2 #1705
- Fix Tree#createUpdated #1704
- Fix failing tests on CI #1703
- Audit lodash and fix package-lock.json #1702
- Implement support for Node 12 #1696
- config_file: refresh when creating an iterator #5181
- azure: drop powershell #5141
- fuzzer: use futils instead of fileops #5180
- w32: fix unlinking of directory symlinks #5151
- patch_parse: fix segfault due to line containing static contents #5179
- ignore: fix determining whether a shorter pattern negates another #5173
- patch_parse: handle missing newline indicator in old file #5159
- patch_parse: do not depend on parsed buffer's lifetime #5158
- sha1: fix compilation of WinHTTP backend #5174
- repository: do not initialize HEAD if it's provided by templates #5176
- configuration: cvar -> configmap #5138
- Evict cache items more efficiently #5172
- clar: fix suite count #5175
- Ignore VS2017 specific files and folders #5163
- gitattributes: ignore macros defined in subdirectories #5156
- clar: correctly account for "data" suites when counting #5168
- Allocate memory more efficiently when packing objects #5170
- fileops: fix creation of directory in filesystem root #5131
- win32: fix fuzzers and have CI build them #5160
- Config parser separation #5134
- config_file: implement stat cache to avoid repeated rehashing #5132
- ci: build with ENABLE_WERROR on Windows #5143
- Fix Regression: attr: Correctly load system attr file (on Windows) #5152
- hash: fix missing error return on production builds #5145
- Resolve static check warnings in example code #5142
- Multiple hash algorithms #4438
- More documentation #5128
- Incomplete commondir support #4967
- Remove warnings #5078
- Re-run flaky tests #5140
- Removed NSEC optimization due to performance regressions in repositories that did not use NSEC optimization cloned via NodeGit.
- Always use builtin regex for linux for portability
- Use builtin regex library for linux for better portability #1693
- Remove pcre-config from binding.gyp #1694
- Turn on GIT_USE_NSEC on all platforms
- Use Iconv on OSX for better internationalization support.
- Bump libgit2 to bring in:
- NTLM proxy support
- Negotiate/Kerberos proxy support
- Various git config fixes
- Various git ignore fixes
- Various libgit2 performance improvements
- Windows/Linux now use PCRE for regex, OSX uses regcomp_l, this should address collation issues in diffing
- Fixed bug with Repository.prototype.refreshReferences dying on corrupted reference. We now ignore corrupted references
- refresh_references.cc: skip refs that can't be directly resolved #1689
- Bump libgit2 to fork of latest master #1690
- errors: use lowercase
- largefile tests: only write 2GB on 32-bit platforms
- Fix broken link in README
- net: remove unused
git_headlist_cb
- cmake: default NTLM client to off if no HTTPS support
- attr: rename constants and macros for consistency
- Change API instances of
fromnoun
tofrom_noun
(with an underscore) - object: rename git_object__size to git_object_size
- Replace fnmatch with wildmatch
- Documentation fixes
- Removal of
p_fallocate
- Modularize our TLS & hash detection
- tests: merge::analysis: use test variants to avoid duplicated test suites
- Rename options initialization functions
- deps: ntlmclient: disable implicit fallthrough warnings
- gitignore with escapes
- Handle URLs with a colon after host but no port
- Merge analysis support for bare repos
- Add memleak check docs
- Data-driven tests
- sha1dc: update to fix endianess issues on AIX/HP-UX
- Add NTLM support for HTTP(s) servers and proxies
- Callback type names should be suffixed with
_cb
- tests: checkout: fix symlink.git being created outside of sandbox
- ignore: handle escaped trailing whitespace
- Ignore: only treat one leading slash as a root identifier
- online tests: use gitlab for auth failures
- Ignore files: don't ignore whitespace
- cache: fix cache eviction using deallocated key
- SECURITY.md: split out security-relevant bits from readme
- Restore NetBSD support
- repository: fix garbage return value
- cmake: disable fallthrough warnings for PCRE
- Configuration parsing: validate section headers with quotes
- Loosen restriction on wildcard "*" refspecs
- Use PCRE for our fallback regex engine when regcomp_l is unavailable
- Remote URL last-chance resolution
- Skip UTF8 BOM in ignore files
- We've already added
ZLIB_LIBRARIES
toLIBGIT2_LIBS
so don't also add thez
library - Define SYMBOLIC_LINK_FLAG_DIRECTORY if required
- Support symlinks for directories in win32
- rebase: orig_head and onto accessors
- cmake: correctly detect if system provides
regcomp
- Correctly write to missing locked global config
- [RFC] util: introduce GIT_DOWNCAST macro
- examples: implement SSH authentication
- git_repository_init: stop traversing at windows root
- config_file: check result of git_array_alloc
- patch_parse.c: Handle CRLF in parse_header_start
- fix typo
- sha1: don't inline
git_hash_global_init
for win32 - ignore: treat paths with trailing "/" as directories
- Test that largefiles can be read through the tree API
- Tests for symlinked user config
- patch_parse: fix parsing addition/deletion of file with space
- Optimize string comparisons
- Negation of subdir ignore causes other subdirs to be unignored
- xdiff: fix typo
- docs: clarify relation of safe and forced checkout strategy
- Each hash implementation should define
git_hash_global_init
- [Doc] Update URL to git2-rs
- remote: Rename git_remote_completion_type to _t
- odb: provide a free function for custom backends
- Have git_branch_lookup accept GIT_BRANCH_ALL
- Rename git_transfer_progress to git_indexer_progress
- High-level map APIs
- refdb_fs: fix loose/packed refs lookup racing with repacks
- Allocator restructuring
- cache: fix misnaming of
git_cache_free
- examples: produce single cgit2 binary
- Remove public 'inttypes.h' header
- Prevent reading out of bounds memory
- Fix a memory leak in odb_otype_fast()
- Make stdalloc__reallocarray call stdalloc__realloc
- Remove
git_time_monotonic
- Fix a very improbable memory leak in git_odb_new()
- ci: publish documentation on merge
- Enable creation of worktree from bare repo's default branch
- Allow bypassing check for '.keep' file
- Release v0.28.1
- Fix bug in Repository.prototype.refreshReferences where new remote references from a new remote added/fetched on a separte repo instance do not show up in the result.
- Fixed a prototype problem with cherrypick, merge, and other collections that have a function at their root. call, apply, and bind should now be on NodeGit.Cherrypick.
- Bumped libssh2 to resolve security notice.
- Bump libssh2 to 1.8.2 and fix some npm audit warnings #1678
- Root functions should keep their function prototypes correctly #1681
- refresh_references.cc: bust LibGit2 remote list cache by reading config #1685
- Improve speed and correctness of fileHistoryWalk. The API should not have changed; however, when the end of the walk has been reached,
reachedEndOfHistory
will be specified on the resulting array.
- Drops support for Ubuntu 14 after EOL
- Fixes openssl prebuilt downloads for electron builds
- Fixes commits retrieved from Commit.prototype.parent
- DEPRECATION Support signing commits in Repository.prototype.mergeBranches. The last parameter
processMergeMessageCallback
is now deprecated, but will continue to work. Use the options object instead, which will contain theprocessMergeMessageCallback
, as well as thesigningCb
. - Bump Node-Gyp to 4.0.0 to fix tar security vulnerability
- BREAKING
getRemotes
no longer returns remote names, it now returns remote objects directly. UsegetRemoteNames
to get a list of remote names. - Optimized a set of routines in NodeGit. These methods as written in Javascript require hundreds or thousands of requests to async workers to retrieve data. We've batched these requests and performed them on a single async worker. There are now native implementations of the following:
- Repository.prototype.getReferences: Retrieves all references on async worker.
- Repository.prototype.getRemotes: Retrieves all remotes on async worker.
- Repository.prototype.getSubmodules: Retrieves all submodules on async worker.
- Repository.prototype.refreshReferences: Open sourced function from GitKraken. Grabs a lot of information about references on an async worker.
- Revwalk.prototype.commitWalk: Retrieves up to N commits from a revwalk on an async worker.
- EOL for Node 6 and Ubuntu 14.04 #1649
- Ensures that commits from parent(*) has a repository #1658
- Update openssl conan distributions #1663
- Support signing in Repository#mergeBranches #1664
- Dependency upgrade node-gyp upgraded to 4.0.0 #1672
- Add additional getters to streamline information gathering (breaking change) #1671
- Removed access to the diff_so_far param in git_diff_notify_cb and git_diff_progress_cb
- Changed FilterSource.prototype.repo to async to prevent segfaults on filters that run during Submodule.status
- Clean up deprecation messages to inform users of what was deprecated, not just what users should switch to
- When installing on a machine that has yarn and does not have npm, the preinstall script should succeed now
- ceiling_dirs is now an optional parameter to Repository.discover
- Clean up some dangerous memory accesses in callbacks #1642
- Output the item that was deprecated when giving deprecation notice #1643
- Don't fail yarn installs when we can't find npm #1644
ceiling_dirs
parameter inRepository.discover
is optional #1245
- Fixed segfault in NodeGit.Merge.analysis and NodeGit.Merge.analysisForRef
- Fixed bug where repeated uses of extractSignature would fail because of the use of regex.prototype.match
- Added support for building on IBM i (PASE) machines
- Fixed bug where signingCb in rebases would not return error codes to LibGit2 if the signingCb threw or rejected
- Exposed AnnotatedCommit methods:
- AnnotatedCommit.prototype.ref
- Exposed Apply methods:
- Apply.apply applies a diff to the repository
- Apply.toTree applies a diff to a tree
- Exposed Config methods:
- Config.prototype.deleteEntry
- Config.prototype.deleteMultivar
- Config.prototype.getBool
- Config.prototype.getInt32
- Config.prototype.getInt64
- Config.prototype.setMultivar
- Config.prototype.snapshot
- Exposed ConfigIterator with methods:
- ConfigIterator.create
- ConfigIterator.createGlob
- ConfigIterator.createMultivar
- ConfigIterator.prototype.next
- Exposed Merge methods:
- Merge.analysis
- Merge.analysisForRef
- Expose Remote methods:
- Remote.createWithOpts
- Fix regex state causing subsequent runs of Tag.extractSignature to fail #1630
- Update LibGit2 docs to v0.28.0 #1631
- Add support for building on IBM i (PASE) #1634
- Expose more config methods #1635
- Catch errors and pass them to libgit2 as error codes in rebase signingcb #1636
- Simplify check for IBM i operating system #1637
- Bump LibGit2 to fork of v0.28.1 #1638
- Bumped LibGit2 to v0.28.0.
- Fixed problem with continue rebase preventing users from skipping commits
- Fixed leak where struct/option types were leaking libgit2 pointers
- We should clear the persistent cell in structs when they are destroyed #1629
- Fix "errorno" typo #1628
- Bump Libgit2 fork to v0.28.0 #1627
- Fixed builds for Electron 4 for real this time
- Fixed bug where signing the init commit failed due to being unable to update the
HEAD
ref. - Changed
NodeGit.Signature.default
to async, because it actually ends up reading the config. - Fixed bug where templates were not reporting errors for synchronous methods. It's a bit of a wide net, but in general, it is now possible certain sync methods in NodeGit will begin failin that did not fail before. This is the correct behavior.
- Switched
NodeGit.Oid.fromString
's internal implementation fromgit_oid_fromstr
togit_oid_fromstrp
- Fixed builds for Electron 4
- Added
NodeGit.Reference.updateTerminal
- Fix non-existent / dangling refs cause Repository.prototype.createCommitWithSignature to fail #1624
- Handle new gyp information for electron builds #1623
- Enforced consistent use of signing callbacks within the application. Any object that implements the signingCallback
pattern for signing commits or tags should use the exact same callback type and with the same meaning.
type SigningCallback = (content: string) => {| code: number, field?: string, signedData?: string |};
If the code isNodeGit.Error.CODE.OK
or 0, the operation will succeed and at least signedData is expected to be filled out. If the code is a negative number, except forNodeGit.Error.CODE.PASSTHROUGH
, the signing operation will fail. If the code isNodeGit.Error.CODE.PASSTHROUGH
, the operation will continue without signing the object.
- Added RebaseOptions to repository.prototype.rebaseContinue
- Bump Libgit2 to preview of v0.28.0
- Add signing support for commits and annotated tags
- Updated Signature.prototype.toString to optionally include timestamps
- [BREAKING] Converted Buf.prototype.set and Buf.prototype.grow from async to sync
- Added complete support for libgit2 types:
- git_index_name_entry
- git_index_reuc_entry
- git_mailmap
- Exposed git_path_is_gitfile
- Exposed git_tag_create_frombuffer
- adds support for gpg commit signing (fixes #1018) #1448
- Add
updateRef
parameter to Repository#createCommitWithSignature #1610 - Documentation fixes. #1611
- Add Commit#amendWithSignature #1616
- Bump libgit2 to a preview of v0.28 #1615
- Fix issues with Commit#amendWithSignature #1617
- Marked Repository.createBlobFromBuffer as async #1614
- Add functionality for creating Tags with signatures and extracting signatures from Tags #1618
- Garbage collect most of the library.
- All free functions have been removed. The expectation is that they will be collected by the GC.
- All init options methods have been removed. They were never supposed to be exposed in the first place.
- Added support for performing history walks on directories.
- Fix various bugs that led to segfaults or incorrect behavior.
- Removed ssl and crypto dependency from non-electron builds.
Mostly due to missing support anyway, please report anything you were using as an issue.
- NodeGit.Blob.createFromStreamCommit
- NodeGit.Branch.Iterator.prototype.new
- NodeGit.Config.initBackend
- NodeGit.Config.prototype.snapshot
- NodeGit.Config.prototype.setBool
- NodeGit.Config.prototype.setInt32
- NodeGit.Config.prototype.setInt64
- NodeGit.Index.prototype.owner
- NodeGit.Note.iteratorNew
- NodeGit.Note.next
- NodeGit.Odb.prototype.addDiskAlternate
- NodeGit.Repository.prototype.configSnapshot
- NodeGit.Signature.prototype.dup
- NodeGit.Tag.foreach
- NodeGit.Transport.init
- NodeGit.Transport.sshWithPaths
- NodeGit.Transport.unregister
- NodeGit.Config.prototype.getEntry
- NodeGit.Config.prototype.snapshot
- NodeGit.Config.prototype.refresh
- NodeGit.Config.prototype.setBool
- NodeGit.Config.prototype.setInt32
- NodeGit.Config.prototype.setInt64
- NodeGit.Diff.prototype.isSortedIcase
- NodeGit.DiffStats.prototype.deletions
- NodeGit.DiffStats.prototype.filesChanged
- NodeGit.DiffStats.prototype.insertions
- NodeGit.DiffStats.prototype.toBuf
- NodeGit.Odb.hashfile
- NodeGit.Odb.prototype.readPrefix
- NodeGit.OidShorten.prototype.add
- NodeGit.OidShorten.create
- NodeGit.PathspecMatchList.prototype.diffEntry
- NodeGit.PathspecMatchList.prototype.entry
- NodeGit.PathspecMatchList.prototype.entrycount
- NodeGit.PathspecMatchList.prototype.failedEntry
- NodeGit.PathspecMatchList.prototype.failedEntryCount
- NodeGit.DescribeFormatOptions
- NodeGit.DiffStats
- NodeGit.OidShorten
- NodeGit.PathspecMatchList
- Garbage collection: Free mostly everything automatically #1570
- Fix typo in GitHub issue template #1586
- More suitable example about Signature #1582
- Add support for directories when using
fileHistoryWalk
#1583 - Add a test for Repository's getReferenceCommit #1601
- Check parameters before performing reset #1603
- Remove ssl and crypto dependency on non-electron builds #1600
- Clean up libssh2 configure step #1574
- Fix checkout bug in our fork of libgit2 #1609
- Fix segfault in NodeGit.Revert.revert #1605
- Garbage collect most of the library.
- All free functions have been removed. The expectation is that they will be collected by the GC.
- All init options methods have been removed. They were never supposed to be exposed in the first place.
Mostly due to missing support anyway, please report anything you were using as an issue.
- NodeGit.Blob.createFromStreamCommit
- NodeGit.Branch.Iterator.prototype.new
- NodeGit.Config.initBackend
- NodeGit.Config.prototype.snapshot
- NodeGit.Config.prototype.setBool
- NodeGit.Config.prototype.setInt32
- NodeGit.Config.prototype.setInt64
- NodeGit.Index.prototype.owner
- NodeGit.Note.iteratorNew
- NodeGit.Note.next
- NodeGit.Odb.prototype.addDiskAlternate
- NodeGit.Repository.prototype.configSnapshot
- NodeGit.Signature.prototype.dup
- NodeGit.Tag.foreach
- NodeGit.Transport.init
- NodeGit.Transport.sshWithPaths
- NodeGit.Transport.unregister
- NodeGit.Config.prototype.getEntry
- NodeGit.Config.prototype.snapshot
- NodeGit.Config.prototype.refresh
- NodeGit.Config.prototype.setBool
- NodeGit.Config.prototype.setInt32
- NodeGit.Config.prototype.setInt64
- NodeGit.Diff.prototype.isSortedIcase
- NodeGit.DiffStats.prototype.deletions
- NodeGit.DiffStats.prototype.filesChanged
- NodeGit.DiffStats.prototype.insertions
- NodeGit.DiffStats.prototype.toBuf
- NodeGit.Odb.hashfile
- NodeGit.Odb.prototype.readPrefix
- NodeGit.OidShorten.prototype.add
- NodeGit.OidShorten.create
- NodeGit.PathspecMatchList.prototype.diffEntry
- NodeGit.PathspecMatchList.prototype.entry
- NodeGit.PathspecMatchList.prototype.entrycount
- NodeGit.PathspecMatchList.prototype.failedEntry
- NodeGit.PathspecMatchList.prototype.failedEntryCount
- NodeGit.DescribeFormatOptions
- NodeGit.DiffStats
- NodeGit.OidShorten
- NodeGit.PathspecMatchList
- Added Node 10 support.
- We no longer compile OpenSSL. Instead, we prefer the OpenSSL shipped with Node. In electron builds, we prefer the system openssl on linux, and we get prebuilt static libs from Conan.
- Cleaned up some compiler warnings
- Our http_parser dependency is now a submodule.
- Updated some dependencies in npm to get rid of security vulnerabilities and warnings.
- Exposed transfer progress callback for pushing.
- Libssh2 is now preconfigured for both Mac OS and Windows
- warn about node v10 incompatibility in readme #1534
- Define error codes to fix compiler warnings about unused variables #1486
- Include http_parser via submodule #1551
- Update dependencies to get rid of security vulnerabilities #1547
- add github issue template #1548
- Enable git_push_transfer_progress - Help wanted #1500
- Fixed createBranch API params #1552
- Use curl-config to find curl #1555
- Update readme #1554
- Node 10 support #1545
- Update dependencies #1519
- Run submodule updates in sequence rather than parallel #1558
- Fix Electron builds on win32 #1560
- Use static
libssh2_config.h
on MacOS builds #1569
On Mac OS Mojave, libssh2 configure failed to configure, because libssh2 always tries to configure against system libraries. The configure process uses links to determine that a OpenSSL is present. Since OSX and Windows no longer link against the system lib, we've prebuilt the configure steps for both environments. This should be stable when building NodeGit on Mojave.
- Added Node 10 support.
- We no longer compile OpenSSL. Instead, we prefer the OpenSSL shipped with Node. In electron builds, we prefer the system openssl on linux, and we get prebuilt static libs from Conan.
- Cleaned up some compiler warnings
- Our http_parser dependency is now a submodule.
- Updated some dependencies in npm to get rid of security vulnerabilities and warnings.
- Exposed transfer progress callback for pushing.
- warn about node v10 incompatibility in readme #1534
- Define error codes to fix compiler warnings about unused variables #1486
- Include http_parser via submodule #1551
- Update dependencies to get rid of security vulnerabilities #1547
- add github issue template #1548
- Enable git_push_transfer_progress - Help wanted #1500
- Fixed createBranch API params #1552
- Use curl-config to find curl #1555
- Update readme #1554
- Node 10 support #1545
- Update dependencies #1519
- Run submodule updates in sequence rather than parallel #1558
- Fix Electron builds on win32 #1560
- Bumped libgit2 to 0.27.3 to incorporate security patch. Details can be found here https://github.com/libgit2/libgit2/releases/tag/v0.27.3
- Also includes changes made in 0.27.2. Details can be found here https://github.com/libgit2/libgit2/releases/tag/v0.27.2
- Ensure optional params are respected as optional in
NodeGit.Merge.trees
- Parallelize checkout_create_the_new for ntfs perf gains #4205
- negotiate always fails via libcurl #4126
Bumped libgit2 to 0.27.1 to address security flaw with submodule name validation (CVE-2018-11235, reported by Etienne Stalmans). Details can be found here https://github.com/libgit2/libgit2/releases/tag/v0.27.1
- Expose Tag.listMatch
- Expose Repo.prototype.createCommitBuffer
- Bump Libgt2 to 0.27.0. For more information about what was in this release. Check upstream.
- Errors are now properly thrown from
Attr.prototype.get
Blob.createFrombuffer
Blob.createFromworkdir
Reference.list
Remote.prototype.getFetchRefspecs
Remote.prototype.getPushRefspecs
Status.file
- WorkTree is now exposed
- Static methods
add
list
lookup
openFromRepository
- Instance methods
isLocked
isPrunable
lock
prune
unlock
validate
- Static methods
- BREAKING Functions that are now async
Attr.prototype.getMany
Tag.prototype.target
Treebuilder.prototype.Write
- BREAKING Diffs generated from
Diff.treeToIndex
andDiff.treeToWorkdirWithIndex
conditionally supportDiff.OPTION.IGNORE_CASE
. Only on repositories where the index is case insensitive will the flag be set on the output diff. The flag itself is ignored when passed toDiffOptions
.
- Add JavaScript Tag.listMatch function for git_tag_list_match #1470
- Expose error code in Status.file #1468
- Travis documentation deploy fixes #1466
- Bump to libgit2 v0.27.0 #1477
- Add repo.createCommitBuffer #1481
- Parallelize checkout_create_the_new for ntfs perf gains #4205
- negotiate always fails via libcurl #4126
- Drop support for node 7
- Fixed an issue where fast-forward rebase would throw an error unexepctedly.
- Expose git_commit_extract_signature
- TreeEntry.prototype.path() should always return posix style separators
- Expose git_config_open_ondisk
- Expose git_config_find_global
- Expose git_config_find_system
- Expose git_config_find_xdg
- Expose git_config_get_path
- Fix typo in CHANGELOG.md #1455
- Add two tests for Tag #1452
- Handle fast-forward merges properly in repository.performRebase #1457
- Enable git_commit_extract_signature #1458
- removes 'only' from test #1460
- Deploy documentation and make extended tests visible #1447
- resolves #1433 TreeEntry#path should return posix path #1434
- Exposed git_config_open_ondisk #1459
- Expose git_config functions #1463
- Fixed an issue where having html escape characters in the path portion of an ssh url always fails when performing remote actions.
- Generate default options for Revert.revert to prevent an exception #1404
- fix issue with re-require()'ing native modules #1354
- Expose JavaScript function name in a rejected promise #1393
- Fix compiling with clang #1344
- Fix typos #1415
- build: add NetBSD support to opensslconf.h #1374
- Fix example by forcing backslashes with path.posix #1346
- Expose the Node.js GC when running
mocha
scripts #1258 - Exposed filter_list; Fixed discard lines to use filters #1414
- Add tests for AnnotatedCommit #1325
- Adding docs for NodeGit #1350
- Fix details-for-tree-entry.js to access fields instead of calling a function #1326
- Add JavaScript version of
git_tag_peel()
#1269 - Fixed documentation error #1417
- Annotate Blame.file as async #1421
- Add two missing tests to Commit #1422
- CI: Update Node.js versions + some deps #1444
- Expose fetch_options.custom_headers #1430
- Bumped libgit to libgit-next head #1387
- Added a better normalizeOptions pattern for the submodule update routine #1388
- Updated input docs to allow for git_push_update_reference_cb to generate #1386
- Updated descriptors for git_index_find and git_index_find_prefix #1391
- Fix template dir empty string #4273
- travis: upgrade container to Ubuntu 14.04 #4211
- merge: perform exact rename detection in linear time #4202
- merge: fix potential free of uninitialized memory #4277
- cmake: Permit disabling external http-parser #4278
- Out of tree builds #4235
- Convert port with htons() in p_getaddrinfo() #4280
- tests: config: fix missing declaration causing error #4291
- git_reset_*: pass parameters as const pointers #4287
- signature: don't leave a dangling pointer to the strings on parse failure #4306
- Patch ID calculation #4272
- Configuration file fixes with includes #4250
- win32: provide fast-path for retrying filesystem operations #4311
- Build with patched libcurl #4317
- tsort: remove idempotent conditional assignment #4314
- tests: rebase::submodule: verify initialization method calls #4320
- Remove unused 'sys/remote.h' header #4323
- patch_generate: represent buffers as void pointers #4304
- sha1_position: convert do-while to while #4326
- sha1_lookup: drop sha1_entry_pos function #4327
- oid: use memcmp in git_oid__hashcmp #4328
- Docs: Fix inline comments for git_diff_hunk #4330
- Split up CMakeLists.txt build instructions #4282
- -Werror builds for Travis #4279
- Submodules with bare repo #4305
- Fix negative ignore rules with patterns #4296
- README: Mention Guile-Git bindings. #4342
- features.h: allow building without CMake-generated feature header #4346
- Clear the remote_ref_name buffer in git_push_update_tips() #4344
- Fix AppVeyor build failures due to CRTDBG linking issue #4347
- diff: cleanup hash ctx in
git_diff_patchid
#4348 - Reproducible builds #4334
- Static linking for bundled deps #4339
- Use SOCK_CLOEXEC when creating sockets #4364
- Document that a commit is not a descendant of itself #4362
- refs: do not use peeled OID if peeling to a tag #4367
- remote: add typedef to normalize push_update_reference callback #4363
- travis: add custom apt sources #4321
- Fix Issue #4047 Check return codes and free objects #4370
- Plug some leaks in curl's proxy handling #4359
- Checkout typechange-only deltas #4369
- tests: checkout::tree: verify status entrycount changes on chmod #4371
- transports: smart: fix memory leak when skipping symbolic refs #4368
- cmake: fix linking in Xcode with object libraries only #4372
- cmake: use static dependencies when building static libgit2 #4356
- Parallelize checkout_create_the_new for ntfs perf gains #4205
- negotiate always fails via libcurl #4126
- Fixed an issue where large buffer allocations in filters (> 256MB) causes a segfault #1368
- Fix git_tree_entry double free #1332
- BREAKING: Added blob methods and converted to async #1327
- BREAKING: Convert sync methods to async methods #1348
- Exposed libgit2 git_branch_remote_name method #1340
- Adding git_filter support in nodegit #1331
- Add CI build config for node stable version #1337
- removed node v4 tests #1330
- Include fixups #4288
- Docs: Fix inline comments for git_diff_hunk #4330
- oid: use memcmp in git_oid__hashcmp #4328
- sha1_lookup: drop sha1_entry_pos function #4327
- sha1_position: convert do-while to while #4326
- patch_generate: represent buffers as void pointers #4304
- Remove unused 'sys/remote.h' header #4323
- tests: rebase::submodule: verify initialization method calls #4320
- tests: rewrite rebase-submodule .gitmodule file #4275
- tsort: remove idempotent conditional assignment #4314
- Build with patched libcurl #4317
- win32: provide fast-path for retrying filesystem operations #4311
- Configuration file fixes with includes #4250
- Patch ID calculation #4272
- signature: don't leave a dangling pointer to the strings on parse failure #4306
- git_reset_*: pass parameters as const pointers #4287
- tests: config: fix missing declaration causing error #4291
- Convert port with htons() in p_getaddrinfo() #4280
- Out of tree builds #4235
- cmake: Permit disabling external http-parser #4278
- merge: fix potential free of uninitialized memory #4277
- merge: perform exact rename detection in linear time #4202
- travis: upgrade container to Ubuntu 14.04 #4211
- Fix template dir empty string #4273
- adding GIT_FILTER_VERSION to GIT_FILTER_INIT as part of convention #4267
- travis: replace use of deprecated homebrew/dupes tap #4268
- Test improvements #4269
- Read prefix tests #4265
- Allow creation of a configuration object in an in-memory repository #4263
- travis: install openssl explicitly #4266
- smart_protocol: fix parsing of server ACK responses #4261
- odb_read_prefix: reset error in backends loop #4264
- Update version number to 0.26 #4262
- CHANGELOG: add various changes introduced since v0.25 #4254
- Ensure packfiles with different contents have different names #4088
- Update to forced checkout and untracked files #4260
- settings: rename
GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION
#4259 - Buffer growing cleanups #4255
- Coverity fixes #4253
- SHA1DC update #4258
- Fix path computations for compressed index entries #4236
- (Temporarily) disable UNC tests #4256
- fix build with libressl #4251
- Fix issue with directory glob ignore in subdirectories #4239
- Submodule working directory #4243
- Introduce home directory expansion function for config files, attribute files #4179
- Fix proxy auto detect not utilizing callbacks #4097
- git_repository_set_head: use tag name in reflog #4174
- revparse: support open-ended ranges #4231
- Fix GCC warnings #4240
- Update README: VS -> VSTS #4238
- tests: repo: fix repo discovery tests on overlayfs #4232
- libssh2 shutdown #4229
- WIP: squash some memleaks #4226
- Verify object hashes #4197
- transport: provide a getter for the proxy options #4206
- Debian HTTPS feature test failure #4216
- Do not free config when creating remote #4224
- socket_stream: continue to next addrinfo on socket creation failure #4219
- Honor read-only flag when writing to config backends #4217
- diff_parse: free object instead of its pointer #4215
- Parallelize checkout_create_the_new for ntfs perf gains #4205
- negotiate always fails via libcurl #4126
- You can now convert tree entries in blobs PR #1272
- fileops: fix leaking fd in
mmap_ro_file
#4201 - README: document our relation to changes in upstream #4198
- filter: only close filter if it's been initialized correctly #4196
- Fix building against OpenSSL v1.1 #4195
- pkgconfig: fix handling of prefixes containing whitespaces #4193
- Refactor some of the win32 POSIX emulation #4192
- Correct non-existent file references in
odb.h
#4188 - Coverity #4183
- git_treebuilder_write_with_buffer refactorings #4182
- Fix memory leaks #4180
- sha1dc: perf improvements from upstream #4178
- inet_pton: don't assume addr families don't exist #4176
- git_futils: don't O_EXCL and O_TRUNC #4175
- Fix the documentation for git_cred_acquire_cb #4172
- Fix typo in remote.h API #4171
- Fix resolving absolute symlinks (on at least Win32) #4169
- Coverity fixes #4167
- Remove
map_free
macros #4166 - Worktree fixes #4163
- merge_driver: fix const-correctness for source getters #4162
- submodule: catch when submodule is not staged on update #4161
- Diff fixes #4160
- Skip uninteresting commits in revwalk timesort iterator #4157
- git_futils_readbuffer: don't compute sha-1 #4156
- Support namespaced references again #4154
- rebase: ignore untracked files in submodules #4151
- git_commit_create: freshen tree objects in commit #4150
- cmake: only enable supported compiler warning flags #4148
- winhttp: disambiguate error messages when sending requests #4146
- tests: refs::create: fix memory leak #4145
- Fix: make reflog include "(merge)" for merge commits #4143
- Fix minor typos in CONVENTIONS.md #4142
- Fix inet_pton tests triggering an assert in Haiku #4141
- README: Mention how to run tests #4139
- tests: Add create__symbolic_with_arbitrary_content #4138
- appveyor: don't rewrite the system mingw #4137
- Introduce (optional) SHA1 collision attack detection #4136
- Provide error on gcc < 4.1 when THREADSAFE #4135
- fix regression from #4092 #4133
- Attrcache cleanups #4131
- Improve clar messages #4130
- Minor comment fix #4127
- refdb: catch additional per-worktree refs #4124
- Signature cleanups #4122
- Changes to provide option to turn off/on ofs_delta #4115
- khash cleanups #4092
- fsync all the things #4030
- Worktree implementation #3436
- Parallelize checkout_create_the_new for ntfs perf gains #4205
- negotiate always fails via libcurl #4126
- Fix proxy auto detect not utilizing callbacks #4097
- All callbacks that go to libgit2 now have an optional
waitForResult
flag that can betrue
/false
. Defaults to false. When true it will not stop libgit2 from continuing on before the JS code is fully executed and resolved (in cases of a Promise). This is useful for progress callbacks (like fetching) where the bubbling up of the progress to JS doesn't really need the C/C++ code to wait for the JS code to fully handle the event before continuing. This can have serious performance implications for many callbacks that can be fired quite frequently. given_opts
inRevert.revert
are now optionalcheckout_opts
inReset.fromAnnotated
andReset.reset
are now optionalReset.fromAnnotated
is now asyncmessage
onStash.save
is now optional- Added
processMergeMessageCallback
onRepository#mergeBranches
to allow for custom merge messages - Add
beforeFinishFn
toRepository#rebaseBranches
andRepository#continueRebase
. This is called before the invocation offinish()
. If the callback returns a promise,finish()
will be called when the promise resolves. ThebeforeFinishFn
will be called with an object that has on it: ontoName
The name of the branch that we rebased ontoontoSha
The sha that we rebased ontooriginalHeadName
The name of the branch that we rebasedoriginalHeadSha
The sha of the branch that was rebasedrewitten
which is an array of sha pairs that contain which contain what the commit sha was before the rebase and what the commit sha is after the rebase
PR #1123 bumped libgit2 which brought in many changes and bug fixes.
- Use a shared buffer in calls of git_treebuilder_write to avoid heap contention #3892
- WinHTTP: set proper error messages when SSL fails #4050
- Clang analyzer run #4051
- Extend packfile in increments of page_size. #4053
- Fix general example memory leaks #4078
- WIP: some coverity & compiler warning fixes #4086
- Fix a few recent warnings #4087
- Fix uninitialized variable warning #4095
- Update docs for git_oid_fromstrn and p #4096
- Fix digest credentials for proxy in windows #4104
- Vector reverse overflow #4105
- Flag given_opts in git_revert as optional #4108
- Flag checkout_opts in git_reset as optional #4109
- dirname with DOS prefixes #4111
- Add support for lowercase proxy environment variables #4112
- Flag options in git_stash_apply and git_stash_pop as being optional #4117
- rename detection: don't try to detect submodule renames #4119
- tests: fix permissions on testrepo.git index file #4121
- Don't overwrite C++ files for things that haven't changed PR #1091
- Add the option to "fire and forget" callbacks so libgit2 doesn't wait for JS to finish before proceeding PR #1208
- Send back the error code from libgit2 when a call fails PR #1209
- Initialize pointers to null PR #1210
- Replace Gitter with Slack PR #1212
- Make
given_opts
inRevert.revert
optional PR #1213 - Make
Reset.fromAnnotated
async andcheckout_opts
optional PR #1214 - Make
message
onStash.save
optional PR #1215 - Add
Remote.ls
to NodeGit PR #1218 - Add
processMergeMessageCallback
toRepository#mergeBranches
to allow for custom merge messages PR #1219 - Bump libgit2 to 43275f5 PR #1223 from srajko/bump-libgit
- Provide rebase details on finish PR #1224
- Use wider int to calculate throttle window PR #1232
- Update comment to reflect the correct path for generated code output PR #1236
- Remove nwjs example from the docs PR #1238
- Remove
sudo
requirement from linux 32-bit builds PR #1241
In this release we had added support for Node v7 and latest Electron. We have removed support for Node v0.12 and v5.
We are also deprecating nw.js support since it is currently broken, no one in the current team uses it and we would not be able to currently support nw.js in an effective manner with a good user experience.
For proxy support we now use libcurl for HTTP/HTTPS transport which should have no noticeable change in NodeGit remote operations but if changes are noticed this is worth mentioning as a potential source.
Many PR's were made to fix memory leaks as they were found so memory usage should go down in this version for long running scripts. Additionally, when performing operations with callbacks (transfer progress, credentials, etc...) there was a small chance for a segfault when NodeGit would schedule the callback to go into JavaScript. This is now fixed.
Many users, especially on windows, were experiencing errors during the build. The build still isn't perfect but a lot of the bugs were fixed.
The majority of changes to NodeGit v17 were in libgit2. The API breaking changes that are known are:
RevWalk
is returning different results libgit2 PR #3921- Changes in error messages returned libgit2 PR #4049
Summary of changes that were brought in:
- Define GIT_SSH_MEMORY_CREDENTIALS for libgit2 PR #949
- Add "Path" to ssh variable names in tests for clarity PR #1135
- Fix revwalk memory leaks PR #1137
- Fix tree entry leaks PR #1138
- Fix typo in postinstall script PR #1141
- Fix windows exception handling in build PR #1143
- Fix CI failures on node 0.12 PR #1144
- Fix postinstall script crash when install location has spaces in its path PR #1148
- Update 0.13 changelog PR #1151
- Minor documentation fix in Checkout.index PR #1164
- FreeBSD also uses struct timespec st_mtim PR #1165
- README.md needs to show where to get Slack invitation PR #1170
- Add @async tag to
Tree#getEntry
PR #1178 - Fix incorrect anchor link in TESTING.md PR #1179
- Added tests for Tag PR #1180
- Added tests for Branch PR #1181
- Escape the spaces in dir for shell command PR #1186
- Bump libgit to 0bf0526 PR #1187
- Checkout's tree* functions do not support Oid as a parameter PR #1190
- Build against shared library for libcurl PR #1195
- Move libuv calls to correct thread PR #1197
- Update
Repository#createBranch
docs PR #1198 - Remove Node v0.12 and v5 PR #1199
- Specify acceptable types for
lookup
anddwim
in Reference PR #1203 - Build for Node 7.4.0 PR #1204
- Write the index to a repository directly in merge-cleanly.js examples PR #1205
- Bump libssh2 to 1.7.0 PR #1071
- Js cleanup PR #1074
- Expose merge options and diff flags PR #1076
- Fix Tree#entryByName function and add test PR #1079
- Add isSubmodule() method PR #1080
- Fix two typos in the documentation for Commit#parents PR #1081
- Memory management: duplicate time PR #1090
- Preempt nan to fix deprecated calls to Get/SetHiddenValue PR #1106
- Try re-enabling node >6.2 PR #1107
- Bump openssl to 1.0.2h (same as node 6.3.1) PR #1108
- Don't run postbuild when we detect electron install PR #1111
- Added instructions for CircleCI users PR #1113
- Fix up electron and nw.js docs PR #1114
- Patch libssh2 to work with vs2015 PR #1125
- Fix CI PR #1126
- Fix postinstall breaking build if it fails.
- Fix postinstall breaking build if it fails.
- Update to libgit2 @ 37dba1a PR #1041
This updates NodeGit to use the latest HEAD
version of libgit2. The plan for staying on the official tagged releases of libgit2 is that they will get a maintenance branch and not-breaking API fixes will be backported to them. The first branch of this sort is maint/0.14
. Going forward new releases of NodeGit will follow closely to the master
branch of libgit2.
Summary of changes that were brought in:
-
NodeGit.FetchOptions
, andNodeGit.PushOptions
now have aproxyOpts
field that accepts aNodeGit.ProxyOptions
object that allows NodeGit to use a proxy for all remote communication -
NodeGit.MergeOptions
has adefaultDriver
field that lets the caller change the driver used to when both sides of a merge have changed
-
Commit.createWithSignature
allows the caller to create a signed commit. There are no tests for this currently so it's labelled experimental. -
Blob
,Commit
,Tag
, andTree
all have a new prototypedup
method on them to make a low-level copy of the libgit2 object if needed. -
Odb#expandIds
is exposed which takes in a list of short ids and expands them in-place to the full id of the object in the database
- Stop
RevWalk#walk
from swallowing errors in the callback PR #1047 - Stop swallowing errors in the install script PR #1048
- Fix initializing submodules when installing from npm PR #1050
Repository#discardLines
is now a thing PR #1021
- Async methods now use a custom threadpool to prevent thread-locking the event loop PR #1019
- Fix building NodeGit from NPM PR #1026
- Plug a memory leak in
RevWalk.fastWalk
PR #1030 - Plug a memory leak with
Oid
PR #1033 - Fixed some underlying libgit2 objects getting freed incorrectly PR #1036
This is a big update! Lots of work was done to bring NodeGit up to the latest stable libgit2 version (v0.24.1), to use babel in the library, to make it more stable, remove memory leaks, squash bugs and in general just improve the library for all. Make sure to see all of the API changes below (there are a lot).
We have added Node 6 as a supported platform! Going forward we aim to have 1:1 support for versions of Node that are either current or LTS. That means that v0.12 will not be supported soon so if you're on that please upgrade to at least Node v4. Also Node v5 will NOT be LTS so when Node stops supporting that in the coming months we will as well. You can read more about the current Node upgrade plan here.
Index#add
,Index#addByPath
,Index#clear
,Index#conflictAdd
,Index#conflictCleanup
,Index#conflictGet
,Index#conflictRemove
,Index.open
,Index#read
,Index#readTree
,Index#remove
,Index#removeByPath
,Index#removeDirectory
,Index#read
,Index#write
,Index#writeTree
, andIndex#writeTreeTo
are all now asynchronous functions PR #971- Made
ancestoryEntry
,outEntry
andtheirEntry
optional parameters onIndex#conflictAdd
PR #997 Repository#refreshIndex
will return an Index object back that has the latest data loaded off of disk PR #986Commit.create
is now asynchronous PR #1022Remote.create
is now asynchronous PR #990
Diff#merge
will combine a diff into itself PR #1000ReflogEntry#committer
,ReflogEntry#idNew
,ReflogEntry#idOld
, andReflogEntry#message
have been added PR #1013
Repository#openIndex
PR #989, useRepository#index
orRepository#refreshIndex
insteadReflog#entryCommitter
,Reflog#entryIdNew
,Reflog#entryIdOld
, andReflog#entryMessage
have been moved to be underReflogEntry
PR #1013
Branch.name
works now PR #991- Fixed a crash with callbacks from libgit2 PR #944
- Fixed a crash in
Tree#entryByName
PR #998 - More memory leaks have been plugged PR #1005, PR #1006, PR #1014, and PR #1015
Commit#getDiffWithOptions
now actually passes the options correctly PR #1008
Upgraded to libgit2 v0.24.1 PR #1010
-
Custom merge drivers can now be registered, which allows callers to configure callbacks to honor
merge=driver
configuration in.gitattributes
. -
Custom filters can now be registered with wildcard attributes, for example
filter=*
. Consumers should examine the attributes parameter of thecheck
function for details. -
Symlinks are now followed when locking a file, which can be necessary when multiple worktrees share a base repository.
-
You can now set your own user-agent to be sent for HTTP requests by using the
Libgit2.OPT.SET_USER_AGENT
withLibgit2.opts()
. -
You can set custom HTTP header fields to be sent along with requests by passing them in the fetch and push options.
-
Tree objects are now assumed to be sorted. If a tree is not correctly formed, it will give bad results. This is the git approach and cuts a significant amount of time when reading the trees.
-
Filter registration is now protected against concurrent registration.
-
Filenames which are not valid on Windows in an index no longer cause to fail to parse it on that OS.
-
Rebases can now be performed purely in-memory, without touching the repository's workdir.
-
When adding objects to the index, or when creating new tree or commit objects, the inputs are validated to ensure that the dependent objects exist and are of the correct type. This object validation can be disabled with the
Libgit2.OPT.ENABLE_STRICT_OBJECT_CREATION
option. -
The WinHTTP transport's handling of bad credentials now behaves like the others, asking for credentials again.
-
Blob.createFromStream()
andBlob.createFromStreamCommit
allow you to create a blob by writing into a stream. Useful when you do not know the final size or want to copy the contents from another stream. -
Config#lock
has been added, which allow for transactional/atomic complex updates to the configuration, removing the opportunity for concurrent operations and not committing any changes until the unlock. -
DiffOptions
added a new callbackprogress_cb
to report on the progress of the diff as files are being compared. The documentation of the existing callbacknotify_cb
was updated to reflect that it only gets called when new deltas are added to the diff. -
FetchOptions
andPushOptions
have gained acustomHeaders
field to set the extra HTTP header fields to send. -
Commit#headerField
allows you to look up a specific header field in a commit.
-
MergeOptions
now provides adefaultDriver
that can be used to provide the name of a merge driver to be used to handle files changed during a merge. -
The
Merge.TREE_FLAG
is nowMerge.FLAG
. Subsequently,treeFlags
field of theMergeOptions
structure is now namedflags
. -
The
Merge.FILE_FLAGS
enum is nowMerge.FILE_FLAG
for consistency with other enum type names. -
Cert
descendent types now have a properparent
member -
It is the responsibility of the refdb backend to decide what to do with the reflog on ref deletion. The file-based backend must delete it, a database-backed one may wish to archive it.
-
Index#add
andIndex#conflictAdd
will now use the case as provided by the caller on case insensitive systems. Previous versions would keep the case as it existed in the index. This does not affect the higher-levelIndex#addByPath
orIndex#addFromBuffer
functions. -
The
Config.LEVEL
enum has gained a higher-priority valuePROGRAMDATA
which represent a rough Windows equivalent to the system level configuration. -
RebaseOptions
now has amergeOptions
field. -
The index no longer performs locking itself. This is not something users of the library should have been relying on as it's not part of the concurrency guarantees.
-
Remote#connect()
now takes acustomHeaders
argument to set the extra HTTP header fields to send. -
Tree.entryFilemode
,Tree.entryFilemodeRaw
,Tree.entryId
,Tree.entryName
,Tree.entryToObject
, andTree.entryType
have all been moved to theTreeEntry
prototype. Additionally, theTreeEntry
fields have been removed in lieu of the corresponding functions to return the data.
- We now provide 32-bit binaries for linux PR #980
- Fixed post install script dying on windows PR #978
Ignore
- Made
Ignore.pathIsIgnored
async PR #970
- Made
- Added an error message when trying to install NodeGit without a required version of libstdc++ PR #972
- Fix a crash when grabbing content out of a buffer that has unicode PR #966
- Added some plumbing for better memory management PR #958
- Fix
checkoutOptions
inStash#apply
PR #956 - Fixed install when there is a space in the username on windows PR #951
- Bump to [email protected] PR #952
- Fixed crash when calculating diff via
ConvenientPatch
PR #945
- Removed callback throttling due to segmentation faults. Will be implemented later. PR #943
- Added
Repository#mergeheadForeach
PR #937 - Improved speed of all callbacks dramatically PR #932
- Fixed
Merge.merge
docs to show it takes in anAnnotatedCommit
and not aCommit
PR #935 - Fixed unicode in
Diff.blobToBuffer
getting corrupted PR #935 - Fixed fetching/pulling to bitbucket in versions > v5.6 of node PR #942
- Added
Repository#checkoutRef
PR #891 Repository#createCommitOnHead
no longer dies if the repo is empty PR #927- Fixed memory leak in
Patch#convenientFromDiff
PR #930 - Generated files now have a header comment indicating that they are generated PR #924
- Fixed http parsing errors in Node 5.6 PR #931
- Fixed
Tree#walk
not returning the correct entries onend
PR #929
- Fixed crash when calculating a diff PR #922
- Fixed an issue with return values getting randomly corrupted PR #923)
- Fixed callback out values in callbacks from C++. This affects any NodeGit call that is passed a callback as an option PR #921
- Fixed an issue with building the debug version of NodeGit on windows PR #918
- Fixed an issue where initializing NodeGit would sometimes seg fault. Also fixed an error when fetching concurrently PR #912
- Fixed an issue where when staging lines if the index is locked NodeGit just nuked it PR #906
- Fixed diff calculation when staging lines/hunks PR #906
- Fixed seg-fault in linux that happens when getting the diff of very small files PR #908
- Fixed
RevWalk#fastWalk
dying when an error happens in libgit2 PR #909
- Change
Revert.commit
andRevert.revert
to by async. PR #887 - Added
RevWalk#fileHistoryWalk
for a faster way to retrieve history for a specific file. PR #889
- Clean mutexes are part of GC. No longer leaves processes running after the script ends PR #880
- Increased the performance of
ConvenientPatch
by an order of magnitude PR #883
ConvenientPatch
ConvenientPatch
does not have apatch
or adelta
property associated with it, if you were using thedelta
, please just use prototype methodsoldFile
,newFile
, andStatus
, which are stripped directly from thedelta
.ConvenientPatch#hunks
returns a promise with an array ofConvenientHunks
.
ConvenientHunk
ConvenientHunk
does not have an exposed diffHunk associated with it, but does have the same members as diffHunk:size()
: number of lines in the hunkoldStart()
: old starting positionoldLines()
: number of lines in old filenewStart()
: new starting positionnewLines()
: number of lines in new fileheaderLen()
: length of headerheader()
: returns the header of the hunklines()
: returns a promise containingDiffLines
, notConvenientLines
.
DiffLine
DiffLine
now contains the membersrawContent()
andcontent()
.rawContent()
contains the unformatted content of the line. This is no longer a string from the line to the end of the file.content()
contains the utf8 formatted content of the line.
- Thread safe fix to stop crashing on releasing mutexes PR #876
Submodule#setIgnore
,Submodule#setUpdate
, andSubmodule#setUrl
are now all async.Submodule#status
andSubmodule#location
are now available PR #867 and PR #870Remote#defaultBranch
is now available PR #872Repository#mergeBranches
now takes in aMergeOptions
parameter PR #873- Remove a NodeGit specific hack to make
Index#addAll
faster since that is fixed in libgit2 PR #875)
- Thread safe locking has been added and currently is defaulted to off. Use
NodeGit.enableThreadSafety()
to turn on - NodeGit no longer requires a specific Promise object from the
nodegit-promise
library to be passed in. You can now use whatever you want! Repository#stageFilemode
now can accept an array of strings for files to updateSubmodule#addToIndex
,Submodule#addFinalize
,Submodule#init
,Submodule#open
,Submodule#sync
, andSubmodule#update
are now all async methodss
- Bumped openssl to 1.0.2e to fix issues with prebuilts on linux platforms
- Fixed a bug with GIT_ITER_OVER breaking rebase and other iterative methods
- Make GraphDescendentOf asynchronous
- Fixed line length of utf8 stringss
- Fixed a bug where manually building for vanilla node would fail without explicitly setting the target
- Fixed a bug where manually building on windows would fail (if unable to download a prebuilt binary)
- Fixed Treebuilder.create to have an optional source
- Added Repository.getSubmoduleNames
- Added Submodule.Foreach
- Added file mode staging
- Added a fast rev walk to do the rev walk in C++ and bubble the result up to JS
- Updated to latest libgit2
- Updated to latest openssl
- Updated to latest nodegit-promise
- Removed c++11 dependency
- Fixed weirdness in lifecycle scripts
- Added downloading prebuilt binaries for electron
Closed issues:
-
Error: Module did not self-register #593
-
A guide on how to create a new branch, switch to it and delete it. #588
-
A way to get "gone" branches #583
-
Missing documentation pages for BranchIterator and NodeIterator #581
-
ELIFECYCLE error on
npm rebuild
#578 -
npm rebuild fails (lifecycleScripts/clean should not delete lifecycleScripts!) #576
-
Unable to compile and install v0.4.0 on Windows #575
-
Doesn't work with Electron #574
-
Doesn't work with io.js 2.x #573
-
Getting an exception during a fetchAll in defaultSignature in repository.js #572
-
tree_entry path function not working when calling getEntry with a path including subdir #570
-
Build is broken on windows #565
-
Cloning git sub modules using "nodegit" npm module #560
-
How to get remote latest commit? #559
-
npm install fails for nw.js #558
-
nodegit and nw.js #557
Merged pull requests:
-
Fix for issue #591. TreeEntry.path() throws when TreeEntry came from Tree.entries() #592 (tomruggs)
-
Add
git\_index\_conflict\_get
and test #586 (johnhaley81) -
Bump nan #584 (johnhaley81)
-
Fix CI false positives #582 (johnhaley81)
-
Check for existence to avoid throwing an error when there is no default signature #577 (tomruggs)
-
Fix path function in tree_entry (fix for issue #570) #571 (jfremy)
Closed issues:
-
Error installing nodegit as dependency of an atom-shell app #556
-
New version of nan is breaking compile #554
-
Install error from openssl #551
-
How to get Tag instance by tag_name? #543
-
ELIFECYCLE Error on install #540
-
Remote.delete returns -3 #539
-
Repository.init should accept boolean value for is_bare #538
-
getStatus hangs #537
-
Unable to compile or install with npm install nodegit #536
-
options
not reusable, nodegit destroys it #533 -
'Error: 'directory' exists and is not an empty directory' (but it doesn't exist) #530
-
hey !:-) problem with Branch.iteratorNew (support) #528
-
hey !:-) problem with Branch.iteratorNew #527
-
hey !:-) problem with Branch.iteratorNew #526
-
hey !:-) problem with Branch.iteratorNew #525
-
Error: Reference 'refs/remotes/user/foo/HEAD' not found #523
-
Path issues windows #522
-
Issues on scientific linux 6.6 #521
-
It's looking for node-typ under
/Users/johnh/.node-gyp
#518 -
Not working with iojs #516
-
Cred.sshKeyNew not working: Too many redirects or authentication replays #511
-
Open a Repo from a subfolder #509
-
Create git-like CLI #508
-
Cannot create an instance of Packbuilder #507
-
Cannot find module '../build/Debug/nodegit' #506
-
Bug with oid implicit cast inside C++ #501
-
Failed to
require
on Ubuntu 12.04LTS #493 -
Enable
git\_config
#449 -
Pull example doesn't fully update the index #389
Merged pull requests:
-
There is an incompatibility with NaN 1.8.x, keeping 1.7.x for now. #552 (wiggzz)
-
This fixes polling sync promises in callbacks. #546 (johnhaley81)
-
Add get/set config string methods and tests #545 (johnhaley81)
-
Make
Remote.delete
async and return error messages correctly #544 (johnhaley81) -
Bump "nodegit-promise" version #542 (johnhaley81)
-
Introduced a new ConvenientLine class to wrap the lines returned from ConvenientHunk. #541 (bleathem)
-
Fix some things missed by the generating scripts #535 (johnhaley81)
-
Fix freeing a
GitOid
that was passed as a string #531 (johnhaley81) -
Lots of complaints of missing build/Debug/nodegit #520 (tbranyen)
-
Add
Graph.aheadBehind
and tests #517 (johnhaley81) -
Update to use libgit2 v0.22.2 #515 (johnhaley81)
-
Add
Repository.prototype.fetchheadForeach
and tests #514 (johnhaley81) -
Fix atom-shell build on windows #512 (johnhaley81)
-
Update Checkout and Merge #505 (orderedlist)
-
Revert "Guide navigation is currently confusing" #503 (thgaskell)
-
Add twitter username to README.md #498 (johnhaley81)
-
Fix symbolic reference handling in getReferences #496 (billt2006)
-
Enable
git\_stash\_foreach
#495 (johnhaley81) -
Add automatically generated change log file. #465 (skywinder)
Merged pull requests:
- Download all dev dependencies before build #491 (johnhaley81)
Closed issues:
- Amazon S3 CDN link is broken #482
Merged pull requests:
- Confirm builder exists before building #490 (johnhaley81)
Merged pull requests:
Closed issues:
-
Push #463
-
Suppress astyle errors #459
-
io.js support #447
-
Meteor: icon fonts not working (Resource interpreted as Font but transferred with MIME type text/html) #443
-
AnnotatedCommit.x listing as Annotated.commitX #437
-
fetchAll() fails unless a default signature is available #431
-
Question: Is there a certificateCheck option available for pushing to a remote repository? #420
-
Repository.open returns empty object #412
-
Missing documentation for Tree.walk() #411
-
comparing from 0.1.4 to 0.2.0 #410
-
Potential example issue in add-and-commit.js L45-48 #409
-
failed to install on ubuntu 14.04 #408
-
Return promises instead of nesting them #407
-
segfault when cloning from private BitBucket repo #406
-
Subtrees + custom error handling #400
-
How to use nodegit in atom shell ..... #393
-
Cannot create a new branch #391
-
Remove fixappveyor from clone tests #385
-
Commit isn't working #381
-
Rename combyne folder to templates #378
-
Cloning SSH repos seem to fail #372
-
Commit.getDiff is backwards? #368
-
List all files in repo (git ls-tree) #365
-
Checking out a branch #361
-
nodegit no longer builds in nwjs #360
-
Module install/build fails on Heroku #332
-
2 Step Authentication #323
Merged pull requests:
-
Rename
Annotated
toAnnotatedCommit
#485 (johnhaley81) -
Bump version to 0.3.0 #484 (johnhaley81)
-
Remove unneeded connect call from push example #483 (johnhaley81)
-
Fix trailing space in atom-shell windows install #480 (johnhaley81)
-
Fix atom-shell install on windows #479 (johnhaley81)
-
Updated API documentation link to work with NPM's markdown renderer. #477 (hughfdjackson)
-
Add option to
fetch
to prune the remote afterwards #476 (johnhaley81) -
Make index.addAll use status to increase performance #475 (maxkorp)
-
Add defaults to
Remote.prototype.push
#474 (johnhaley81) -
Fix
createCommitOnHead
#473 (johnhaley81) -
Move guides around to remove subindexes #472 (orderedlist)
-
Put
Remote.Push
on the remote prototype #470 (johnhaley81) -
Change Repository.prototype.setHead to be asynchronous #469 (jrbalsano)
-
Add checkoutBranch convenience method #466 (johnhaley81)
-
Don't assign enums to __proto__ #464 (orderedlist)
-
Fix push example #462 (johnhaley81)
-
Adds support for strarray in structs #461 (orderedlist)
-
Remote push #457 (mattyclarkson)
-
Include missing lib files in nodegit.js template #455 (orderedlist)
-
StrArray memory fix #454 (mattyclarkson)
-
Add Diff.prototype.findSimilar #452 (orderedlist)
-
Str array converter fix #451 (mattyclarkson)
-
Default signature always returns valid signature #450 (johnhaley81)
-
Status.byIndex and StatusEntry #448 (orderedlist)
-
Upgrade to nan 1.7.0 #446 (orderedlist)
-
Add examples #442 (johnhaley81)
-
Fix transfer callback stats #440 (johnhaley81)
-
Skip transfer progress test until it's fixed #433 (johnhaley81)
-
Change environment to default for upgraded service #428 (maxkorp)
-
Make the
git\_remote\_push
function async #427 (johnhaley81) -
Fix seg faults #424 (johnhaley81)
-
Clean up the persisting of props #423 (johnhaley81)
-
Fix indexEntry construction and blobFromBuffer #422 (orderedlist)
-
Allow for saving of props to an object #421 (johnhaley81)
-
Update jsdoc and ignore some methods #418 (orderedlist)
-
Fix callbacks with just return value and single payload #416 (johnhaley81)
-
Add
git\_reset
andgit\_reset\_default
#415 (johnhaley81) -
Enable
git\_index\_remove\_all
andgit\_index\_update\_all
#414 (johnhaley81) -
Added code for
git\_strarray
and enabledgit\_index\_add\_all
#413 (johnhaley81) -
Tree Entry getBlob() should also support the callback pattern. #405 (jeffwilcox)
-
Updated most dependencies to latest versions #394 (johnhaley81)
-
Index diffing #392 (orderedlist)
-
Update to libgit2 v0.22.1 #390 (johnhaley81)
-
Status and StatusList #374 (orderedlist)
-
Allow null trees on Diff.treeToTree #370 (orderedlist)
-
Checkout.head
initializes options if none are passed #367 (johnhaley81) -
INCLUDE_UNTRACKED option not working for diffs #366 (kmctown)
-
Updated fs-extra to 0.15.0 #363 (johnhaley81)
Merged pull requests:
- [WIP] Added in some diff functions from libgit2 #348 (johnhaley81)
Closed issues:
-
Lookup a non existent commit crashes the process. #353
-
Why node-git uses 90% rotated hexagon? #344
-
Needed pull example or help with code #341
-
Can't require nodegit without building it explicitly #340
-
Tracking down bugs #331
-
Document possible values of CloneOptions #330
-
Require generating error #329
-
Failed getting Banner #328
-
Documentation broken #327
-
Fetch doesn't seem to work with https urls. #322
Merged pull requests:
-
Commit.getParents working with merge commits #357 (bjornarg)
-
Fixed a typo in the debug build instruction. #356 (mcollina)
-
[WIP] Attempt at fixing appveyor #352 (johnhaley81)
-
Updated to nan 1.5.0 and fixed build errors #351 (johnhaley81)
-
Added checkout head method and tests #347 (johnhaley81)
-
bump devDependencies #346 (PeterDaveHello)
-
Update dependency node-pre-gyp to ~0.6 #345 (PeterDaveHello)
-
Update dependency fs-extra to ~0.14.0 #343 (PeterDaveHello)
-
Add Dependency badge in readme #342 (PeterDaveHello)
-
Fixed promise chain on install #339 (johnhaley81)
-
Use svg instead of png to get better image quality #337 (PeterDaveHello)
-
Update to libgit 0.21.4 #336 (johnhaley81)
-
Fix issue 333 #334 (johnhaley81)
Closed issues:
-
Fetch does not really fetch #314
-
Generate Missing Tests - Unable #313
-
Unable to get reference for HEAD #311
-
nodegit.Signature.now broken #306
-
current branch #305
-
Module fails to load #299
-
How to list all tags? #298
-
Building for ARM #292
-
Next release checklist #256
Merged pull requests:
-
Fixed fetch to be async and use callbacks #319 (johnhaley81)
-
Make contributing.md generic and add testing.md #318 (maxkorp)
-
Fix 313 generate scripts #315 (xinUmbralis)
-
Fix #311 #312 (johnhaley81)
-
move nodegit.js to a template to remove idefs dependency #303 (maxkorp)
-
Fixed tag list and added a test for it #300 (johnhaley81)
-
Convenience methods #297 (johnhaley81)
Merged pull requests:
- Moved some dependencies around to help the generate not fail #294 (johnhaley81)
Merged pull requests:
- Rewrite installer #293 (johnhaley81)
Closed issues:
-
Find some way to automatically generate a list of missing tests. #272
-
libgit2 creation methods have name collisions with internal V8 functions #271
-
Enums are still being manually assigned in javascript #268
-
We're using too many promise libraries #264
-
unable to resolve symbolic references #262
-
nodegit installation falls back when Python install dir contains spaces #261
-
Probe features #245
-
require('path').Repo.open(...) returns {} #241
-
RevWalk malloc error #239
-
OS X tests in Travis-CI #237
-
Fix RevWalk tests #236
-
Simple clone fails. #231
-
Create templates for remaining src and include files #230
-
Error: SSL is not supported by this copy of libgit2. #228
-
error while install nodegit latest version 0.1.4 #225
-
error while install nodegit latest version 0.1.4 #224
-
Did getReferences dissapear? #223
-
Again for #147 #218
-
Update documentation on nodegit.org #217
-
Stable = bump to 1.0 #215
-
Example on nodegit.com homepage is invalid #211
-
tree.diffWorkDir deprecated? #209
-
Abort on getRemotes #201
-
Generic Logging/Tracing mechanism #199
-
Repo#openIndex missing #197
-
Documentation on http://www.nodegit.org/ out of date #196
-
Remove extern "C" with 0.21 bump #193
-
CloneOptions documentation lacking #192
-
Webpage examples are not up to date #190
-
Automatically generate structs from types array #187
-
Error: connect ETIMEDOUT during install #179
-
TODO #177
-
Notes #176
-
Integration improvements. #171
Merged pull requests:
-
[WIP] Push example #288 (johnhaley81)
-
Add details-for-tree-entry #285 (johnhaley81)
-
update add-and-commit example to include new paths #283 (maxkorp)
-
Added osx for testing on Travis #281 (johnhaley81)
-
Added " around python path to help fix issues with spaces in path #280 (johnhaley81)
-
Tests for branch class #279 (johnhaley81)
-
[WIP] Update examples #276 (johnhaley81)
-
Added script to generate missing tests #274 (johnhaley81)
-
MSBUILD doesn't allow an array of size 0 #270 (johnhaley81)
-
voidcheck string pointers and reenable attr test #266 (maxkorp)
-
require --documentation flag to include text in idefs #265 (maxkorp)
-
Added ability for callbacks to poll promises for fulfillment value #260 (johnhaley81)
-
Generate nodegit from libgit2 docs and refactor descriptor #259 (johnhaley81)
-
Use Start-Process to start pageant.exe #254 (FeodorFitsner)
-
Added more git_cred methods #251 (johnhaley81)
-
Add revwalk.hide and revwalk.simplifyFirstParent #235 (tbranyen)
-
Add revwalk.hide and revwalk.simplifyFirstParent #234 (orderedlist)
-
Moved wrapper/copy out of include/src #233 (johnhaley81)
-
Removed ejs dependency #232 (johnhaley81)
-
WIP: Refactor source generation templates from EJS to Combyne #227 (tbranyen)
-
Test fixes #226 (johnhaley81)
-
Added new methods in checkout and repository #207 (tbranyen)
-
moved libgit2 gyp to separate dir #184 (deepak1556)
Closed issues:
-
Redis Backend #173
-
using "Branch" object results in "undefined" error => branch.cc missing from binding.gyp? #166
-
Windows: Failure on install #158
-
Can't install v0.1.2 under OSX #155
Merged pull requests:
-
Fixed: "ReferenceError: error is not defined" #169 (danyshaanan)
Merged pull requests:
Closed issues:
-
gyp ERR cannot find -lgit2 #150
-
Read file from git server #145
-
"emulate git log" example error #144
-
repo.workdir() crashes (SIGSEGV) on a bare repo #128
-
How to create Branch using the API? #124
-
'npm run-script gen && npm install' on Ubuntu 13.04 #122
-
Error while installing Nodegit 0.1.0 #120
-
Question: How would I implement the equivalent of
git status
? #117 -
Sync versions of all the methods #115
-
Tick version # #107
-
Windows support #71
-
Create test for history with merge commits #64
Merged pull requests:
-
Fixed OSX Directions #143 (nickpoorman)
Closed issues:
-
Misleading Readme #138
-
Cannot find module './build/Debug/nodegit' #137
-
Support for Node 0.11+ #134
-
installer cant seem to find python #126
-
Cannot build when parent directory contains space(s) #123
-
question: how cvv8 is used? #118
-
question: gen.js does not generate wrapper.h and wrapper.cc #116
-
tree.diffIndex: pointer being freed was not allocated #112
-
Use as a dependency of another node project? #110
-
Segmentation faults with concurrent access? #104
-
tree.diffWorkDir #101
-
getReference passes unexpected object into callback #98
-
index.removeByPath stops execution #97
-
Missing example: commit to a local repo (i.e. git add, git commit) #96
-
Get contents of index entry? #94
-
Failure to Build nodegit at Commit 0aa9a3c120 on OS X 10.6.8 #92
-
TypeError: Cannot call method 'clone' of undefined #91
-
missing cstring #88
-
Installing fails - can't find vendor/libgit2/build #80
-
Improving JavaScript API #73
-
Using code-generation to generate #70
Merged pull requests:
-
Support for Node 0.11+ #135 (pierreinglebert)
-
Added git_diff_delta_dup to git_diff_get_patch to fix a memory issue whe... #113 (kmctown)
-
Try requiring build/Debug/nodegit if build/Release/nodegit wasn't found. #108 (papandreou)
-
Updated v0.18.0.json to make the index and DiffOptions arguments in Inde... #106 (kmctown)
-
Duplicate git_error struct before passing it on #105 (papandreou)
-
Changed v0.18.0.json so diffWorkDir DiffOptions argument is optional. Ad... #103 (kmctown)
-
new add-and-commit.js and remove-and-commit.js examples #99 (dcolens)
-
Add missing fields to index entry #95 (papandreou)
-
Made the tests pass and making each test self-contained #90 (FrozenCow)
-
Add system dependencies for OSX install #82 (philschatz)
Closed issues:
-
The api in README is incorrect #87
-
message_encoding in documentation for Repo.createCommit #86
-
How to retrieve blob with binary content? #83
-
Incorrect commit oid's when aggregated from commit.history() #81
-
How do you list branches in repo? #76
-
License? #74
-
Nested walks scatter memory and cause SEGFAULTS #72
-
feature request: Provide fileMode / getType method on tree entries #67
-
Document DiffList #66
-
Procedure for moving development to nodegit/nodegit #55
-
Cannot install on OSX #49
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
-
incomplete error reporting #57
-
Segmentation Fault in raw-commit.js #56
-
Another Mac OSX install fail #53
-
unit tests broken in travis-ci #52
-
"Image not found" with require("nodegit") on Mac OS X #51
-
Cannot Compile on 0.8.* #47
-
No suitable image found. #46
-
Fails to require module on latest node version #43
-
Compilation error node 0.6.1 #32
-
commit.history work like slice #17
-
Sync and Async methods #16
-
Comment all code methods #1
Closed issues:
-
pass through python flag to node-gyp #54
-
update package.json #28
-
Rewrite Notes #27
-
Tree each method is synchronous #15
Closed issues:
-
Unable to load shared library #39
-
Expand Convenience Unit Tests #38
-
repo has no method 'branch' #35
-
update for node 0.5.9 #29
Merged pull requests:
Closed issues:
Merged pull requests:
Closed issues:
-
repo.branch fails on empty repo #22
-
example/convenience-repo.js errors #21
-
Branch history each method is asynchronous #11
Closed issues:
* This Change Log was automatically generated by github_changelog_generator