db27dca5
|
25
|
die(_("Remote with no URL"));
|
48de3158
|
61
|
warning(_("promisor remote name cannot begin with '/': %s"),
|
48de3158
|
63
|
return NULL;
|
faf2abf4
|
93
|
previous->next = r->next;
|
4ca9474e
|
108
|
return git_config_string(&core_partial_clone_filter_default,
|
fa3d1b63
|
139
|
return 0;
|
9e27beaa
|
202
|
static int remove_fetched_oids(struct repository *repo,
|
9e27beaa
|
206
|
int i, remaining_nr = 0;
|
9e27beaa
|
207
|
int *remaining = xcalloc(oid_nr, sizeof(*remaining));
|
9e27beaa
|
208
|
struct object_id *old_oids = *oids;
|
9e27beaa
|
211
|
for (i = 0; i < oid_nr; i++)
|
9e27beaa
|
212
|
if (oid_object_info_extended(repo, &old_oids[i], NULL,
|
9e27beaa
|
214
|
remaining[i] = 1;
|
9e27beaa
|
215
|
remaining_nr++;
|
9e27beaa
|
218
|
if (remaining_nr) {
|
9e27beaa
|
219
|
int j = 0;
|
9e27beaa
|
220
|
new_oids = xcalloc(remaining_nr, sizeof(*new_oids));
|
9e27beaa
|
221
|
for (i = 0; i < oid_nr; i++)
|
9e27beaa
|
222
|
if (remaining[i])
|
9e27beaa
|
223
|
oidcpy(&new_oids[j++], &old_oids[i]);
|
9e27beaa
|
224
|
*oids = new_oids;
|
9e27beaa
|
225
|
if (to_free)
|
9e27beaa
|
226
|
free(old_oids);
|
9e27beaa
|
229
|
free(remaining);
|
9e27beaa
|
231
|
return remaining_nr;
|
9e27beaa
|
248
|
if (remaining_nr == 1)
|
9e27beaa
|
249
|
continue;
|
9e27beaa
|
250
|
remaining_nr = remove_fetched_oids(repo, &remaining_oids,
|
9e27beaa
|
252
|
if (remaining_nr) {
|
9e27beaa
|
253
|
to_free = 1;
|
9e27beaa
|
254
|
continue;
|
9e27beaa
|
262
|
free(remaining_oids);
|
Ævar Arnfjörð Bjarmason
|
b4f207f3
|
env--helper: new undocumented builtin wrapping git_env_*()
|
Ævar Arnfjörð Bjarmason
|
2e43cd4c
|
config.c: refactor die_bad_number() to not call gettext() early
|
Christian Couder
|
fa3d1b63
|
promisor-remote: parse remote.*.partialclonefilter
|
Christian Couder
|
faf2abf4
|
promisor-remote: use repository_format_partial_clone
|
Christian Couder
|
4ca9474e
|
Move core_partial_clone_filter_default to promisor-remote.c
|
Christian Couder
|
db27dca5
|
Remove fetch-object.{c,h} in favor of promisor-remote.{c,h}
|
Christian Couder
|
48de3158
|
Add initial support for many promisor remotes
|
Christian Couder
|
9e27beaa
|
promisor-remote: implement promisor_remote_get_direct()
|
Christian Couder
|
b14ed5ad
|
Use promisor_remote_get_direct() and has_promisor_remote()
|
Daniel Ferreira
|
9bd70db7
|
dir-iterator: add tests for dir-iterator API
|
Denton Liu
|
f39a9c65
|
remote: add --save-to-push option to git remote set-url
|
Derrick Stolee
|
0a01e977
|
repo-settings: create core.featureAdoptionRate setting
|
Derrick Stolee
|
c5c84f32
|
repo-settings: use index.version=4 by default
|
Derrick Stolee
|
3172404b
|
repo-settings: pack.useSparse=true
|
Dimitriy Ryazantcev
|
fb819691
|
l10n: localizable upload progress messages
|
Jonathan Tan
|
472fbef8
|
http-fetch: support fetching packfiles by URL
|
Jonathan Tan
|
820a5361
|
upload-pack: send part of packfile response as uri
|
Jonathan Tan
|
bf01639c
|
fetch-pack: support more than one pack lockfile
|
Jonathan Tan
|
a8d662e3
|
upload-pack: refactor reading of pack-objects out
|
Josh Steadmon
|
6da1f1a9
|
protocol: advertise multiple supported versions
|
Junio C Hamano
|
3d908bb8
|
Merge branch 'jt/fetch-cdn-offload' into pu
|
Martin Koegler
|
5efde212
|
zlib.c: use size_t for size
|
Matheus Tavares
|
655af733
|
dir-iterator: add flags parameter to dir_iterator_begin
|
Matheus Tavares
|
50e85c40
|
dir-iterator: refactor state machine model
|
Matheus Tavares
|
d95432d7
|
clone: use dir-iterator to avoid explicit dir traversal
|
Matheus Tavares
|
fbb4a33c
|
clone: extract function from copy_or_link_directory
|
Matheus Tavares
|
c40f077a
|
dir-iterator: use warning_errno when possible
|
Matthew DeVore
|
aa36553a
|
list-objects-filter: make API easier to use
|
Matthew DeVore
|
1e43301f
|
list-objects-filter: implement composite filters
|
Matthew DeVore
|
d3d10e56
|
list-objects-filter-options: move error check up
|
Matthew DeVore
|
9b93d269
|
list-objects-filter-options: make filter_spec a string_list
|
Nguyễn Thái Ngọc Duy
|
35d7cdbe
|
sha1-file.c: remove the_repo from read_object_with_reference()
|
Nguyễn Thái Ngọc Duy
|
3fe87a7f
|
match-trees.c: remove the_repo from shift_tree*()
|
Nguyễn Thái Ngọc Duy
|
47f956bd
|
tree-walk.c: remove the_repo from get_tree_entry()
|
a5e5f399
|
415
|
die(_("'%s' cannot be used with updating paths"),
|
a5e5f399
|
425
|
die(_("'%s' cannot be used with %s"),
|
183fb44f
|
433
|
die(_("neither '%s' or '%s' is specified"),
|
183fb44f
|
437
|
die(_("'%s' must be used when '%s' is not specified"),
|
e3ddd3b5
|
442
|
die(_("'%s' or '%s' cannot be used with %s"),
|
e3ddd3b5
|
447
|
die(_("'%s' or '%s' cannot be used with %s"),
|
183fb44f
|
456
|
patch_mode = "--patch=reset";
|
2f0896ec
|
460
|
BUG("either flag must have been set, worktree=%d, index=%d",
|
183fb44f
|
536
|
die(_("unable to write new index file"));
|
1806c29f
|
656
|
BUG("'switch --orphan' should never accept a commit as starting point");
|
1806c29f
|
1039
|
BUG("'switch --orphan' should never accept a commit as starting point");
|
5c06e269
|
1176
|
die(_("only one reference expected"));
|
7968bef0
|
1300
|
const char *ref = to_free;
|
7968bef0
|
1302
|
if (skip_prefix(ref, "refs/tags/", &ref))
|
7968bef0
|
1303
|
die(_("a branch is expected, got tag '%s'"), ref);
|
7968bef0
|
1304
|
if (skip_prefix(ref, "refs/remotes/", &ref))
|
7968bef0
|
1305
|
die(_("a branch is expected, got remote branch '%s'"), ref);
|
7968bef0
|
1306
|
die(_("a branch is expected, got '%s'"), ref);
|
7968bef0
|
1314
|
die(_("a branch is expected, got '%s'"), branch_info->name);
|
c45f0f52
|
1329
|
die(_("cannot switch branch in the middle of an am session\n"
|
c45f0f52
|
1333
|
die(_("cannot switch branch while rebasing\n"
|
c45f0f52
|
1337
|
die(_("cannot switch branch while cherry-picking\n"
|
c45f0f52
|
1341
|
die(_("cannot switch branch while reverting\n"
|
d16dc428
|
1345
|
warning(_("you are switching branch while bisecting"));
|
3ec37ad1
|
1370
|
die(_("'%s' cannot be used with '%s'"), "--discard-changes", "--merge");
|
c9c935f6
|
1508
|
BUG("make up your mind, you need to take _something_");
|
183fb44f
|
1540
|
opts->checkout_index = 0;
|
183fb44f
|
1550
|
BUG("these flags should be non-negative by now");
|
c9c935f6
|
1611
|
die(_("could not resolve %s"), opts->from_treeish);
|
3b2385cf
|
2840
|
static void jw_object_untracked_cache_dir(struct json_writer *jw,
|
3b2385cf
|
2845
|
jw_object_bool(jw, "valid", ucd->valid);
|
3b2385cf
|
2846
|
jw_object_bool(jw, "check-only", ucd->check_only);
|
3b2385cf
|
2847
|
jw_object_stat_data(jw, "stat", &ucd->stat_data);
|
3b2385cf
|
2848
|
jw_object_string(jw, "exclude-oid", oid_to_hex(&ucd->exclude_oid));
|
3b2385cf
|
2849
|
jw_object_inline_begin_array(jw, "untracked");
|
3b2385cf
|
2850
|
for (i = 0; i < ucd->untracked_nr; i++)
|
3b2385cf
|
2851
|
jw_array_string(jw, ucd->untracked[i]);
|
3b2385cf
|
2852
|
jw_end(jw);
|
3b2385cf
|
2854
|
jw_object_inline_begin_object(jw, "dirs");
|
3b2385cf
|
2855
|
for (i = 0; i < ucd->dirs_nr; i++) {
|
3b2385cf
|
2856
|
jw_object_inline_begin_object(jw, ucd->dirs[i]->name);
|
3b2385cf
|
2857
|
jw_object_untracked_cache_dir(jw, ucd->dirs[i]);
|
3b2385cf
|
2858
|
jw_end(jw);
|
3b2385cf
|
2860
|
jw_end(jw);
|
3b2385cf
|
2861
|
}
|
3b2385cf
|
2958
|
jw_object_inline_begin_object(jw, "root");
|
3b2385cf
|
2959
|
jw_object_untracked_cache_dir(jw, uc->root);
|
3b2385cf
|
2960
|
jw_end(jw);
|
8eeabe15
|
1752
|
ret = error(_("index uses %.4s extension, which we do not understand"),
|
ee70c128
|
1754
|
if (advice_unknown_index_extension) {
|
ee70c128
|
1755
|
warning(_("ignoring optional %.4s index extension"), ext);
|
ee70c128
|
1756
|
advise(_("This is likely due to the file having been written by a newer\n"
|
272b3f2a
|
2026
|
jw_object_true(jw, "assume_unchanged");
|
272b3f2a
|
2030
|
jw_object_true(jw, "skip_worktree");
|
272b3f2a
|
2032
|
jw_object_intmax(jw, "stage", ce_stage(ce));
|
f0f544da
|
2309
|
ieot = read_ieot_extension(istate, mmap, mmap_size, extension_offset);
|
f0f544da
|
3651
|
static struct index_entry_offset_table *read_ieot_extension(
|
f0f544da
|
3673
|
return do_read_ieot_extension(istate, index, extsize);
|
Barret Rhoden
|
1fc73384
|
blame: optionally track line fingerprints during fill_blame_origin()
|
Barret Rhoden
|
ae3f36de
|
blame: add the ability to ignore commits and their changes
|
Barret Rhoden
|
f93895f8
|
Move oidset_parse_file() to oidset.c
|
Barret Rhoden
|
a07a9776
|
blame: use the fingerprint heuristic to match ignored lines
|
Christian Couder
|
11510dec
|
t/helper: add test-oidmap.c
|
Denton Liu
|
07b2c0ea
|
config: learn the "onbranch:" includeIf condition
|
Denton Liu
|
526c03b5
|
rebase: refactor can_fast_forward into goto tower
|
Denton Liu
|
10572de1
|
rebase: fast-forward --onto in more cases
|
Derrick Stolee
|
ce1e4a10
|
midx: implement midx_repack()
|
Derrick Stolee
|
8434e85d
|
repack: refactor pack deletion for future use
|
Derrick Stolee
|
2af890bb
|
multi-pack-index: prepare 'repack' subcommand
|
Derrick Stolee
|
d01bf2e6
|
midx: refactor permutation logic and pack sorting
|
Derrick Stolee
|
1771be90
|
commit-graph: merge commit-graph chains
|
Derrick Stolee
|
c523035c
|
commit-graph: allow cross-alternate chains
|
Derrick Stolee
|
135a7123
|
commit-graph: add --split option to builtin
|
Derrick Stolee
|
6c622f9f
|
commit-graph: write commit-graph chains
|
Derrick Stolee
|
d4f4d60f
|
commit-graph: prepare for commit-graph chains
|
Derrick Stolee
|
19575c7c
|
multi-pack-index: implement 'expire' subcommand
|
Derrick Stolee
|
118bd570
|
commit-graph: add base graphs chunk
|
Derrick Stolee
|
3883c551
|
pull: add --[no-]show-forced-updates passthrough
|
Derrick Stolee
|
377444b4
|
fetch: warn about forced updates in branch listing
|
Derrick Stolee
|
5c84b339
|
commit-graph: load commit-graph chains
|
Derrick Stolee
|
cdbd70c4
|
fetch: add --[no-]show-forced-updates argument
|
Derrick Stolee
|
c2bc6e6a
|
commit-graph: create options for split files
|
Jeff Hostetler
|
0a53561a
|
status: warn when a/b calculation takes too long
|
Jeff King
|
d0229abd
|
object: convert lookup_object() to use object_id
|
Jeff King
|
62b89d43
|
upload-pack: rename a "sha1" variable to "oid"
|
Jeff King
|
bdbdf42f
|
delta-islands: respect progress flag
|
Jeff King
|
0ebbcf70
|
object: convert lookup_unknown_object() to use object_id
|
Jeff King
|
d2bc62b1
|
pack-bitmap: convert khash_sha1 maps into kh_oid_map
|
Jeff King
|
05805d74
|
pack-bitmap-write: convert some helpers to use object_id
|
Johannes Schindelin
|
08e04506
|
kwset: allow building with GCC 8
|
Jonathan Nieder
|
ee70c128
|
index: offer advice for unknown index extensions
|
Junio C Hamano
|
0a66ac47
|
Merge branch 'cc/test-oidmap' into jch
|
Matthew DeVore
|
28438e84
|
ref-filter: sort detached HEAD lines firstly
|
Nguyễn Thái Ngọc Duy
|
183fb44f
|
restore: add --worktree and --staged
|
Nguyễn Thái Ngọc Duy
|
c45f0f52
|
switch: reject if some operation is in progress
|
Nguyễn Thái Ngọc Duy
|
7968bef0
|
switch: only allow explicit detached HEAD
|
Nguyễn Thái Ngọc Duy
|
5c06e269
|
switch: stop accepting pathspec
|
Nguyễn Thái Ngọc Duy
|
1806c29f
|
switch: make --orphan switch to an empty tree
|
Nguyễn Thái Ngọc Duy
|
2f0896ec
|
restore: support --patch
|
Nguyễn Thái Ngọc Duy
|
e3ddd3b5
|
restore: reject invalid combinations with --staged
|
Nguyễn Thái Ngọc Duy
|
a5e5f399
|
restore: replace --force with --ignore-unmerged
|
Nguyễn Thái Ngọc Duy
|
fd335a21
|
cache-tree.c: dump "TREE" extension as json
|
Nguyễn Thái Ngọc Duy
|
272b3f2a
|
ls-files: add --json to dump the index
|
Nguyễn Thái Ngọc Duy
|
3ec37ad1
|
switch: add --discard-changes
|
Nguyễn Thái Ngọc Duy
|
3b2385cf
|
dir.c: dump "UNTR" extension as json
|
Nguyễn Thái Ngọc Duy
|
1f825794
|
split-index.c: dump "link" extension as json
|
Nguyễn Thái Ngọc Duy
|
f0f544da
|
read-cache.c: dump "IEOT" extension as json
|
Nguyễn Thái Ngọc Duy
|
5a88583b
|
fetch-pack: print all relevant supported capabilities with -v -v
|
Nguyễn Thái Ngọc Duy
|
8eeabe15
|
read-cache.c: dump common extension info in json
|
Nguyễn Thái Ngọc Duy
|
c9c935f6
|
restore: take tree-ish from --source option instead
|
Nguyễn Thái Ngọc Duy
|
0778b293
|
fetch-pack: move capability names out of i18n strings
|
Nguyễn Thái Ngọc Duy
|
d16dc428
|
switch: allow to switch in the middle of bisect
|
Phillip Wood
|
30652115
|
status: do not report errors in sequencer/todo
|
Phillip Wood
|
d559f502
|
rebase --abort/--quit: cleanup refs/rewritten
|
Phillip Wood
|
37e9ee5c
|
sequencer: return errors from sequencer_remove_state()
|
Rohit Ashiwal
|
516dc810
|
sequencer: add advice for revert
|
Rohit Ashiwal
|
3fa2e2d8
|
cherry-pick/revert: add --skip option
|
SZEDER Gábor
|
fbe464c0
|
progress: use term_clear_line()
|
SZEDER Gábor
|
cd1096b2
|
pager: add a helper function to clear the last line in the terminal
|
Denton Liu
|
13cdf780
|
format-patch: teach format.notes config option
|
Elijah Newren
|
e80001f8
|
fast-export: do automatic reencoding of commit messages only if requested
|
Elijah Newren
|
ccbfc96d
|
fast-export: avoid stripping encoding header if we cannot reencode
|
Elijah Newren
|
3edfcc65
|
fast-import: support 'encoding' commit header
|
Emily Shaffer
|
de99eb0c
|
grep: fail if call could output and name is null
|
Eric Wong
|
f4f476b6
|
update-server-info: avoid needless overwrites
|
Jeff King
|
97387c8b
|
am: read interactive input from stdin
|
Jeff King
|
6e7baf24
|
am: drop tty requirement for --interactive
|
Jeff King
|
76a7bc09
|
cmd_{read,write}_tree: rename "unused" variable that is used
|
Jeff King
|
7bd9631b
|
read-cache: drop unused parameter from threaded load
|
Johannes Schindelin
|
7877ac3d
|
bisect--helper: verify HEAD could be parsed before continuing
|
Matthew DeVore
|
5c03bc8b
|
list-objects-filter-options: error is localizeable
|
Nguyễn Thái Ngọc Duy
|
f3f8311e
|
merge: add --quit
|
Nguyễn Thái Ngọc Duy
|
1de16aec
|
worktree add: sanitize worktree names
|