Skip to content
Open

Jch #2105

Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
fb78702
refs: avoid "too many arguments"
gitster Aug 6, 2024
becacd2
cat-file: avoid "too many arguments"
gitster Aug 6, 2024
2446e8f
notes: avoid "too many arguments"
gitster Aug 6, 2024
6c8ee88
miscellaneous: avoid "too many arguments"
gitster Aug 6, 2024
1e77bf0
packfile: move sizep computation
peff Aug 23, 2024
117addc
packfile: allow content-limit for cat-file
peff Aug 23, 2024
b2df0c0
packfile: fix off-by-one in content_limit comparison
Aug 23, 2024
a5f683f
packfile: inline cache_or_unpack_entry
Aug 23, 2024
98521d6
cat-file: use delta_base_cache entries directly
Aug 23, 2024
28402bc
packfile: packed_object_info avoids packed_to_object_type
Aug 23, 2024
7d4e4d5
object_info: content_limit only applies to blobs
Aug 23, 2024
489810f
cat-file: batch-command uses content_limit
Aug 23, 2024
1732dda
cat-file: batch_write: use size_t for length
Aug 23, 2024
f043683
cat-file: use writev(2) if available
Aug 23, 2024
31c5b4b
version: refactor strbuf_sanitize()
chriscool Sep 10, 2024
8afd0ee
strbuf: refactor strbuf_trim_trailing_ch()
chriscool Sep 10, 2024
3cb155a
Add 'promisor-remote' capability to protocol v2
chriscool Sep 10, 2024
bc0c4e1
promisor-remote: check advertised name or URL
chriscool Sep 10, 2024
82d283c
t7500: make each piece more independent
gitster Oct 14, 2024
dbafaff
config: values of pathname type can be prefixed with :(optional)
gitster Oct 14, 2024
2da08f2
parseopt: values of pathname type can be prefixed with :(optional)
gitster Oct 14, 2024
bed4d80
builtin/ls-remote: plug leaking server options
pks-t Oct 21, 2024
bfac141
t/helper: fix leaks in "reach" test tool
pks-t Oct 21, 2024
f4bb632
grep: fix leak in `grep_splice_or()`
pks-t Oct 21, 2024
4042f03
builtin/grep: fix leak with `--max-count=0`
pks-t Oct 21, 2024
ab28bc8
revision: fix leaking bloom filters
pks-t Oct 21, 2024
27a1c1f
diff-lib: fix leaking diffopts in `do_diff_cache()`
pks-t Oct 21, 2024
c0a1026
pretty: clear signature check
pks-t Oct 21, 2024
5ca4de4
upload-pack: fix leaking URI protocols
pks-t Oct 21, 2024
27164f7
builtin/commit: fix leaking change data contents
pks-t Oct 21, 2024
ecbb58e
trailer: fix leaking trailer values
pks-t Oct 21, 2024
9d0482d
trailer: fix leaking strbufs when formatting trailers
pks-t Oct 21, 2024
06d6581
builtin/commit: fix leaking cleanup config
pks-t Oct 21, 2024
7c66167
transport-helper: fix leaking import/export marks
pks-t Oct 21, 2024
8eded2f
builtin/tag: fix leaking key ID on failure to sign
pks-t Oct 21, 2024
9a2c5b0
combine-diff: fix leaking lost lines
pks-t Oct 21, 2024
8977bcf
dir: release untracked cache data
pks-t Oct 21, 2024
1fe066c
sparse-index: correctly free EWAH contents
pks-t Oct 21, 2024
a4a3b8c
t/helper: stop re-initialization of `the_repository`
pks-t Oct 21, 2024
44cbc97
t/helper: fix leaking buffer in "dump-untracked-cache"
pks-t Oct 21, 2024
e0e970d
dir: fix leak when parsing "status.showUntrackedFiles"
pks-t Oct 21, 2024
3ec42f3
builtin/merge: release outbut buffer after performing merge
pks-t Oct 21, 2024
931847a
list-objects-filter-options: work around reported leak on error
pks-t Oct 21, 2024
e6e6315
reftable/system: move "dir.h" to its only user
pks-t Oct 23, 2024
ac90e9f
reftable: explicitly handle hash format IDs
pks-t Oct 23, 2024
da2d199
reftable/system: stop depending on "hash.h"
pks-t Oct 23, 2024
3c58a50
reftable/stack: stop using `fsync_component()` directly
pks-t Oct 23, 2024
3f5e8d2
reftable/system: provide thin wrapper for tempfile subsystem
pks-t Oct 23, 2024
ec282c1
reftable/stack: drop only use of `get_locked_file_path()`
pks-t Oct 23, 2024
3740325
reftable/system: provide thin wrapper for lockfile subsystem
pks-t Oct 23, 2024
ae0f757
compat/mingw: support POSIX semantics for atomic renames
pks-t Oct 27, 2024
0142990
show-index: fix uninitialized hash function
quanta-kt Oct 26, 2024
2be7127
Documentation/git-bundle.txt: mention full backup example
LemmingAvalanche Oct 29, 2024
4f68a40
Documentation/git-bundle.txt: mention --all in spec. refs
LemmingAvalanche Oct 29, 2024
c4ac5fa
Documentation/git-bundle.txt: discuss naïve backups
LemmingAvalanche Oct 29, 2024
fcae55a
fetch-pack: refactor packet writing
calvin-wan-google Oct 28, 2024
9ddf78d
fetch-pack: move fetch initialization
calvin-wan-google Oct 28, 2024
bc52916
serve: advertise object-info feature
calvin-wan-google Oct 28, 2024
8c4368d
transport: add client support for object-info
calvin-wan-google Oct 28, 2024
f1ffe74
cat-file: add declaration of variable i inside its for loop
peijianju Oct 28, 2024
999bed8
cat-file: add remote-object-info to batch-command
peijianju Oct 28, 2024
d9b67c3
path-walk: introduce an object walk by path
derrickstolee Oct 31, 2024
44425c4
test-lib-functions: add test_cmp_sorted
derrickstolee Oct 31, 2024
35e6cf9
t6601: add helper for testing path-walk API
derrickstolee Oct 31, 2024
ca51c2d
path-walk: allow consumer to specify object types
derrickstolee Oct 31, 2024
8fa5e62
path-walk: visit tags and cached objects
derrickstolee Oct 31, 2024
c99f26c
path-walk: mark trees and blobs as UNINTERESTING
derrickstolee Oct 31, 2024
d18caa1
Merge branch 'kn/arbitrary-suffixes' into jch
ttaylorr Nov 1, 2024
fbed493
Merge branch 'kn/ci-clang-format-tidy' into jch
ttaylorr Nov 1, 2024
46be1b3
Merge branch 'cw/config-extensions' into jch
ttaylorr Nov 1, 2024
1597170
Merge branch 'ps/upgrade-clar' into jch
ttaylorr Nov 1, 2024
5b107fa
###
ttaylorr Nov 1, 2024
ff12b90
Merge branch 'jk/left-right-bitmap' into jch
ttaylorr Nov 1, 2024
8f346e1
### match next
ttaylorr Nov 1, 2024
ce4ffbd
Merge branch 'ej/cat-file-remote-object-info' into jch
ttaylorr Nov 1, 2024
5215bb8
Merge branch 'ps/mingw-rename' into jch
ttaylorr Nov 1, 2024
5640c87
Merge branch 'ps/reftable-detach' into jch
ttaylorr Nov 1, 2024
7be0046
Merge branch 'cc/promisor-remote-capability' into jch
ttaylorr Nov 1, 2024
96e5742
Merge branch 'jc/too-many-arguments' into jch
ttaylorr Nov 1, 2024
04bc973
Merge branch 'ew/cat-file-optim' into jch
ttaylorr Nov 1, 2024
71cf160
Merge branch 'bc/drop-ancient-libcurl-and-perl' into jch
ttaylorr Nov 1, 2024
f0176fb
Merge branch 'jc/optional-path' into jch
ttaylorr Nov 1, 2024
ddedb0e
Merge branch 'ps/leakfixes-part-9' into jch
ttaylorr Nov 1, 2024
2f42bd7
Merge branch 'as/show-index-uninitialized-hash' into jch
ttaylorr Nov 1, 2024
c65c75b
Merge branch 'kh/bundle-docs' into jch
ttaylorr Nov 1, 2024
5212635
Merge branch 'ds/path-walk-1' into jch
ttaylorr Nov 1, 2024
515fd3a
Merge branch 'bc/ancient-ci' into jch
ttaylorr Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Issues of note:
- A POSIX-compliant shell is required to run some scripts needed
for everyday use (e.g. "bisect", "request-pull").

- "Perl" version 5.8.1 or later is needed to use some of the
- "Perl" version 5.26.0 or later is needed to use some of the
features (e.g. sending patches using "git send-email",
interacting with svn repositories with "git svn"). If you can
live without these, use NO_PERL. Note that recent releases of
Expand All @@ -129,17 +129,12 @@ Issues of note:
itself, e.g. Digest::MD5, File::Spec, File::Temp, Net::Domain,
Net::SMTP, and Time::HiRes.

- git-imap-send needs the OpenSSL library to talk IMAP over SSL if
you are using libcurl older than 7.34.0. Otherwise you can use
NO_OPENSSL without losing git-imap-send.

- "libcurl" library is used for fetching and pushing
repositories over http:// or https://, as well as by
git-imap-send if the curl version is >= 7.34.0. If you do
not need that functionality, use NO_CURL to build without
it.
git-imap-send. If you do not need that functionality,
use NO_CURL to build without it.

Git requires version "7.21.3" or later of "libcurl" to build
Git requires version "7.61.0" or later of "libcurl" to build
without NO_CURL. This version requirement may be bumped in
the future.

Expand Down
2 changes: 1 addition & 1 deletion contrib/diff-highlight/DiffHighlight.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package DiffHighlight;

use 5.008001;
require v5.26;
use warnings FATAL => 'all';
use strict;

Expand Down
2 changes: 1 addition & 1 deletion contrib/mw-to-git/Git/Mediawiki.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Git::Mediawiki;

use 5.008001;
require v5.26;
use strict;
use POSIX;
use Git;
Expand Down
2 changes: 1 addition & 1 deletion git-archimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ =head1 Devel Notes

=cut

use 5.008001;
require v5.26;
use strict;
use warnings;
use Getopt::Std;
Expand Down
98 changes: 0 additions & 98 deletions git-curl-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,104 +28,6 @@
* introduced, oldest first, in the official version of cURL library.
*/

/**
* CURL_SOCKOPT_OK was added in 7.21.5, released in April 2011.
*/
#if LIBCURL_VERSION_NUM < 0x071505
#define CURL_SOCKOPT_OK 0
#endif

/**
* CURLOPT_TCP_KEEPALIVE was added in 7.25.0, released in March 2012.
*/
#if LIBCURL_VERSION_NUM >= 0x071900
#define GITCURL_HAVE_CURLOPT_TCP_KEEPALIVE 1
#endif


/**
* CURLOPT_LOGIN_OPTIONS was added in 7.34.0, released in December
* 2013.
*
* If we start requiring 7.34.0 we might also be able to remove the
* code conditional on USE_CURL_FOR_IMAP_SEND in imap-send.c, see
* 1e16b255b95 (git-imap-send: use libcurl for implementation,
* 2014-11-09) and the check it added for "072200" in the Makefile.

*/
#if LIBCURL_VERSION_NUM >= 0x072200
#define GIT_CURL_HAVE_CURLOPT_LOGIN_OPTIONS 1
#endif

/**
* CURL_SSLVERSION_TLSv1_[012] was added in 7.34.0, released in
* December 2013.
*/
#if LIBCURL_VERSION_NUM >= 0x072200
#define GIT_CURL_HAVE_CURL_SSLVERSION_TLSv1_0
#endif

/**
* CURLOPT_PINNEDPUBLICKEY was added in 7.39.0, released in November
* 2014. CURLE_SSL_PINNEDPUBKEYNOTMATCH was added in that same version.
*/
#if LIBCURL_VERSION_NUM >= 0x072c00
#define GIT_CURL_HAVE_CURLOPT_PINNEDPUBLICKEY 1
#define GIT_CURL_HAVE_CURLE_SSL_PINNEDPUBKEYNOTMATCH 1
#endif

/**
* CURL_HTTP_VERSION_2 was added in 7.43.0, released in June 2015.
*
* The CURL_HTTP_VERSION_2 alias (but not CURL_HTTP_VERSION_2_0) has
* always been a macro, not an enum field (checked on curl version
* 7.78.0)
*/
#if LIBCURL_VERSION_NUM >= 0x072b00
#define GIT_CURL_HAVE_CURL_HTTP_VERSION_2 1
#endif

/**
* CURLSSLOPT_NO_REVOKE was added in 7.44.0, released in August 2015.
*
* The CURLSSLOPT_NO_REVOKE is, has always been a macro, not an enum
* field (checked on curl version 7.78.0)
*/
#if LIBCURL_VERSION_NUM >= 0x072c00
#define GIT_CURL_HAVE_CURLSSLOPT_NO_REVOKE 1
#endif

/**
* CURLOPT_PROXY_CAINFO was added in 7.52.0, released in August 2017.
*/
#if LIBCURL_VERSION_NUM >= 0x073400
#define GIT_CURL_HAVE_CURLOPT_PROXY_CAINFO 1
#endif

/**
* CURLOPT_PROXY_{KEYPASSWD,SSLCERT,SSLKEY} was added in 7.52.0,
* released in August 2017.
*/
#if LIBCURL_VERSION_NUM >= 0x073400
#define GIT_CURL_HAVE_CURLOPT_PROXY_KEYPASSWD 1
#endif

/**
* CURL_SSLVERSION_TLSv1_3 was added in 7.53.0, released in February
* 2017.
*/
#if LIBCURL_VERSION_NUM >= 0x073400
#define GIT_CURL_HAVE_CURL_SSLVERSION_TLSv1_3 1
#endif

/**
* CURLSSLSET_{NO_BACKENDS,OK,TOO_LATE,UNKNOWN_BACKEND} were added in
* 7.56.0, released in September 2017.
*/
#if LIBCURL_VERSION_NUM >= 0x073800
#define GIT_CURL_HAVE_CURLSSLSET_NO_BACKENDS
#endif

/**
* Versions before curl 7.66.0 (September 2019) required manually setting the
* transfer-encoding for a streaming POST; after that this is handled
Expand Down
2 changes: 1 addition & 1 deletion git-cvsexportcommit.perl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl

use 5.008001;
require v5.26;
use strict;
use warnings;
use Getopt::Std;
Expand Down
2 changes: 1 addition & 1 deletion git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# The head revision is on branch "origin" by default.
# You can change that with the '-o' option.

use 5.008001;
require v5.26;
use strict;
use warnings;
use Getopt::Long;
Expand Down
2 changes: 1 addition & 1 deletion git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
####
####

use 5.008001;
require v5.26;
use strict;
use warnings;
use bytes;
Expand Down
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# and second line is the subject of the message.
#

use 5.008001;
require v5.26;
use strict;
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
use Getopt::Long;
Expand Down
2 changes: 1 addition & 1 deletion git-svn.perl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# Copyright (C) 2006, Eric Wong <[email protected]>
# License: GPL v2 or later
use 5.008001;
require v5.26;
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
use strict;
use vars qw/ $AUTHOR $VERSION
Expand Down
6 changes: 3 additions & 3 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# This program is licensed under the GPLv2

use 5.008001;
require v5.26;
use strict;
use warnings;
# handle ACL in file access tests
Expand Down Expand Up @@ -1188,7 +1188,7 @@ sub evaluate_and_validate_params {
if ($search_use_regexp) {
$search_regexp = $searchtext;
if (!eval { qr/$search_regexp/; 1; }) {
(my $error = $@) =~ s/ at \S+ line \d+.*\n?//;
my $error = $@ =~ s/ at \S+ line \d+.*\n?//r;
die_error(400, "Invalid search regexp '$search_regexp'",
esc_html($error));
}
Expand Down Expand Up @@ -2700,7 +2700,7 @@ sub git_cmd {
# Try to avoid using this function wherever possible.
sub quote_command {
return join(' ',
map { my $a = $_; $a =~ s/(['!])/'\\$1'/g; "'$a'" } @_ );
map { my $a = $_ =~ s/(['!])/'\\$1'/gr; "'$a'" } @_ );
}

# get HEAD ref of given project as hash
Expand Down
Loading