Compare

7904764e294334fdac0bfd2f797b0dac0423da93..a018953688f1b10bddf91bff8747068f5f4746a4

Git 2.56

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano <gitster@pobox.com> · 2026-09-28 04:20 UTC

Browse files
180 files changed, +19907 −3099
modified .github/workflows/main.yml
@@ -5,18 +5,20 @@ on: [push, pull_request]
5 5 env:
6 6 DEVELOPER: 1
7 7
8 - # If more than one workflow run is triggered for the very same commit hash
9 - # (which happens when multiple branches pointing to the same commit), only
10 - # the first one is allowed to run, the second will be kept in the "queued"
11 - # state. This allows a successful completion of the first run to be reused
12 - # in the second run via the `skip-if-redundant` logic in the `config` job.
8 + # For pull requests, only the latest workflow run is allowed to proceed.
9 + # Older runs are canceled when a new revision is pushed.
13 10 #
14 - # The only caveat is that if a workflow run is triggered for the same commit
15 - # hash that another run is already being held, that latter run will be
16 - # canceled. For more details about the `concurrency` attribute, see:
11 + # For pushes, if more than one workflow run is triggered for the very same
12 + # commit hash (which happens when multiple branches point to the same commit),
13 + # only the first one is allowed to run. This allows a successful completion of
14 + # the first run to be reused in the second run via the `skip-if-redundant`
15 + # logic in the `config` job.
16 + #
17 + # For more details about the `concurrency` attribute, see:
17 18 # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
18 19 concurrency:
19 - group: ${{ github.sha }}
20 + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
21 + cancel-in-progress: ${{ github.event_name == 'pull_request' }}
20 22
21 23 jobs:
22 24 ci-config:
@@ -114,6 +116,30 @@ jobs:
114 116 steps:
115 117 - uses: actions/checkout@v6
116 118 - uses: git-for-windows/setup-git-for-windows-sdk@v2
119 + - name: Install GCC-compatible Rust target
120 + shell: bash
121 + run: |
122 + # The hosted Windows runners ship a rustup-managed Rust whose
123 + # default toolchain targets the MSVC ABI. That produces a
124 + # `gitcore.lib` which the MinGW GCC used by the rest of the
125 + # build cannot link. Install the precompiled `std` for a
126 + # GCC-compatible target triple matching the MSYS2 subsystem;
127 + # the Makefile selects the same triple via $(MSYSTEM) and
128 + # passes it to `cargo build --target`.
129 + case "$MSYSTEM" in
130 + CLANGARM64) target=aarch64-pc-windows-gnullvm ;;
131 + CLANG64) target=x86_64-pc-windows-gnullvm ;;
132 + CLANG32) target=i686-pc-windows-gnullvm ;;
133 + UCRT64) target=x86_64-pc-windows-gnu ;;
134 + MINGW64) target=x86_64-pc-windows-gnu ;;
135 + MINGW32) target=i686-pc-windows-gnu ;;
136 + *) echo "::error::Unsupported MSYSTEM: $MSYSTEM"; exit 1 ;;
137 + esac &&
138 + rustup target add "$target" &&
139 +
140 + # Ensure that cargo.exe is found even with the minimal SDK's restricted PATH
141 + CARGO="$(type -p cargo.exe)" &&
142 + echo "export PATH=\$PATH:${CARGO%/cargo.exe}" >>/etc/profile
117 143 - name: build
118 144 shell: bash
119 145 env:
@@ -411,9 +437,9 @@ jobs:
411 437 # A RHEL 8 compatible distro. Supported until 2029-05-31.
412 438 - jobname: almalinux-8
413 439 image: almalinux:8
414 - # Supported until 2026-08-31.
415 - - jobname: debian-11
416 - image: debian:11
440 + # Supported until 2028-06-30.
441 + - jobname: debian-12
442 + image: debian:12
417 443 env:
418 444 jobname: ${{matrix.vector.jobname}}
419 445 CC: ${{matrix.vector.cc}}
@@ -460,8 +486,8 @@ jobs:
460 486 if: needs.ci-config.outputs.enabled == 'yes'
461 487 env:
462 488 jobname: StaticAnalysis
463 - CI_JOB_IMAGE: ubuntu-22.04
464 - runs-on: ubuntu-22.04
489 + CI_JOB_IMAGE: ubuntu-latest
490 + runs-on: ubuntu-latest
465 491 concurrency:
466 492 group: static-analysis-${{ github.ref }}
467 493 cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }}
modified .gitlab-ci.yml
@@ -71,9 +71,9 @@ test:linux:
71 71 # A RHEL 8 compatible distro. Supported until 2029-05-31.
72 72 - jobname: almalinux-8
73 73 image: almalinux:8
74 - # Supported until 2026-08-31.
75 - - jobname: debian-11
76 - image: debian:11
74 + # Supported until 2028-06-30.
75 + - jobname: debian-12
76 + image: debian:12
77 77 artifacts:
78 78 paths:
79 79 - t/failed-test-artifacts
@@ -227,7 +227,7 @@ test:fuzz-smoke-tests:
227 227 - ./ci/run-build-and-minimal-fuzzers.sh
228 228
229 229 static-analysis:
230 - image: ubuntu:22.04
230 + image: ubuntu:latest
231 231 stage: analyze
232 232 needs: [ ]
233 233 variables:
modified .mailmap
@@ -39,12 +39,13 @@ Chris Shoemaker <c.shoemaker@cox.net>
39 39 Chris Wright <chrisw@sous-sol.org> <chrisw@osdl.org>
40 40 Christian Ludwig <chrissicool@gmail.com> <chrissicool@googlemail.com>
41 41 Cord Seele <cowose@gmail.com> <cowose@googlemail.com>
42 - Christian Couder <chriscool@tuxfamily.org> <christian.couder@gmail.com>
42 + Christian Couder <christian.couder@gmail.com> <chriscool@tuxfamily.org>
43 43 Christian Stimming <stimming@tuhh.de> <chs@ckiste.goetheallee>
44 44 Christopher Díaz Riveros <chrisadr@gentoo.org> Christopher Diaz Riveros
45 45 Clemens Buchacher <drizzd@gmx.net> <drizzd@aon.at>
46 46 Clemens Buchacher <drizzd@gmx.net> <clemens.buchacher@intel.com>
47 47 Csaba Henk <csaba@gluster.com> <csaba@lowlife.hu>
48 + D. Ben Knoble <ben.knoble@gmail.com> <ben.knoble+github@gmail.com>
48 49 Dan Johnson <computerdruid@gmail.com>
49 50 Dana L. How <danahow@gmail.com> <how@deathvalley.cswitch.com>
50 51 Dana L. How <danahow@gmail.com> Dana How
@@ -65,6 +66,8 @@ Derrick Stolee <stolee@gmail.com> <dstolee@microsoft.com>
65 66 Deskin Miller <deskinm@umich.edu>
66 67 Đoàn Trần Công Danh <congdanhqx@gmail.com> Doan Tran Cong Danh
67 68 Dirk Süsserott <newsletter@dirk.my1.cc>
69 + Elijah Newren <newren@gmail.com> <newren@palantir.com>
70 + Elijah Newren <newren@gmail.com> <newren@github.com>
68 71 Emily Shaffer <nasamuffin@google.com> <emilyshaffer@google.com>
69 72 Eric Blake <eblake@redhat.com> <ebb9@byu.net>
70 73 Eric Hanchrow <eric.hanchrow@gmail.com> <offby1@blarg.net>
@@ -309,6 +312,7 @@ YONETANI Tomokazu <y0n3t4n1@gmail.com> <qhwt+git@les.ath.cx>
309 312 YONETANI Tomokazu <y0n3t4n1@gmail.com> <y0netan1@dragonflybsd.org>
310 313 YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
311 314 Yi-Jyun Pan <pan93412@gmail.com>
315 + Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
312 316 # the two anonymous contributors are different persons:
313 317 anonymous <linux@horizon.com>
314 318 anonymous <linux@horizon.net>
modified Documentation/Makefile
@@ -129,6 +129,7 @@ TECH_DOCS += technical/long-running-process-protocol
129 129 TECH_DOCS += technical/multi-pack-index
130 130 TECH_DOCS += technical/packfile-uri
131 131 TECH_DOCS += technical/pack-heuristics
132 + TECH_DOCS += technical/paint-down-to-common
132 133 TECH_DOCS += technical/parallel-checkout
133 134 TECH_DOCS += technical/partial-clone
134 135 TECH_DOCS += technical/platform-support
modified Documentation/RelNotes/2.56.0.adoc
@@ -76,6 +76,93 @@ UI, Workflows & Features
76 76 filtered on the client based on server-advertised capabilities,
77 77 returning empty strings for inapplicable or unsupported fields.
78 78
79 + * 'git branch -d' has been taught to report when a branch cannot be
80 + deleted because it is being used in an active bisect run.
81 +
82 + * 'git mv' has been updated to check for a missing destination
83 + leading directory during the checking phase, allowing 'git mv -n'
84 + to report the failure. The error message when the rename(2)
85 + syscall fails has also been improved to name both the source and
86 + the destination.
87 +
88 + * 'git add' has been taught a new '--resolved' option to stage
89 + conflict-resolved paths, while leaving unrelated local changes
90 + unstaged. It scans the unmerged paths for leftover conflict
91 + markers and aborts if any are found.
92 +
93 + * The known limitations of the ref format migration in 'git refs' have
94 + been moved to be displayed as a warning admonition directly under the
95 + description of the 'migrate' subcommand, improving visibility. A
96 + reference to 'git-maintenance' has also been corrected to use the
97 + 'linkgit' macro.
98 +
99 + * The 'git bisect' command has been taught a
100 + '--reset-when-found[=<where>]' option that tells the command to
101 + automatically run 'git bisect reset' to jump back to the original
102 + state or to the found culprit.
103 +
104 + * The 'git branch' command has been taught the '--delete-merged' option
105 + to remove local branches that are already merged into their tracked
106 + remote-tracking branches.
107 +
108 + * The 'remote-object-info' command for 'git cat-file --batch-command'
109 + has been extended to support the '%(objecttype)' placeholder.
110 +
111 + * The usage string of 'git fast-import' has been updated to use the
112 + parse_options() API for displaying help, and its SYNOPSIS in the
113 + documentation has been standardized to match.
114 +
115 + * The error message given by 'git send-email' when a message file is
116 + missing a 'Subject:' header has been clarified, and the error string
117 + is now terminated with a newline so that Perl avoids appending its
118 + internal source location data.
119 +
120 + * The '--shallow-file' option of 'git' command requires a value, but the
121 + code did not check the presence of a value and instead segfaulted
122 + without one, which has been corrected.
123 +
124 + * 'git repack' has been taught '--drop-filtered' to delete local
125 + promisor blobs exceeding a limit (currently 'blob:limit=') in partial
126 + clones, reclaiming space. Guards prevent running during other
127 + operations or if referenced by the index.
128 +
129 + * The documentation for 'git format-rev' has been updated to use the
130 + [synopsis] block definition on code blocks to properly highlight
131 + placeholders, and a quoting inconsistency in the running text has
132 + been fixed.
133 +
134 + * The DWIM logic in 'git worktree add' sometimes tried to infer a
135 + remote-tracking branch when an explicit '-b' or '-B' option was
136 + given to create a new branch, causing the explicit branch name to
137 + be ignored, which has been corrected.
138 +
139 + * The command line completion (in contrib/) has been taught to handle
140 + the experimental 'git history' command.
141 +
142 + * 'git checkout' and 'git worktree add' makes guesses based on a name
143 + of a remote-tracking branch, but does not give an error when such a
144 + remote-tracking branch cannot be uniquely identified, which has
145 + been corrected.
146 +
147 + * The 'git replay' command has been taught the '--linearize' option to
148 + drop merge commits and linearize the replayed history, mimicking 'git
149 + rebase --no-rebase-merges'.
150 +
151 + * The documentation for 'git cherry-pick' has been updated to clarify
152 + that the '--no-commit' option intentionally skips setting the
153 + 'CHERRY_PICK_HEAD' ref. A test has also been added to ensure this
154 + behavior holds even when the operation stops for conflicts.
155 +
156 + * The 'git imap-send' command has been taught to take the '--draft'
157 + option to mark uploaded messages as drafts, which helps some email
158 + clients render them properly for editing and sending.
159 +
160 + * The git rev-list command has been augmented with a '--missing-only'
161 + option that filters the output to only show missing objects,
162 + stripping the leading '?' character and suppressing present objects,
163 + which is useful when used in combination with '--missing=print' or
164 + '--missing=print-info'.
165 +
79 166
80 167 Performance, Internal Implementation, Development Support etc.
81 168 --------------------------------------------------------------
@@ -280,6 +367,204 @@ Performance, Internal Implementation, Development Support etc.
280 367 first refactoring force_object_loose() to use generic ODB write
281 368 interfaces instead of loose-backend internals.
282 369
370 + * Object database housekeeping in 'git gc' and 'git maintenance' has
371 + been refactored to be pluggable. The files-backend-specific logic,
372 + including incremental and geometric repacking as well as object
373 + pruning, has been moved out of the command implementation and into the
374 + files object database source, enabling future alternative object
375 + database backends to implement their own housekeeping services.
376 +
377 + * The image version used by the static-analysis CI job has been bumped
378 + to ubuntu-latest (Ubuntu 24.04), which brings in a newer Coccinelle
379 + version that resolves a severe performance regression. A false
380 + positive warning from the 'CHECK_ASSERTION_SIDE_EFFECTS' build with
381 + GCC 15 in the Bloom filter code has also been silenced to facilitate
382 + the image upgrade.
383 +
384 + * The alias tests in 't/t0014-alias.sh' have been updated to dynamically
385 + query the list of deprecated commands using 'git
386 + --list-cmds=deprecated' to avoid test failures when running with
387 + 'WITH_BREAKING_CHANGES' in a build directory that contains stale
388 + executables of formerly deprecated commands.
389 +
390 + * The code path that deals with relative paths in the diff-lib has
391 + been cleaned up.
392 +
393 + * The get_commit_action() function has been refactored to be a pure
394 + predicate by moving the side-effecting line-level log range folding to
395 + simplify_commit(). This ensures that evaluating a commit's action
396 + before the walk reaches it does not prematurely mutate its tracked
397 + line ranges, making it safer for potential lookahead evaluations.
398 +
399 + * Synopsis and options in the documentation for 'git format-patch',
400 + 'git imap-send', 'git send-email', and 'git request-pull' have been
401 + updated to the modern style.
402 +
403 + * A new test helper commit_body() has been introduced to print the
404 + message body of a commit, and various tests have been updated to use
405 + it instead of spelling out the command pipeline manually and losing
406 + the exit status of the 'git cat-file' command on the upstream of the
407 + pipe.
408 +
409 + * Tests for 'git merge-base --is-ancestor' have been added to cover
410 + exit codes (0 for success, 1 for non-ancestor, 128 for errors) and
411 + to ensure it cannot be combined with '--all'.
412 +
413 + * The 'TRACE2_ANCESTRY' prerequisite in the 't0213' test script has been
414 + refined to avoid failures under user-mode emulation by verifying that
415 + the ancestry collector reports the expected process names rather than
416 + the emulator binary name.
417 +
418 + * Concurrent downloads of packfiles via packfile URIs and dumb HTTP are
419 + safer by avoiding concurrent appends to the staging file. Opening in
420 + read-write mode with separate file offsets prevents corruption and
421 + preserves resumability. 'fetch-pack' now tolerates pre-existing
422 + '.keep' files.
423 +
424 + * The 'ssh-agent' tests in 't7528' have been fixed to work when the
425 + user's login shell is csh-like, by explicitly passing '-s' to
426 + 'ssh-agent' to force Bourne shell syntax.
427 +
428 + * A compatibility wrapper for writev(3p) has been reintroduced,
429 + including fixes for CMake build and 'MAX_IO_SIZE' limits on NonStop.
430 + Calls to write(3p) in send_sideband() and cat_blob() have been
431 + refactored to use writev(3p) wrappers to reduce syscall overhead.
432 +
433 + * The creation of the on-disk data structures for the object database
434 + has been made pluggable, allowing future backends to customize their
435 + setup. As part of this, the initialization of the object database
436 + has been deferred, and the loading of the loose-object map has been
437 + detangled from repository initialization.
438 +
439 + * The 'struct odb_read_stream' and 'struct odb_write_stream'
440 + structures have been consolidated into a single unified 'struct
441 + odb_stream' structure, simplifying object database streaming APIs
442 + and enabling streaming of arbitrary object types.
443 +
444 + * The sequencer has been updated to release the object database before
445 + spawning 'git commit'. This prevents open file handles from
446 + blocking auto-maintenance tasks, such as repacking, on systems like
447 + Windows where open files cannot be easily unlinked.
448 +
449 + * The merge-base computation has been optimized by stopping the walk
450 + early when one side's exclusive commits in the queue are exhausted,
451 + yielding significant speedups for queries with one-sided histories.
452 +
453 + * A handful of code paths have been corrected to check return values
454 + from functions like curl_easy_duphandle(), deflateInit(), lseek(),
455 + dup(), and strbuf_getline_lf(), resolving several Coverity warnings
456 + about unchecked returns.
457 +
458 + * The setting of a now-unused member '.pretty_given' in the sequencer
459 + machinery has been removed.
460 +
461 + * The performance of adding numerous new packfiles has been improved
462 + by introducing a fast path for known-new packfiles to skip an
463 + unnecessary traversal in packfile_list_append(), avoiding a
464 + quadratic complexity regression on load.
465 +
466 + * The unused name parameter in 'struct chdir_notify_entry' has been
467 + removed from chdir_notify_register(), chdir_notify_unregister(), and
468 + related callback signatures across several subsystems, simplifying the
469 + API now that trace output no longer uses it.
470 +
471 + * A heap-use-after-free bug in the object name parsing code when
472 + reporting failures with a relative path to a sparse directory has
473 + been corrected.
474 +
475 + * The object database (odb) API has been refactored to distinguish
476 + between missing objects and corrupt ones by returning more
477 + descriptive error statuses. Both the packed and loose backends now
478 + faithfully propagate error details using a generic strbuf error
479 + mechanism, removing backend-specific leakage from central lookup
480 + paths.
481 +
482 + * The object database layer has been simplified by eagerly loading
483 + alternate object directories upon initialization, instead of
484 + deferring it to the first object lookup. This eliminates the need
485 + for scattered lazy-loading calls throughout the codebase and paves
486 + the way for integrating alternates with the pluggable backends.
487 +
488 + * The threshold for geometric repacking to trigger based on loose
489 + object count has been adjusted to match that of 'git gc --auto',
490 + preventing over-aggressive repacking during concurrent writes.
491 +
492 + * The 'git receive-pack' command has been updated to use a new ODB
493 + transaction interface for writing incoming packfiles, making it more
494 + backend-agnostic.
495 +
496 + * The mechanism to generate a packfile corresponding to the result of
497 + a fetch/push has been made pluggable through a set of object
498 + database callback functions, removing hardcoded references to
499 + 'pack-objects' and enabling alternative ODBs to serve packfiles
500 + themselves.
501 +
502 + * The pack-objects command has been updated to record the total bytes
503 + written to pack files in trace2 output, allowing performance
504 + analysis of different compression settings by comparing the
505 + resulting pack sizes.
506 +
507 + * The global variable 'fetch_if_missing' has been moved to a member in
508 + 'struct repository', continuing the libification process and
509 + allowing per-repository control (such as for submodules).
510 +
511 + * The reftable code has been optimized to avoid an unnecessary
512 + stat/reload of the stack when an addition already holds the
513 + list_file lock, reducing the number of newfstatat syscalls from
514 + linear to constant when writing refs.
515 +
516 + * The application of the edited patch in 'git add -e' has been
517 + refactored to use the internal apply API directly, avoiding the need
518 + to spawn a 'git apply' subprocess.
519 +
520 + * The memory ownership of argv elements passed to the revision
521 + machinery has been made more robust by keeping logically "freed"
522 + elements alive until the rev_info struct is released, preventing
523 + use-after-free bugs when options store references to them.
524 +
525 + * The object lookup machinery has been taught to gracefully recover
526 + when a multi-pack-index points to an owning pack that was removed
527 + during a concurrent geometric repack, and 'git replay' has been
528 + fixed to not segfault when reading such missing objects.
529 +
530 + * A collection of patches from Git for Windows has been upstreamed,
531 + mostly focusing on simplifying and robustifying build configurations
532 + for MinGW/MSYS2, dropping obsolete compatibility options, and allowing
533 + the main 'git.exe' to be used directly without the extra wrapper
534 + process on Windows.
535 +
536 + * The process of downloading packfile URIs in protocol v2 has been
537 + instrumented with a Trace2 region. This visibility allows tracking
538 + the cumulative time spent downloading external packs and the number
539 + of advertised URIs without emitting a separate event per pack.
540 +
541 + * CGI helper scripts used by HTTP-related test scripts have been updated
542 + to use atomic filesystem operations, preventing race conditions when
543 + Apache handles concurrent requests.
544 +
545 + * "git maintenance" triggered "rerere gc" in unappropriate times and
546 + interfered with "git rebase" etc. too much. The conditions "rerere
547 + gc" gets triggered have been tweaked.
548 +
549 + * Windows build switches from MINGW64 to URCR64 runtime starting Git
550 + 2.56.0; switch the cmake based build at the same time.
551 +
552 + * The mechanism to register in-memory alternate object sources has
553 + been removed, as submodule object databases are now accessed
554 + natively via their own repository structures. This simplifies
555 + object database management and prepares the codebase for migrating
556 + alternate tracking into the files backend.
557 +
558 + * The consistency checks for the object database (fsck) have been
559 + decoupled from the generic builtin implementation and moved into the
560 + backend-specific object source layers, making them pluggable for
561 + different object storage formats.
562 +
563 + * When cross-compiling with Cargo, the output artifact is placed in a
564 + target-specific subdirectory, which causes the build system to fail
565 + to locate it. The build system has been updated to respect the
566 + 'CARGO_BUILD_TARGET' environment variable.
567 +
283 568
284 569 Fixes since v2.55
285 570 -----------------
@@ -466,3 +751,161 @@ Fixes since v2.55
466 751 * The remote-matching logic for submodules has been corrected to resolve
467 752 'url.*.insteadOf' aliases before comparing the inventoried URL from
468 753 '.gitmodules' with the URLs of configured remotes.
754 +
755 + * 'git diff --relative' running with '--cached' has been corrected to
756 + avoid a segfault when encountering unmerged paths outside the
757 + prefix.
758 + (merge 447126ed7d jk/diff-relative-cached-unmerged later to maint).
759 +
760 + * Two bugs in how 'git rebase' handles skipped 'fixup' and 'squash'
761 + commands have been fixed. One bug caused an incorrect commit count to
762 + be shown in the template message when multiple commands were skipped,
763 + and another prevented the editor from opening when the final command
764 + in a chain containing 'fixup -c' was skipped.
765 +
766 + * Git for Windows has been updated to avoid auto-detecting the symlink
767 + type if the target path starts with a slash, preventing NTLM
768 + credential leaks when checking out repositories with crafted
769 + symbolic links pointing to network shares.
770 +
771 + * 'git cat-file --batch-command' that asked for 'contents' without
772 + 'type' segfaults, which has been corrected.
773 + (merge 2abc7f0304 jk/cat-file-batch-wo-type-fix later to maint).
774 +
775 + * A memory leak in 'git merge' when run without arguments (which
776 + triggers the default-to-upstream path) has been fixed. A test has
777 + been added to cover this case.
778 + (merge 68cce04a02 tc/merge-default-to-upstream-leakfix later to maint).
779 +
780 + * A boundary case check in reachability bitmap traversal has been
781 + corrected to properly handle the object at position zero, which was
782 + previously skipped, leading to redundant bitmap loading.
783 + (merge b56b48301e dl/pack-bitmap-position-zero later to maint).
784 +
785 + * A crash in the 'sparse-index' collapse code when encountering an
786 + invalidated cache-tree node (due to an intent-to-add path) has been
787 + fixed by avoiding collapsing such subtrees.
788 + (merge eede1e69fe ds/sparse-index-ita-crash later to maint).
789 +
790 + * Documentation for 'git replay' has been updated to refer to its
791 + configuration variables.
792 + (merge 48c0549f5c kh/doc-replay-config later to maint).
793 +
794 + * Documentation for 'git interpret-trailers' has been updated to explain
795 + the format of trailer keys (alphanumeric characters and hyphens),
796 + replace outdated terminology, define key terms upfront, and document
797 + how comment lines in the input are treated.
798 + (merge 4515c86fd9 kh/doc-trailers later to maint).
799 +
800 + * The 'pack-objects' and delta-encoding code paths have been updated to
801 + use 'size_t' instead of 'unsigned long' for object sizes and offset
802 + limits, avoiding potential truncation issues on 64-bit Windows.
803 + (merge d50ac11724 js/pack-objects-delta-size-t later to maint).
804 +
805 + * A client requesting the promisor-remote capability without a value
806 + caused a null pointer dereference, which has been corrected by
807 + rejecting a request without an argument.
808 + (merge dd6b35ff71 en/serve-promisor-remote-fix later to maint).
809 +
810 + * Various tests in 't7900-maintenance.sh' have been updated to use a
811 + throwaway repository, and auto-detaching of maintenance tasks is now
812 + disabled for these tests to fix flaky races with concurrent background
813 + maintenance jobs.
814 + (merge 2775d8bcd1 ps/t7900-deflake-maintenance later to maint).
815 +
816 + * The help text for the '-l' option of 'git diff' has been updated.
817 + (merge 764243bdf4 en/diff-l-opt-help later to maint).
818 +
819 + * 'git -C <dir> diff fi<TAB>' did not complete 'file', which has
820 + been corrected.
821 + (merge 354d1bf3a0 jc/complete-diff-tracked-paths later to maint).
822 +
823 + * 'git -C <dir> checkout fi<TAB>' did not complete 'file', which has
824 + been corrected.
825 + (merge 05e2ab1f31 jc/complete-checkout later to maint).
826 +
827 + * The trailer parsing machinery has been updated to avoid mistaking
828 + lines that begin with a URL (e.g., 'https://...') as trailer lines.
829 + This prevents intended textual URLs from being mangled or mistakenly
830 + treated as metadata keys.
831 +
832 + * The instructions for deprecated commands emitted by
833 + you_still_use_that() have been reworded to clarify that the removal
834 + decision is final and to provide more assertive guidance on finding
835 + a replacement.
836 + (merge 8ace32221c jc/you-still-use-that later to maint).
837 +
838 + * The zsh completion script (in 'contrib/') has been updated to
839 + correctly locate the Git command after global options like '-C' by
840 + properly skipping them, similar to how the bash completion does.
841 +
842 + * The git worktree repair command failed to rewrite the .git file of
843 + a working tree from a relative path to an absolute path when the
844 + command was run in the working tree itself. The
845 + read_gitfile_gently() function was modified to also return whether
846 + the path originally recorded in the file was absolute, and this new
847 + capability is used to correctly detect such mismatches.
848 +
849 + * GitHub Actions CI workflow runs triggered by pull requests have
850 + been configured to cancel older runs when a new push is made to the
851 + same pull request.
852 + (merge a251b1bd21 hn/ci-cancel-stale-pr-runs later to maint).
853 +
854 + * The string extraction logic for the branch name and worktree name
855 + from the given path in 'git worktree add' has been corrected and
856 + simplified to avoid out-of-bounds reads and improper handling of
857 + trailing slashes.
858 + (merge 2e8a9d94b0 rs/worktree-add-basename-fixes later to maint).
859 +
860 + * The CI job for Debian 11 has been updated to use Debian 12, as the
861 + former is now out of the LTS period.
862 + (merge 00fa850235 jk/ci-bump-debian-to-12 later to maint).
863 +
864 + * The CI script to install dependencies for the documentation build
865 + has been updated to install asciidoctor directly via the system
866 + package manager instead of pinning to an older version via gem.
867 + Additionally, an obsolete variable used for retired Azure Pipelines
868 + environments has been removed.
869 +
870 + * The error path in 'git submodule--helper' has been updated to plug a
871 + memory leak when a repository handle could not be obtained,
872 + leveraging an updated idempotent repo_clear().
873 + (merge 2c03739705 jk/submodule-error-leak later to maint).
874 +
875 + * Two members in "struct pathspec_item" were of type "char *", but
876 + nobody updated the string through these pointers. They have been
877 + made "const char *" instead.
878 + (merge 88d06b1c91 jc/pathspec-match-const later to maint).
879 +
880 + * The gitdatamodel documentation page has been linked from a handful
881 + of key documentaiton pages.
882 + (merge ec602484bd kh/doc-datamodel later to maint).
883 +
884 + * Running "git history" in a corrupt repository can (unsurprisingly)
885 + segfault when a necessary tree object is not found, which has been
886 + made to die more gracefully.
887 + (merge 76621488e8 jc/history-missing-tree-errorfix later to maint).
888 +
889 + * The development helper script to lint gitlink references in the
890 + documentation has been updated to avoid a newer Perl regular
891 + expression syntax that breaks on older Perl versions.
892 + (merge 8a631963a9 ta/lint-gitlink-older-perl-fix later to maint).
893 +
894 + * The autostash fallback in 'git checkout -m' has been refined to only
895 + retry when there are local changes. Additionally, a blank line now
896 + visually separates autostash conflict advice from the subsequent
897 + branch-switch message.
898 + (merge 2ba77ea828 hn/checkout-m-autostash-refine later to maint).
899 +
900 + * The memory leak caused by not unusing the commit buffer returned by
901 + repo_logmsg_reencode() during the rewording operation in 'git
902 + history' has been plugged.
903 +
904 + * The pathspec matching logic has been updated to avoid out-of-bounds
905 + memory accesses when a negative pathspec is shorter than the common
906 + prefix of positive pathspecs.
907 +
908 + * Other code cleanup, docfix, build fix, etc.
909 + (merge 026636128f ss/submittingpatches-typofix later to maint).
910 + (merge d2af22cc21 jc/rerere-doc-typofix later to maint).
911 + (merge c486c1df72 hk/typofix later to maint).
modified Documentation/SubmittingPatches
@@ -117,7 +117,7 @@ of review.
117 117 can still continue to further improve them by adding more patches on
118 118 top, but by the time a topic gets merged to 'next', it is expected
119 119 that everybody agrees that the scope and the basic direction of the
120 - topic are appropriate, so such an incremental updates are limited to
120 + topic are appropriate, so such incremental updates are limited to
121 121 small corrections and polishing. After a topic cooks for some time
122 122 (like 7 calendar days) in 'next' without needing further tweaks on
123 123 top, it gets merged to the 'master' branch and waits to become part
modified Documentation/config.adoc
@@ -568,6 +568,8 @@ include::config/remotes.adoc[]
568 568
569 569 include::config/repack.adoc[]
570 570
571 + include::config/replay.adoc[]
572 +
571 573 include::config/rerere.adoc[]
572 574
573 575 include::config/revert.adoc[]
modified Documentation/config/branch.adoc
@@ -103,3 +103,10 @@ for details).
103 103 `git branch --edit-description`. Branch description is
104 104 automatically added to the `format-patch` cover letter or
105 105 `request-pull` summary.
106 +
107 + `branch.<name>.deleteMerged`::
108 + If set to `false`, branch _<name>_ is exempt from
109 + `git branch --delete-merged`. Useful for a topic branch you
110 + intend to develop further after an initial round has been
111 + merged upstream. Defaults to true. Explicit deletion via
112 + `git branch -d` is unaffected.
modified Documentation/config/imap.adoc
@@ -41,7 +41,7 @@
41 41 `imap.authMethod`::
42 42 Specify the authentication method for authenticating with the IMAP server.
43 43 If Git was built with the NO_CURL option, or if your curl version is older
44 - than 7.34.0, or if you're running git-imap-send with the `--no-curl`
44 + than 7.34.0, or if you're running `git-imap-send` with the `--no-curl`
45 45 option, the only supported methods are `PLAIN`, `CRAM-MD5`, `OAUTHBEARER`
46 46 and `XOAUTH2`. If this is not set then `git imap-send` uses the basic IMAP
47 47 plaintext `LOGIN` command.
modified Documentation/config/maintenance.adoc
@@ -41,6 +41,7 @@ The possible strategies are:
41 41 This repacking strategy is a full replacement for the `gc` strategy and is
42 42 recommended for large repositories. This is the default strategy for manual
43 43 maintenance.
44 + +
44 45 * `incremental`: This setting optimizes for performing small maintenance
45 46 activities that do not delete any data. This does not schedule the `gc`
46 47 task, but runs the `prefetch` and `commit-graph` tasks hourly, the
@@ -101,7 +102,7 @@ maintenance.geometric-repack.auto::
101 102 there are packfiles that need to be merged together to retain the
102 103 geometric progression, or when there are at least this many loose
103 104 objects that would be written into a new packfile. The default value is
104 - 100.
105 + 6700.
105 106
106 107 maintenance.geometric-repack.splitFactor::
107 108 This integer config option controls the factor used for the geometric
@@ -121,10 +122,10 @@ maintenance.rerere-gc.auto::
121 122 This integer config option controls how often the `rerere-gc` task
122 123 should be run as part of `git maintenance run --auto`. If zero, then
123 124 the `rerere-gc` task will not run with the `--auto` option. A negative
124 - value will force the task to run every time. Otherwise, any positive
125 - value implies the command will run when the "rr-cache" directory exists
126 - and has at least one entry, regardless of whether it is stale or not.
127 - This heuristic may be refined in the future. The default value is 1.
125 + value will force the task to run every time. Otherwise, a positive
126 + value implies the command should run when the estimated number of stale
127 + entries that would be pruned is greater than or equal to the configured
128 + value. The default value is 512.
128 129
129 130 maintenance.worktree-prune.auto::
130 131 This integer config option controls how often the `worktree-prune` task
modified Documentation/config/replay.adoc
@@ -1,11 +1,18 @@
1 1 replay.refAction::
2 - Specifies the default mode for handling reference updates in
3 - `git replay`. The value can be:
2 + Specifies the default mode for handling reference updates.
3 + The value can be:
4 4 +
5 5 --
6 - * `update`: Update refs directly using an atomic transaction (default behavior).
7 - * `print`: Output update-ref commands for pipeline use.
6 + ////
7 + These use the first sentences from the description list in git-replay(1).
8 + ////
9 + `update`;; (default) Update refs directly using an atomic transaction.
10 + `print`;; Output update-ref commands for pipeline use.
8 11 --
9 12 +
10 - This setting can be overridden with the `--ref-action` command-line option.
11 - When not configured, `git replay` defaults to `update` mode.
13 + ifdef::git-replay[]
14 + See `--ref-action`.
15 + endif::git-replay[]
16 + ifndef::git-replay[]
17 + See `--ref-action` in linkgit:git-replay[1] for details.
18 + endif::git-replay[]
modified Documentation/config/sendemail.adoc
@@ -1,25 +1,25 @@
1 - sendemail.identity::
1 + `sendemail.identity`::
2 2 A configuration identity. When given, causes values in the
3 3 `sendemail.<identity>` subsection to take precedence over
4 4 values in the `sendemail` section. The default identity is
5 5 the value of `sendemail.identity`.
6 6
7 - sendemail.smtpEncryption::
7 + `sendemail.smtpEncryption`::
8 8 See linkgit:git-send-email[1] for description. Note that this
9 9 setting is not subject to the `identity` mechanism.
10 10
11 - sendemail.smtpSSLCertPath::
11 + `sendemail.smtpSSLCertPath`::
12 12 Path to ca-certificates (either a directory or a single file).
13 13 Set it to an empty string to disable certificate verification.
14 14
15 - sendemail.smtpSSLClientCert::
15 + `sendemail.smtpSSLClientCert`::
16 16 Path to the client certificate file to present if requested by the
17 17 server. This is required when the server is set up to verify client
18 18 certificates. If the corresponding private key is not included in the
19 19 file, it must be supplied using `sendemail.smtpSSLClientKey` or the
20 20 `--smtp-ssl-client-key` option.
21 21
22 - sendemail.smtpSSLClientKey::
22 + `sendemail.smtpSSLClientKey`::
23 23 Path to the client private key file that corresponds to the client
24 24 certificate. To avoid misconfiguration, this configuration must be used
25 25 in conjunction with `sendemail.smtpSSLClientCert` or the
@@ -28,45 +28,45 @@ sendemail.smtpSSLClientKey::
28 28 the certificate. Visit https://metacpan.org/pod/IO::Socket::SSL for more
29 29 details.
30 30
31 - sendemail.<identity>.*::
32 - Identity-specific versions of the `sendemail.*` parameters
31 + `sendemail.<identity>.<config>`::
32 + Identity-specific versions of the `sendemail.<config>` parameters
33 33 found below, taking precedence over those when this
34 34 identity is selected, through either the command-line or
35 35 `sendemail.identity`.
36 36
37 - sendemail.multiEdit::
37 + `sendemail.multiEdit`::
38 38 If `true` (default), a single editor instance will be spawned to edit
39 39 files you have to edit (patches when `--annotate` is used, and the
40 40 summary when `--compose` is used). If `false`, files will be edited one
41 41 after the other, spawning a new editor each time.
42 42
43 - sendemail.confirm::
43 + `sendemail.confirm`::
44 44 Sets the default for whether to confirm before sending. Must be
45 45 one of `always`, `never`, `cc`, `compose`, or `auto`. See `--confirm`
46 46 in the linkgit:git-send-email[1] documentation for the meaning of these
47 47 values.
48 48
49 - sendemail.mailmap::
49 + `sendemail.mailmap`::
50 50 If `true`, makes linkgit:git-send-email[1] assume `--mailmap`,
51 51 otherwise assume `--no-mailmap`. `False` by default.
52 52
53 - sendemail.mailmap.file::
53 + `sendemail.mailmap.file`::
54 54 The location of a linkgit:git-send-email[1] specific augmenting
55 55 mailmap file. The default mailmap and `mailmap.file` are loaded
56 56 first. Thus, entries in this file take precedence over entries in
57 57 the default mailmap locations. See linkgit:gitmailmap[5].
58 58
59 - sendemail.mailmap.blob::
59 + `sendemail.mailmap.blob`::
60 60 Like `sendemail.mailmap.file`, but consider the value as a reference
61 61 to a blob in the repository. Entries in `sendemail.mailmap.file`
62 62 take precedence over entries here. See linkgit:gitmailmap[5].
63 63
64 - sendemail.aliasesFile::
64 + `sendemail.aliasesFile`::
65 65 To avoid typing long email addresses, point this to one or more
66 66 email aliases files. You must also supply `sendemail.aliasFileType`.
67 67
68 - sendemail.aliasFileType::
69 - Format of the file(s) specified in sendemail.aliasesFile. Must be
68 + `sendemail.aliasFileType`::
69 + Format of the file(s) specified in `sendemail.aliasesFile`. Must be
70 70 one of `mutt`, `mailrc`, `pine`, `elm`, `gnus`, or `sendmail`.
71 71 +
72 72 What an alias file in each format looks like can be found in
@@ -75,7 +75,7 @@ differences and limitations from the standard formats are
75 75 described below:
76 76 +
77 77 --
78 - sendmail;;
78 + `sendmail`;;
79 79 * Quoted aliases and quoted addresses are not supported: lines that
80 80 contain a `"` symbol are ignored.
81 81 * Redirection to a file (`/path/name`) or pipe (`|command`) is not
@@ -85,54 +85,54 @@ sendmail;;
85 85 explicitly unsupported constructs, and any other lines that are not
86 86 recognized by the parser.
87 87 --
88 - sendemail.annotate::
89 - sendemail.bcc::
90 - sendemail.cc::
91 - sendemail.ccCmd::
92 - sendemail.chainReplyTo::
93 - sendemail.envelopeSender::
94 - sendemail.from::
95 - sendemail.headerCmd::
96 - sendemail.signedOffByCc::
97 - sendemail.smtpPass::
98 - sendemail.suppressCc::
99 - sendemail.suppressFrom::
100 - sendemail.to::
101 - sendemail.toCmd::
102 - sendemail.smtpDomain::
103 - sendemail.smtpServer::
104 - sendemail.smtpServerPort::
105 - sendemail.smtpServerOption::
106 - sendemail.smtpUser::
107 - sendemail.imapSentFolder::
108 - sendemail.useImapOnly::
109 - sendemail.thread::
110 - sendemail.transferEncoding::
111 - sendemail.validate::
112 - sendemail.xmailer::
88 + `sendemail.annotate`::
89 + `sendemail.bcc`::
90 + `sendemail.cc`::
91 + `sendemail.ccCmd`::
92 + `sendemail.chainReplyTo`::
93 + `sendemail.envelopeSender`::
94 + `sendemail.from`::
95 + `sendemail.headerCmd`::
96 + `sendemail.signedOffByCc`::
97 + `sendemail.smtpPass`::
98 + `sendemail.suppressCc`::
99 + `sendemail.suppressFrom`::
100 + `sendemail.to`::
101 + `sendemail.toCmd`::
102 + `sendemail.smtpDomain`::
103 + `sendemail.smtpServer`::
104 + `sendemail.smtpServerPort`::
105 + `sendemail.smtpServerOption`::
106 + `sendemail.smtpUser`::
107 + `sendemail.imapSentFolder`::
108 + `sendemail.useImapOnly`::
109 + `sendemail.thread`::
110 + `sendemail.transferEncoding`::
111 + `sendemail.validate`::
112 + `sendemail.xmailer`::
113 113 These configuration variables all provide a default for
114 114 linkgit:git-send-email[1] command-line options. See its
115 115 documentation for details.
116 116
117 - sendemail.outlookidfix::
117 + `sendemail.outlookidfix`::
118 118 If `true`, makes linkgit:git-send-email[1] assume `--outlook-id-fix`,
119 119 and if `false` assume `--no-outlook-id-fix`. If not specified, it will
120 120 behave the same way as if `--outlook-id-fix` is not specified.
121 121
122 - sendemail.signedOffCc (deprecated)::
122 + `sendemail.signedOffCc` (deprecated)::
123 123 Deprecated alias for `sendemail.signedOffByCc`.
124 124
125 - sendemail.smtpBatchSize::
125 + `sendemail.smtpBatchSize`::
126 126 Number of messages to be sent per connection, after that a relogin
127 127 will happen. If the value is `0` or undefined, send all messages in
128 128 one connection.
129 129 See also the `--batch-size` option of linkgit:git-send-email[1].
130 130
131 - sendemail.smtpReloginDelay::
131 + `sendemail.smtpReloginDelay`::
132 132 Seconds to wait before reconnecting to the smtp server.
133 133 See also the `--relogin-delay` option of linkgit:git-send-email[1].
134 134
135 - sendemail.forbidSendmailVariables::
135 + `sendemail.forbidSendmailVariables`::
136 136 To avoid common misconfiguration mistakes, linkgit:git-send-email[1]
137 137 will abort with a warning if any configuration options for `sendmail`
138 138 exist. Set this variable to bypass the check.
modified Documentation/config/worktree.adoc
@@ -5,8 +5,9 @@
5 5 set to true, `worktree add` tries to find a remote-tracking
6 6 branch whose name uniquely matches the new branch name. If
7 7 such a branch exists, it is checked out and set as "upstream"
8 - for the new branch. If no such match can be found, it falls
9 - back to creating a new branch from the current `HEAD`.
8 + for the new branch. If multiple matches are found, the command
9 + fails. If no such match can be found, it falls back to
10 + creating a new branch from the current `HEAD`.
10 11
11 12 `worktree.useRelativePaths`::
12 13 Link worktrees using relative paths (when "`true`") or absolute
modified Documentation/diff-options.adoc
@@ -13,8 +13,8 @@ endif::git-diff[]
13 13 endif::git-format-patch[]
14 14
15 15 ifdef::git-format-patch[]
16 - -p::
17 - --no-stat::
16 + `-p`::
17 + `--no-stat`::
18 18 Generate plain patches without any diffstats.
19 19 endif::git-format-patch[]
20 20
@@ -893,8 +893,8 @@ endif::git-format-patch[]
893 893 reverted with `--ita-visible-in-index`. Both options are
894 894 experimental and could be removed in future.
895 895
896 - --max-depth=<depth>::
897 - For each pathspec given on command line, descend at most `<depth>`
896 + `--max-depth=<depth>`::
897 + For each pathspec given on command line, descend at most _<depth>_
898 898 levels of directories. A value of `-1` means no limit.
899 899 Cannot be combined with wildcards in the pathspec.
900 900 Given a tree containing `foo/bar/baz`, the following list shows the
modified Documentation/git-add.adoc
@@ -11,7 +11,7 @@ SYNOPSIS
11 11 git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [--patch | -p]
12 12 [--edit | -e] [--[no-]all | -A | --[no-]ignore-removal | [--update | -u]] [--sparse]
13 13 [--intent-to-add | -N] [--refresh] [--ignore-errors] [--ignore-missing] [--renormalize]
14 - [--chmod=(+|-)x] [--pathspec-from-file=<file> [--pathspec-file-nul]]
14 + [--resolved] [--chmod=(+|-)x] [--pathspec-from-file=<file> [--pathspec-file-nul]]
15 15 [--] [<pathspec>...]
16 16
17 17 DESCRIPTION
@@ -195,6 +195,14 @@ for `git add --no-all <pathspec>...`, i.e. ignored removed files.
195 195 while a _CRLF_ cleans to _LF_, a _CRCRLF_ sequence is only partially
196 196 cleaned to _CRLF_.
197 197
198 + `--resolved`::
199 + Update the index for unmerged paths matching _<pathspec>_ where
200 + no conflict markers remain in the working tree. Unmerged paths
201 + without conflict markers (including binary files and file
202 + deletions) are staged as resolved, while any path with leftover
203 + conflict markers causes the command to refuse to stage any files.
204 + Cannot be combined with `-u` or `-A`.
205 +
198 206 `--chmod=(+|-)x`::
199 207 Override the executable bit of the added files. The executable
200 208 bit is only changed in the index, the files on disk are left
modified Documentation/git-bisect.adoc
@@ -10,7 +10,7 @@ SYNOPSIS
10 10 --------
11 11 [synopsis]
12 12 git bisect start [--term-(bad|new)=<term-new> --term-(good|old)=<term-old>]
13 - [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<pathspec>...]
13 + [--no-checkout] [--first-parent] [--reset-when-found[=<where>]] [<bad> [<good>...]] [--] [<pathspec>...]
14 14 git bisect (bad|new|<term-new>) [<rev>]
15 15 git bisect (good|old|<term-old>) [<rev>...]
16 16 git bisect terms [--term-(good|old) | --term-(bad|new)]
@@ -20,7 +20,7 @@ git bisect reset [<commit>]
20 20 git bisect (visualize|view)
21 21 git bisect replay <logfile>
22 22 git bisect log
23 - git bisect run <cmd> [<arg>...]
23 + git bisect run [--reset-when-found[=<where>]] <cmd> [<arg>...]
24 24 git bisect help
25 25
26 26 DESCRIPTION
@@ -385,6 +385,16 @@ ignored.
385 385 This option is particularly useful in avoiding false positives when a merged
386 386 branch contained broken or non-buildable commits, but the merge itself was OK.
387 387
388 + `--reset-when-found[=<where>]`::
389 + Once the first bad commit is found, report it and clean up the
390 + bisection state. `<where>` may be `original` to return to the commit
391 + checked out before `git bisect start`, or `found` to leave the first
392 + bad commit checked out. If `<where>` is omitted, it defaults to
393 + `original`.
394 + +
395 + This option may be given to `git bisect start` or to `git bisect run`. It
396 + cannot be used for a bisection started with `--no-checkout`.
397 +
388 398 EXAMPLES
389 399 --------
390 400
modified Documentation/git-branch.adoc
@@ -13,6 +13,7 @@ git branch [--color[=<when>] | --no-color] [--show-current]
13 13 [--column[=<options>] | --no-column] [--sort=<key>]
14 14 [--merged [<commit>]] [--no-merged [<commit>]]
15 15 [--contains [<commit>]] [--no-contains [<commit>]]
16 + [(--forked <branch>)...]
16 17 [--points-at <object>] [--format=<format>]
17 18 [(-r|--remotes) | (-a|--all)]
18 19 [--list] [<pattern>...]
@@ -24,6 +25,7 @@ git branch (-m|-M) [<old-branch>] <new-branch>
24 25 git branch (-c|-C) [<old-branch>] <new-branch>
25 26 git branch (-d|-D) [-r] <branch-name>...
26 27 git branch --edit-description [<branch-name>]
28 + git branch [--dry-run] (--delete-merged <pattern>)... [<branch-pattern>...]
27 29
28 30 DESCRIPTION
29 31 -----------
@@ -51,7 +53,8 @@ merged into the named commit (i.e. the branches whose tip commits are
51 53 reachable from the named commit) will be listed. With `--no-merged` only
52 54 branches not merged into the named commit will be listed. If the _<commit>_
53 55 argument is missing it defaults to `HEAD` (i.e. the tip of the current
54 - branch).
56 + branch). With `--forked`, only branches whose configured upstream matches
57 + the given branch or pattern will be listed.
55 58
56 59 The command's second form creates a new branch head named _<branch-name>_
57 60 which points to the current `HEAD`, or _<start-point>_ if given. As a
@@ -199,6 +202,45 @@ This option is only applicable in non-verbose mode.
199 202 Print the name of the current branch. In detached `HEAD` state,
200 203 nothing is printed.
201 204
205 + `--delete-merged <pattern>`::
206 + Delete local branches whose configured upstream matches
207 + _<pattern>_, but only when their tip is reachable from that
208 + upstream. In other words, the work on the branch has already
209 + landed on the upstream it tracks, so the local copy is no longer
210 + needed. _<pattern>_ may name a ref, a remote (using the branch its
211 + `HEAD` points at), or a shell-style glob. The option can be
212 + repeated to widen the upstream match.
213 + Optional _<branch-pattern>_ arguments limit which local branches
214 + are considered, e.g. `git branch --delete-merged 'origin/*'
215 + 'topic-*'`.
216 + +
217 + A branch is not deleted when:
218 + +
219 + --
220 + * its configured upstream ref no longer exists,
221 + * it is checked out in any worktree,
222 + * pushing it to the remote configured by
223 + `branch.<name>.remote` would update its upstream, so it cannot be
224 + distinguished from a branch that just looks fully merged right
225 + after a pull; this is determined by the remote's configured push and
226 + fetch refspecs,
227 + * it is the local upstream of a branch that is not being deleted, or
228 + * `branch.<name>.deleteMerged` is set to `false`.
229 + --
230 + +
231 + When such a local upstream branch has its own upstream deleted by the
232 + same operation, its upstream configuration is cleared.
233 + +
234 + A branch whose work has not yet been merged into its upstream is
235 + silently skipped. Delete it with `git branch -D` if you want to
236 + remove it anyway.
237 +
238 + `--dry-run`::
239 + With `--delete-merged`, print which branches would be
240 + deleted and exit without touching any ref. Useful for
241 + sanity-checking a wide pattern like `'origin/*'` before
242 + committing to the deletion.
243 +
202 244 `-v`::
203 245 `-vv`::
204 246 `--verbose`::
@@ -311,6 +353,14 @@ superproject's "origin/main", but tracks the submodule's "origin/main".
311 353 Only list branches whose tips are not reachable from
312 354 _<commit>_ (`HEAD` if not specified). Implies `--list`.
313 355
356 + `--forked <branch>`::
357 + Only list branches whose configured upstream matches
358 + _<branch>_. The argument can be a ref (e.g. `origin/main`,
359 + `master`), a remote name like `origin` for the branch its
360 + `origin/HEAD` points at, or a shell-style glob (e.g.
361 + `'origin/*'`). The option can be repeated to widen the
362 + filter. Implies `--list`.
363 +
314 364 `--points-at <object>`::
315 365 Only list branches of _<object>_.
316 366
modified Documentation/git-cat-file.adoc
@@ -348,15 +348,12 @@ newline. The available atoms are:
348 348 after that first run of whitespace (i.e., the "rest" of the
349 349 line) are output in place of the `%(rest)` atom.
350 350
351 - The command `remote-object-info` only supports the `%(objectname)` and
352 - `%(objectsize)` placeholders. See `CAVEATS` below for more information.
351 + The command `remote-object-info` only supports the `%(objectname)`,
352 + `%(objectsize)` and `%(objecttype)` placeholders. See `CAVEATS` below for more
353 + information.
353 354
354 355 If no format is specified, the default format is `%(objectname)
355 - %(objecttype) %(objectsize)`, except for `remote-object-info` commands which
356 - use `%(objectname) %(objectsize)` because `%(objecttype)` is not supported yet.
357 -
358 - WARNING: When "%(objecttype)" is supported, the default format WILL be unified,
359 - so DO NOT RELY on the current default format to stay the same!!!
356 + %(objecttype) %(objectsize)`.
360 357
361 358 If `--batch` is specified, or if `--batch-command` is used with the `contents`
362 359 command, the object information is followed by the object contents (consisting
@@ -453,9 +450,9 @@ scripting purposes.
453 450 CAVEATS
454 451 -------
455 452
456 - Note that only `%(objectname)` and `%(objectsize)` are currently
457 - supported by the `remote-object-info` command. Using any other placeholder in
458 - the format string will return an empty string in its position.
453 + Note that only `%(objectname)`, `%(objectsize)` and `%(objecttype)` are
454 + currently supported by the `remote-object-info` command. Using any other
455 + placeholder in the format string will return an empty string in its position.
459 456
460 457 Note that the sizes of objects on disk are reported accurately, but care
461 458 should be taken in drawing conclusions about which refs or objects are
modified Documentation/git-cherry-pick.adoc
@@ -25,7 +25,8 @@ happens:
25 25 1. The current branch and `HEAD` pointer stay at the last commit
26 26 successfully made.
27 27 2. The `CHERRY_PICK_HEAD` ref is set to point at the commit that
28 - introduced the change that is difficult to apply.
28 + introduced the change that is difficult to apply, unless the
29 + `--no-commit` option was given.
29 30 3. Paths in which the change applied cleanly are updated both
30 31 in the index file and in your working tree.
31 32 4. For conflicting paths, the index file records up to three
@@ -101,6 +102,11 @@ OPTIONS
101 102 +
102 103 This is useful when cherry-picking more than one commits'
103 104 effect to your index in a row.
105 + +
106 + This option does not record `CHERRY_PICK_HEAD`, so a plain `git commit`
107 + afterwards records you as the author. That is by design: what you are
108 + building is your own work, which you keep changing before committing,
109 + rather than a reproduction of the original commit.
104 110
105 111 -s::
106 112 --signoff::
modified Documentation/git-fast-import.adoc
@@ -9,7 +9,7 @@ git-fast-import - Backend for fast Git data importers
9 9 SYNOPSIS
10 10 --------
11 11 [verse]
12 - frontend | 'git fast-import' [<options>]
12 + 'git fast-import' [<options>]
13 13
14 14 DESCRIPTION
15 15 -----------
@@ -65,6 +65,13 @@ Only enable this option if you trust the program generating the
65 65 fast-import stream! This option is enabled automatically for
66 66 remote-helpers that use the `import` capability, as they are
67 67 already trusted to run their own code.
68 + +
69 + Note that this option has to be spelled in full, and has to appear
70 + before any option whose value is separated from it by a space, for
71 + the unsafe `feature` commands in the stream to be allowed. So
72 + `--allow-unsafe` or `--depth 5 --allow-unsafe-features` still refuse
73 + them, while `--allow-unsafe-features --depth 5` and
74 + `--depth=5 --allow-unsafe-features` allow them.
68 75
69 76 `--signed-tags=<mode>`::
70 77 Specify how to handle signed tags. Behaves in the same way as
modified Documentation/git-format-patch.adoc
@@ -8,8 +8,8 @@ git-format-patch - Prepare patches for e-mail submission
8 8
9 9 SYNOPSIS
10 10 --------
11 - [verse]
12 - 'git format-patch' [-k] [(-o|--output-directory) <dir> | --stdout]
11 + [synopsis]
12 + git format-patch [-k] [(-o|--output-directory) <dir> | --stdout]
13 13 [--no-thread | --thread[=<style>]]
14 14 [(--attach|--inline)[=<boundary>] | --no-attach]
15 15 [-s | --signoff]
@@ -40,20 +40,20 @@ DESCRIPTION
40 40 Prepare each non-merge commit with its "patch" in
41 41 one "message" per commit, formatted to resemble a UNIX mailbox.
42 42 The output of this command is convenient for e-mail submission or
43 - for use with 'git am'.
43 + for use with `git am`.
44 44
45 45 A "message" generated by the command consists of three parts:
46 46
47 47 * A brief metadata header that begins with `From <commit>`
48 48 with a fixed `Mon Sep 17 00:00:00 2001` datestamp to help programs
49 - like "file(1)" to recognize that the file is an output from this
49 + like `file`(1) to recognize that the file is an output from this
50 50 command, fields that record the author identity, the author date,
51 51 and the title of the change (taken from the first paragraph of the
52 52 commit log message).
53 53
54 54 * The second and subsequent paragraphs of the commit log message.
55 55
56 - * The "patch", which is the "diff -p --stat" output (see
56 + * The "patch", which is the `diff -p --stat` output (see
57 57 linkgit:git-diff[1]) between the commit and its parent.
58 58
59 59 The log message and the patch are separated by a line with a
@@ -61,18 +61,18 @@ three-dash line.
61 61
62 62 There are two ways to specify which commits to operate on.
63 63
64 - 1. A single commit, <since>, specifies that the commits leading
64 + 1. A single commit, _<since>_, specifies that the commits leading
65 65 to the tip of the current branch that are not in the history
66 - that leads to the <since> to be output.
66 + that leads to the _<since>_ to be output.
67 67
68 - 2. Generic <revision-range> expression (see "SPECIFYING
69 - REVISIONS" section in linkgit:gitrevisions[7]) means the
68 + 2. Generic _<revision-range>_ expression (see 'SPECIFYING
69 + REVISIONS' section in linkgit:gitrevisions[7]) means the
70 70 commits in the specified range.
71 71
72 - The first rule takes precedence in the case of a single <commit>. To
72 + The first rule takes precedence in the case of a single _<commit>_. To
73 73 apply the second rule, i.e., format everything since the beginning of
74 - history up until <commit>, use the `--root` option: `git format-patch
75 - --root <commit>`. If you want to format only <commit> itself, you
74 + history up until _<commit>_, use the `--root` option: `git format-patch
75 + --root <commit>`. If you want to format only _<commit>_ itself, you
76 76 can do this with `git format-patch -1 <commit>`.
77 77
78 78 By default, each output file is numbered sequentially from 1, and uses the
@@ -82,7 +82,7 @@ will only be numbers, without the first line of the commit appended.
82 82 The names of the output files are printed to standard
83 83 output, unless the `--stdout` option is specified.
84 84
85 - If `-o` is specified, output files are created in <dir>. Otherwise
85 + If `-o` is specified, output files are created in _<dir>_. Otherwise
86 86 they are created in the current working directory. The default path
87 87 can be set with the `format.outputDirectory` configuration option.
88 88 The `-o` option takes precedence over `format.outputDirectory`.
@@ -108,119 +108,119 @@ OPTIONS
108 108 :git-format-patch: 1
109 109 include::diff-options.adoc[]
110 110
111 - -<n>::
112 - Prepare patches from the topmost <n> commits.
111 + `-<n>`::
112 + Prepare patches from the topmost _<n>_ commits.
113 113
114 - -o <dir>::
115 - --output-directory <dir>::
116 - Use <dir> to store the resulting files, instead of the
114 + `-o <dir>`::
115 + `--output-directory=<dir>`::
116 + Use _<dir>_ to store the resulting files, instead of the
117 117 current working directory.
118 118
119 - -n::
120 - --numbered::
119 + `-n`::
120 + `--numbered`::
121 121 Name output in '[PATCH n/m]' format, even with a single patch.
122 122
123 - -N::
124 - --no-numbered::
123 + `-N`::
124 + `--no-numbered`::
125 125 Name output in '[PATCH]' format.
126 126
127 - --start-number <n>::
128 - Start numbering the patches at <n> instead of 1.
127 + `--start-number <n>`::
128 + Start numbering the patches at _<n>_ instead of 1.
129 129
130 - --numbered-files::
130 + `--numbered-files`::
131 131 Output file names will be a simple number sequence
132 132 without the default first line of the commit appended.
133 133
134 - -k::
135 - --keep-subject::
134 + `-k`::
135 + `--keep-subject`::
136 136 Do not strip/add '[PATCH]' from the first line of the
137 137 commit log message.
138 138
139 - -s::
140 - --signoff::
139 + `-s`::
140 + `--signoff`::
141 141 Add a `Signed-off-by` trailer to the commit message, using
142 142 the committer identity of yourself.
143 143 See the signoff option in linkgit:git-commit[1] for more information.
144 144
145 - --stdout::
145 + `--stdout`::
146 146 Print all commits to the standard output in mbox format,
147 147 instead of creating a file for each one.
148 148
149 - --attach[=<boundary>]::
149 + `--attach[=<boundary>]`::
150 150 Create multipart/mixed attachment, the first part of
151 151 which is the commit message and the patch itself in the
152 152 second part, with `Content-Disposition: attachment`.
153 153
154 - --no-attach::
154 + `--no-attach`::
155 155 Disable the creation of an attachment, overriding the
156 156 configuration setting.
157 157
158 - --inline[=<boundary>]::
158 + `--inline[=<boundary>]`::
159 159 Create multipart/mixed attachment, the first part of
160 160 which is the commit message and the patch itself in the
161 161 second part, with `Content-Disposition: inline`.
162 162
163 - --thread[=<style>]::
164 - --no-thread::
165 - Controls addition of `In-Reply-To` and `References` headers to
163 + `--thread[=<style>]`::
164 + `--no-thread`::
165 + Control addition of `In-Reply-To` and `References` headers to
166 166 make the second and subsequent mails appear as replies to the
167 167 first. Also controls generation of the `Message-ID` header to
168 168 reference.
169 169 +
170 - The optional <style> argument can be either `shallow` or `deep`.
171 - 'shallow' threading makes every mail a reply to the head of the
170 + The optional _<style>_ argument can be either `shallow` or `deep`.
171 + `shallow` threading makes every mail a reply to the head of the
172 172 series, where the head is chosen from the cover letter, the
173 - `--in-reply-to`, and the first patch mail, in this order. 'deep'
173 + `--in-reply-to`, and the first patch mail, in this order. `deep`
174 174 threading makes every mail a reply to the previous one.
175 175 +
176 176 The default is `--no-thread`, unless the `format.thread` configuration
177 177 is set. `--thread` without an argument is equivalent to `--thread=shallow`.
178 178 +
179 - Beware that the default for 'git send-email' is to thread emails
179 + Beware that the default for `git send-email` is to thread emails
180 180 itself. If you want `git format-patch` to take care of threading, you
181 181 will want to ensure that threading is disabled for `git send-email`.
182 182
183 - --in-reply-to=<message-id>::
183 + `--in-reply-to=<message-id>`::
184 184 Make the first mail (or all the mails with `--no-thread`) appear as a
185 - reply to the given <message-id>, which avoids breaking threads to
185 + reply to the given _<message-id>_, which avoids breaking threads to
186 186 provide a new patch series.
187 187
188 - --ignore-if-in-upstream::
188 + `--ignore-if-in-upstream`::
189 189 Do not include a patch that matches a commit in
190 - <until>..<since>. This will examine all patches reachable
191 - from <since> but not from <until> and compare them with the
190 + _<until>_.._<since>_. This will examine all patches reachable
191 + from _<since>_ but not from _<until>_ and compare them with the
192 192 patches being generated, and any patch that matches is
193 193 ignored.
194 194
195 - --always::
195 + `--always`::
196 196 Include patches for commits that do not introduce any change,
197 197 which are omitted by default.
198 198
199 - --cover-from-description=<mode>::
200 - Controls which parts of the cover letter will be automatically
199 + `--cover-from-description=<mode>`::
200 + Control which parts of the cover letter will be automatically
201 201 populated using the branch's description.
202 202 +
203 - If `<mode>` is `message` or `default`, the cover letter subject will be
203 + _<mode>_ can have the following values:
204 +
205 + `message`;;
206 + `default`;; the cover letter subject will be
204 207 populated with placeholder text. The body of the cover letter will be
205 208 populated with the branch's description. This is the default mode when
206 209 no configuration nor command line option is specified.
207 - +
208 - If `<mode>` is `subject`, the first paragraph of the branch description will
210 + `subject`;; the first paragraph of the branch description will
209 211 populate the cover letter subject. The remainder of the description will
210 212 populate the body of the cover letter.
211 - +
212 - If `<mode>` is `auto`, if the first paragraph of the branch description
213 + `auto`;; if the first paragraph of the branch description
213 214 is greater than 100 bytes, then the mode will be `message`, otherwise
214 215 `subject` will be used.
215 - +
216 - If `<mode>` is `none`, both the cover letter subject and body will be
216 + `none`;; both the cover letter subject and body will be
217 217 populated with placeholder text.
218 218
219 - --description-file=<file>::
220 - Use the contents of <file> instead of the branch's description
219 + `--description-file=<file>`::
220 + Use the contents of _<file>_ instead of the branch's description
221 221 for generating the cover letter.
222 222
223 - --subject-prefix=<subject-prefix>::
223 + `--subject-prefix=<subject-prefix>`::
224 224 Use '[<subject-prefix>]' instead of the standard '[PATCH]'
225 225 prefix in the subject line. This can be used to name a patch
226 226 series, and can be combined with the `--numbered` option.
@@ -231,14 +231,14 @@ all patches. This is often useful on mailing lists which receive
231 231 patches for several repositories and can be used to disambiguate
232 232 the patches (with a value of e.g. "PATCH my-project").
233 233
234 - --filename-max-length=<n>::
234 + `--filename-max-length=<n>`::
235 235 Instead of the standard 64 bytes, chomp the generated output
236 - filenames at around '<n>' bytes (too short a value will be
236 + filenames at around _<n>_ bytes (too short a value will be
237 237 silently raised to a reasonable length). Defaults to the
238 238 value of the `format.filenameMaxLength` configuration
239 239 variable, or 64 if unconfigured.
240 240
241 - --rfc[=<rfc>]::
241 + `--rfc[=<rfc>]`::
242 242 Prepends the string _<rfc>_ (defaults to "RFC") to
243 243 the subject prefix. As the subject prefix defaults to
244 244 "PATCH", you'll get "RFC PATCH" by default.
@@ -254,38 +254,38 @@ can be prefixed with a dash ("`-`") to signal that the rest of
254 254 the _<rfc>_ string should be appended to the subject prefix instead,
255 255 e.g., `--rfc='-(WIP)'` results in "PATCH (WIP)".
256 256
257 - -v <n>::
258 - --reroll-count=<n>::
259 - Mark the series as the <n>-th iteration of the topic. The
257 + `-v <n>`::
258 + `--reroll-count=<n>`::
259 + Mark the series as the _<n>_-th iteration of the topic. The
260 260 output filenames have `v<n>` prepended to them, and the
261 261 subject prefix ("PATCH" by default, but configurable via the
262 - `--subject-prefix` option) has ` v<n>` appended to it. E.g.
262 + `--subject-prefix` option) has `v<n>` appended to it. E.g.
263 263 `--reroll-count=4` may produce `v4-0001-add-makefile.patch`
264 264 file that has "Subject: [PATCH v4 1/20] Add makefile" in it.
265 - `<n>` does not have to be an integer (e.g. "--reroll-count=4.4",
266 - or "--reroll-count=4rev2" are allowed), but the downside of
265 + _<n>_ does not have to be an integer (e.g. `--reroll-count=4.4`,
266 + or `--reroll-count=4rev2` are allowed), but the downside of
267 267 using such a reroll-count is that the range-diff/interdiff
268 268 with the previous version does not state exactly which
269 269 version the new iteration is compared against.
270 270
271 - --to=<email>::
271 + `--to=<email>`::
272 272 Add a `To:` header to the email headers. This is in addition
273 273 to any configured headers, and may be used multiple times.
274 274 The negated form `--no-to` discards all `To:` headers added so
275 275 far (from config or command line).
276 276
277 - --cc=<email>::
277 + `--cc=<email>`::
278 278 Add a `Cc:` header to the email headers. This is in addition
279 279 to any configured headers, and may be used multiple times.
280 280 The negated form `--no-cc` discards all `Cc:` headers added so
281 281 far (from config or command line).
282 282
283 - --from::
284 - --from=<ident>::
285 - Use `ident` in the `From:` header of each email. In case of a
283 + `--from`::
284 + `--from=<ident>`::
285 + Use _<ident>_ in the `From:` header of each email. In case of a
286 286 commit email, if the author ident of the commit is not textually
287 - identical to the provided `ident`, place a `From:` header in the
288 - body of the message with the original author. If no `ident` is
287 + identical to the provided _<ident>_, place a `From:` header in the
288 + body of the message with the original author. If no _<ident>_ is
289 289 given, or if the option is not passed at all, use the ident of
290 290 the current committer.
291 291 +
@@ -296,8 +296,8 @@ header). Note also that `git send-email` already handles this
296 296 transformation for you, and this option should not be used if you are
297 297 feeding the result to `git send-email`.
298 298
299 - --force-in-body-from::
300 - --no-force-in-body-from::
299 + `--force-in-body-from`::
300 + `--no-force-in-body-from`::
301 301 With the e-mail sender specified via the `--from` option, by
302 302 default, an in-body "From:" to identify the real author of
303 303 the commit is added at the top of the commit log message if
@@ -308,7 +308,7 @@ feeding the result to `git send-email`.
308 308 Defaults to the value of the `format.forceInBodyFrom`
309 309 configuration variable.
310 310
311 - --add-header=<header>::
311 + `--add-header=<header>`::
312 312 Add an arbitrary header to the email headers. This is in addition
313 313 to any configured headers, and may be used multiple times.
314 314 For example, `--add-header="Organization: git-foo"`.
@@ -316,13 +316,13 @@ feeding the result to `git send-email`.
316 316 `Cc:`, and custom) headers added so far from config or command
317 317 line.
318 318
319 - --cover-letter::
320 - --no-cover-letter::
319 + `--cover-letter`::
320 + `--no-cover-letter`::
321 321 In addition to the patches, generate a cover letter file containing the
322 322 branch description, commit list and the overall diffstat. You can fill
323 323 in a description in the file before sending it out.
324 324
325 - --commit-list-format=<format-spec>::
325 + `--commit-list-format=<format-spec>`::
326 326 Specify the format in which to generate the commit list of the patch
327 327 series. The accepted values for format-spec are `shortlog`, `modern` or
328 328 a format-string prefixed with `log:`. E.g. `log: %s (%an)`.
@@ -334,28 +334,28 @@ feeding the result to `git send-email`.
334 334 This option given from the command-line implies the use of
335 335 `--cover-letter` unless `--no-cover-letter` is given.
336 336
337 - --encode-email-headers::
338 - --no-encode-email-headers::
337 + `--encode-email-headers`::
338 + `--no-encode-email-headers`::
339 339 Encode email headers that have non-ASCII characters with
340 340 "Q-encoding" (described in RFC 2047), instead of outputting the
341 341 headers verbatim. Defaults to the value of the
342 342 `format.encodeEmailHeaders` configuration variable.
343 343
344 - --interdiff=<previous>::
344 + `--interdiff=<previous>`::
345 345 As a reviewer aid, insert an interdiff into the cover letter,
346 346 or as commentary of the lone patch of a 1-patch series, showing
347 347 the differences between the previous version of the patch series and
348 - the series currently being formatted. `previous` is a single revision
348 + the series currently being formatted. _<previous>_ is a single revision
349 349 naming the tip of the previous series which shares a common base with
350 350 the series being formatted (for example `git format-patch
351 351 --cover-letter --interdiff=feature/v1 -3 feature/v2`).
352 352
353 - --range-diff=<previous>::
353 + `--range-diff=<previous>`::
354 354 As a reviewer aid, insert a range-diff (see linkgit:git-range-diff[1])
355 355 into the cover letter, or as commentary of the lone patch of a
356 356 1-patch series, showing the differences between the previous
357 357 version of the patch series and the series currently being formatted.
358 - `previous` can be a single revision naming the tip of the previous
358 + _<previous>_ can be a single revision naming the tip of the previous
359 359 series if it shares a common base with the series being formatted (for
360 360 example `git format-patch --cover-letter --range-diff=feature/v1 -3
361 361 feature/v2`), or a revision range if the two versions of the series are
@@ -367,7 +367,7 @@ product of `format-patch` is generated, and they are not passed to
367 367 the underlying `range-diff` machinery used to generate the cover-letter
368 368 material (this may change in the future).
369 369
370 - --creation-factor=<percent>::
370 + `--creation-factor=<percent>`::
371 371 Used with `--range-diff`, tweak the heuristic which matches up commits
372 372 between the previous and current series of patches by adjusting the
373 373 creation/deletion cost fudge factor. See linkgit:git-range-diff[1])
@@ -378,8 +378,8 @@ case is to show comparison with an older iteration of the same
378 378 topic and the tool should find more correspondence between the two
379 379 sets of patches.
380 380
381 - --notes[=<ref>]::
382 - --no-notes::
381 + `--notes[=<ref>]`::
382 + `--no-notes`::
383 383 Append the notes (see linkgit:git-notes[1]) for the commit
384 384 after the three-dash line.
385 385 +
@@ -394,17 +394,17 @@ configuration options in linkgit:git-notes[1] to use this workflow).
394 394 The default is `--no-notes`, unless the `format.notes` configuration is
395 395 set.
396 396
397 - --signature=<signature>::
398 - --no-signature::
397 + `--signature=<signature>`::
398 + `--no-signature`::
399 399 Add a signature to each message produced. Per RFC 3676 the signature
400 - is separated from the body by a line with '-- ' on it. If the
400 + is separated from the body by a line with "-- " on it. If the
401 401 signature option is omitted the signature defaults to the Git version
402 402 number.
403 403
404 - --signature-file=<file>::
405 - Works just like --signature except the signature is read from a file.
404 + `--signature-file=<file>`::
405 + Works just like `--signature` except the signature is read from a file.
406 406
407 - --suffix=.<sfx>::
407 + `--suffix=.<sfx>`::
408 408 Instead of using `.patch` as the suffix for generated
409 409 filenames, use specified suffix. A common alternative is
410 410 `--suffix=.txt`. Leaving this empty will remove the `.patch`
@@ -413,36 +413,36 @@ set.
413 413 Note that the leading character does not have to be a dot; for example,
414 414 you can use `--suffix=-patch` to get `0001-description-of-my-change-patch`.
415 415
416 - -q::
417 - --quiet::
416 + `-q`::
417 + `--quiet`::
418 418 Do not print the names of the generated files to standard output.
419 419
420 - --no-binary::
420 + `--no-binary`::
421 421 Do not output contents of changes in binary files, instead
422 422 display a notice that those files changed. Patches generated
423 423 using this option cannot be applied properly, but they are
424 424 still useful for code review.
425 425
426 - --zero-commit::
426 + `--zero-commit`::
427 427 Output an all-zero hash in each patch's From header instead
428 428 of the hash of the commit.
429 429
430 - --no-base::
431 - --base[=<commit>]::
430 + `--no-base`::
431 + `--base[=<commit>]`::
432 432 Record the base tree information to identify the state the
433 433 patch series applies to. See the BASE TREE INFORMATION section
434 - below for details. If <commit> is "auto", a base commit is
434 + below for details. If _<commit>_ is `auto`, a base commit is
435 435 automatically chosen. The `--no-base` option overrides a
436 436 `format.useAutoBase` configuration.
437 437
438 - --root::
439 - Treat the revision argument as a <revision-range>, even if it
438 + `--root`::
439 + Treat the revision argument as a _<revision-range>_, even if it
440 440 is just a single commit (that would normally be treated as a
441 - <since>). Note that root commits included in the specified
441 + _<since>_). Note that root commits included in the specified
442 442 range are always formatted as creation patches, independently
443 443 of this flag.
444 444
445 - --progress::
445 + `--progress`::
446 446 Show progress reports on stderr as patches are generated.
447 447
448 448 CONFIGURATION
@@ -453,7 +453,7 @@ outputting more than one patch, add "To:" or "Cc:" headers, configure
453 453 attachments, change the patch output directory, and sign off patches
454 454 with configuration variables.
455 455
456 - ------------
456 + ----
457 457 [format]
458 458 headers = "Organization: git-foo\n"
459 459 subjectPrefix = CHANGE
@@ -467,17 +467,16 @@ with configuration variables.
467 467 coverLetter = auto
468 468 commitListFormat = shortlog
469 469 coverFromDescription = auto
470 - ------------
471 -
470 + ----
472 471
473 472 DISCUSSION
474 473 ----------
475 474
476 - The patch produced by 'git format-patch' is in UNIX mailbox format,
475 + The patch produced by `git format-patch` is in UNIX mailbox format,
477 476 with a fixed "magic" time stamp to indicate that the file is output
478 477 from format-patch rather than a real mailbox, like so:
479 478
480 - ------------
479 + ----
481 480 From 8f72bad1baf19a53459661343e21d6491c3908d3 Mon Sep 17 00:00:00 2001
482 481 From: Tony Luck <tony.luck@intel.com>
483 482 Date: Tue, 13 Jul 2010 11:42:54 -0700
@@ -492,7 +491,7 @@ arch/arm config files were slimmed down using a python script
492 491
493 492 Do the same for ia64 so we can have sleek & trim looking
494 493 ...
495 - ------------
494 + ----
496 495
497 496 Typically it will be placed in a MUA's drafts folder, edited to add
498 497 timely commentary that should not go in the changelog after the three
@@ -502,12 +501,12 @@ can save interesting patches in a UNIX mailbox and apply them with
502 501 linkgit:git-am[1].
503 502
504 503 When a patch is part of an ongoing discussion, the patch generated by
505 - 'git format-patch' can be tweaked to take advantage of the 'git am
506 - --scissors' feature. After your response to the discussion comes a
504 + `git format-patch` can be tweaked to take advantage of the `git am
505 + --scissors` feature. After your response to the discussion comes a
507 506 line that consists solely of "`-- >8 --`" (scissors and perforation),
508 507 followed by the patch with unnecessary header fields removed:
509 508
510 - ------------
509 + ----
511 510 ...
512 511 > So we should do such-and-such.
513 512
@@ -518,7 +517,7 @@ Subject: [IA64] Put ia64 config files on the Uwe Kleine-König diet
518 517
519 518 arch/arm config files were slimmed down using a python script
520 519 ...
521 - ------------
520 + ----
522 521
523 522 When sending a patch this way, most often you are sending your own
524 523 patch, so in addition to the "`From $SHA1 $magic_timestamp`" marker you
@@ -540,7 +539,7 @@ two common types of corruption:
540 539 One way to test if your MUA is set up correctly is:
541 540
542 541 * Send the patch to yourself, exactly the way you would, except
543 - with To: and Cc: lines that do not contain the list and
542 + with `To:` and `Cc:` lines that do not contain the list and
544 543 maintainer address.
545 544
546 545 * Save that patch to a file in UNIX mailbox format. Call it a.patch,
@@ -561,12 +560,12 @@ If it does not apply correctly, there can be various reasons.
561 560 this case.
562 561
563 562 * The MUA corrupted your patch; "am" would complain that
564 - the patch does not apply. Look in the .git/rebase-apply/ subdirectory and
565 - see what 'patch' file contains and check for the common
566 - corruption patterns mentioned above.
563 + the patch does not apply. Look in the `.git/rebase-apply/` subdirectory and
564 + see what `patch` file contains and check for the common
565 + corruption patterns mentioned above.
567 566
568 - * While at it, check the 'info' and 'final-commit' files as well.
569 - If what is in 'final-commit' is not exactly what you would want to
567 + * While at it, check the `info` and `final-commit` files as well.
568 + If what is in `final-commit` is not exactly what you would want to
570 569 see in the commit log message, it is very likely that the
571 570 receiver would end up hand editing the log message when applying
572 571 your patch. Things like "Hi, this is my first patch.\n" in the
@@ -582,11 +581,11 @@ GMail
582 581 ~~~~~
583 582 GMail does not have any way to turn off line wrapping in the web
584 583 interface, so it will mangle any emails that you send. You can however
585 - use "git send-email" and send your patches through the GMail SMTP server, or
584 + use `git send-email` and send your patches through the GMail SMTP server, or
586 585 use any IMAP email client to connect to the google IMAP server and forward
587 586 the emails through that.
588 587
589 - For hints on using 'git send-email' to send your patches through the
588 + For hints on using `git send-email` to send your patches through the
590 589 GMail SMTP server, see the EXAMPLE section of linkgit:git-send-email[1].
591 590
592 591 For hints on submission using the IMAP interface, see the EXAMPLE
@@ -595,7 +594,7 @@ section of linkgit:git-imap-send[1].
595 594 Thunderbird
596 595 ~~~~~~~~~~~
597 596 By default, Thunderbird will both wrap emails as well as flag
598 - them as being 'format=flowed', both of which will make the
597 + them as being `format=flowed`, both of which will make the
599 598 resulting email unusable by Git.
600 599
601 600 There are three different approaches: use an add-on to turn off line wraps,
@@ -609,14 +608,14 @@ Install the Toggle Line Wrap add-on that is available from
609 608 https://addons.thunderbird.net/thunderbird/addon/toggle-line-wrap
610 609 It adds a button "Line Wrap" to the composer's toolbar
611 610 that you can tick off. Now you can compose the message as you otherwise do
612 - (cut + paste, 'git format-patch' | 'git imap-send', etc), but you have to
611 + (cut + paste, `git format-patch` | `git imap-send`, etc), but you have to
613 612 insert line breaks manually in any text that you type.
614 613
615 614 As a bonus feature, the add-on can detect patch text in the composer
616 615 and warns when line wrapping has not yet been turned off.
617 616
618 617 The add-on requires a few tweaks of the advanced configuration
619 - (about:config). These are listed on the download page.
618 + (`about:config`). These are listed on the download page.
620 619
621 620 Approach #2 (configuration)
622 621 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -643,7 +642,7 @@ Toggle it to make sure it is set to `false`. Also, search for
643 642 Toggle it to make sure it is set to `false`.
644 643
645 644 After that is done, you should be able to compose email as you
646 - otherwise would (cut + paste, 'git format-patch' | 'git imap-send', etc),
645 + otherwise would (cut + paste, `git format-patch` | `git imap-send`, etc),
647 646 and the patches will not be mangled.
648 647
649 648 Approach #3 (external editor)
@@ -660,14 +659,14 @@ External Editor from https://globs.org/articles.php?lng=en&pg=8
660 659 "Composition & Addressing" panel of the account to be used to
661 660 send the patch.
662 661
663 - 3. In the main Thunderbird window, 'before' you open the compose
662 + 3. In the main Thunderbird window, _before_ you open the compose
664 663 window for the patch, use Tools->about:config to set the
665 664 following to the indicated values:
666 665 +
667 - ----------
666 + ----
668 667 mailnews.send_plaintext_flowed => false
669 668 mailnews.wraplength => 0
670 - ----------
669 + ----
671 670
672 671 4. Open a compose window and click the external editor icon.
673 672
@@ -677,11 +676,11 @@ External Editor from https://globs.org/articles.php?lng=en&pg=8
677 676 Side note: it may be possible to do step 2 with
678 677 about:config and the following settings but no one's tried yet.
679 678
680 - ----------
679 + ----
681 680 mail.html_compose => false
682 681 mail.identity.default.compose_html => false
683 682 mail.identity.id?.compose_html => false
684 - ----------
683 + ----
685 684
686 685 There is a script in contrib/thunderbird-patch-inline which can help
687 686 you include patches with Thunderbird in an easy way. To use it, do the
@@ -708,15 +707,15 @@ BASE TREE INFORMATION
708 707
709 708 The base tree information block is used for maintainers or third party
710 709 testers to know the exact state the patch series applies to. It consists
711 - of the 'base commit', which is a well-known commit that is part of the
710 + of the "base commit", which is a well-known commit that is part of the
712 711 stable part of the project history everybody else works off of, and zero
713 - or more 'prerequisite patches', which are well-known patches in flight
714 - that is not yet part of the 'base commit' that need to be applied on top
715 - of 'base commit' in topological order before the patches can be applied.
712 + or more "prerequisite patches", which are well-known patches in flight
713 + that is not yet part of the "base commit" that need to be applied on top
714 + of "base commit" in topological order before the patches can be applied.
716 715
717 - The 'base commit' is shown as "base-commit: " followed by the 40-hex of
718 - the commit object name. A 'prerequisite patch' is shown as
719 - "prerequisite-patch-id: " followed by the 40-hex 'patch id', which can
716 + The "base commit" is shown as "`base-commit:` " followed by the 40-hex of
717 + the commit object name. A "prerequisite patch" is shown as
718 + "`prerequisite-patch-id:` " followed by the 40-hex "patch id", which can
720 719 be obtained by passing the patch through the `git patch-id --stable`
721 720 command.
722 721
@@ -734,12 +733,12 @@ range), the base tree information block is shown at the end of the
734 733 first message the command outputs (either the first patch, or the
735 734 cover letter), like this:
736 735
737 - ------------
736 + ----
738 737 base-commit: P
739 738 prerequisite-patch-id: X
740 739 prerequisite-patch-id: Y
741 740 prerequisite-patch-id: Z
742 - ------------
741 + ----
743 742
744 743 For non-linear topology, such as
745 744
@@ -763,7 +762,7 @@ EXAMPLES
763 762 --------
764 763
765 764 * Extract commits between revisions R1 and R2, and apply them on top of
766 - the current branch using 'git am' to cherry-pick them:
765 + the current branch using `git am` to cherry-pick them:
767 766 +
768 767 ------------
769 768 $ git format-patch -k --stdout R1..R2 | git am -3 -k
@@ -778,7 +777,7 @@ $ git format-patch origin
778 777 +
779 778 For each commit a separate file is created in the current directory.
780 779
781 - * Extract all commits that lead to 'origin' since the inception of the
780 + * Extract all commits that lead to `origin` since the inception of the
782 781 project:
783 782 +
784 783 ------------
@@ -794,7 +793,7 @@ $ git format-patch -M -B origin
794 793 Additionally, it detects and handles renames and complete rewrites
795 794 intelligently to produce a renaming patch. A renaming patch reduces
796 795 the amount of text output, and generally makes it easier to review.
797 - Note that non-Git "patch" programs won't understand renaming patches, so
796 + Note that non-Git `patch` programs won't understand renaming patches, so
798 797 use it only when you know the recipient uses Git to apply your patch.
799 798
800 799 * Extract three topmost commits from the current branch and format them
modified Documentation/git-format-rev.adoc
@@ -93,12 +93,13 @@ acts as a _terminator_, not a _separator_. In other words, the final
93 93 line or record is also terminated by the terminator character.
94 94
95 95 The mode `--stdin-mode=text` replaces each object name with the
96 - formatted commit, i.e. the format `%s` would transform some commit
97 - object name to `<subject>` without any termination. Like this:
96 + formatted commit, i.e. the format `"%s"` would transform some commit
97 + object name to `"<subject>"` without any termination. Like this:
98 98
99 - ----
99 + [synopsis]
100 + --
100 101 Did we not fix this in "<subject>"?
101 - ----
102 + --
102 103
103 104 It is safe to interactively read and write from this command since each
104 105 record is immediately flushed.
modified Documentation/git-http-fetch.adoc
@@ -48,13 +48,15 @@ commit-id::
48 48 line (which is not expected in
49 49 this case), 'git http-fetch' fetches the packfile directly at the given
50 50 URL and uses index-pack to generate corresponding .idx and .keep files.
51 - The hash is used to determine the name of the temporary file and is
52 - arbitrary. The output of index-pack is printed to stdout. Requires
53 - --index-pack-args.
51 + The hash is used to determine the name of the temporary file. It need
52 + not be the pack hash, but it must uniquely identify the pack contents
53 + for resumption. The output of index-pack is printed to stdout. Requires
54 + one or more --index-pack-arg options.
54 55
55 - --index-pack-args=<args>::
56 - For internal use only. The command to run on the contents of the
57 - downloaded pack. Arguments are URL-encoded separated by spaces.
56 + --index-pack-arg=<arg>::
57 + For internal use only. The first instance specifies the command run on
58 + the contents of the downloaded pack. Subsequent instances specify its
59 + arguments.
58 60
59 61 --recover::
60 62 Verify that everything reachable from target is fetched. Used after
modified Documentation/git-imap-send.adoc
@@ -9,7 +9,7 @@ git-imap-send - Send a collection of patches from stdin to an IMAP folder
9 9 SYNOPSIS
10 10 --------
11 11 [synopsis]
12 - git imap-send [-v] [-q] [--[no-]curl] [(--folder|-f) <folder>]
12 + git imap-send [-v] [-q] [--[no-]curl] [--[no-]draft] [(--folder|-f) <folder>]
13 13 git imap-send --list
14 14
15 15
@@ -24,9 +24,9 @@ that order.
24 24
25 25 Typical usage is something like:
26 26
27 - ------
27 + ----
28 28 $ git format-patch --signoff --stdout --attach origin | git imap-send
29 - ------
29 + ----
30 30
31 31
32 32 OPTIONS
@@ -55,6 +55,13 @@ OPTIONS
55 55 using libcurl. Ignored if Git was built with the NO_OPENSSL option
56 56 set.
57 57
58 + `--draft`::
59 + `--no-draft`::
60 + Mark uploaded messages with the IMAP `\Draft` flag. The default is `--no-draft`.
61 + +
62 + With libcurl, `--draft` requires version 8.13.0 or later.
63 + Older libcurl still uploads the message but cannot set the flag.
64 +
58 65 `--list`::
59 66 Run the IMAP LIST command to output a list of all the folders present.
60 67
@@ -138,13 +145,13 @@ have set up) may not be verified correctly.
138 145
139 146 Using Gmail's IMAP interface:
140 147
141 - ---------
148 + ----
142 149 [imap]
143 150 folder = "[Gmail]/Drafts"
144 151 host = imaps://imap.gmail.com
145 152 user = user@gmail.com
146 153 port = 993
147 - ---------
154 + ----
148 155
149 156 Gmail does not allow using your regular password for `git imap-send`.
150 157 If you have multi-factor authentication set up on your Gmail account, you
@@ -167,32 +174,34 @@ than using app-specific passwords, and also does not enforce the need of
167 174 having multi-factor authentication. You will have to use an OAuth2.0
168 175 access token in place of your password when using this authentication.
169 176
170 - ---------
177 + ----
171 178 [imap]
172 179 folder = "[Gmail]/Drafts"
173 180 host = imaps://imap.gmail.com
174 181 user = user@gmail.com
175 182 port = 993
176 183 authmethod = OAUTHBEARER
177 - ---------
184 + ----
178 185
179 186 Using Outlook's IMAP interface:
180 187
181 188 Unlike Gmail, Outlook only supports OAuth2.0 based authentication. Also, it
182 189 supports only `XOAUTH2` as the mechanism.
183 190
184 - ---------
191 + ----
185 192 [imap]
186 193 folder = "Drafts"
187 194 host = imaps://outlook.office365.com
188 195 user = user@outlook.com
189 196 port = 993
190 197 authmethod = XOAUTH2
191 - ---------
198 + ----
192 199
193 200 Once the commits are ready to be sent, run the following command:
194 201
195 - $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
202 + ----
203 + $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
204 + ----
196 205
197 206 Just make sure to disable line wrapping in the email client (Gmail's web
198 207 interface will wrap lines no matter what, so you need to use a real
@@ -217,7 +226,7 @@ users may wish to visit this web page for more information:
217 226
218 227 SEE ALSO
219 228 --------
220 - linkgit:git-format-patch[1], linkgit:git-send-email[1], mbox(5)
229 + linkgit:git-format-patch[1], linkgit:git-send-email[1], `mbox`(5)
221 230
222 231 GIT
223 232 ---
modified Documentation/git-interpret-trailers.adoc
@@ -3,7 +3,7 @@ git-interpret-trailers(1)
3 3
4 4 NAME
5 5 ----
6 - git-interpret-trailers - Add or parse structured information in commit messages
6 + git-interpret-trailers - Add or parse metadata in commit messages
7 7
8 8 SYNOPSIS
9 9 --------
@@ -14,9 +14,15 @@ git interpret-trailers [--in-place] [--trim-empty]
14 14
15 15 DESCRIPTION
16 16 -----------
17 - Add or parse _trailer_ lines that look similar to RFC 822 e-mail
18 - headers, at the end of the otherwise free-form part of a commit
19 - message. For example, in the following commit message
17 + Add or parse trailer metadata at the end of the otherwise
18 + free-form part of a commit message, or any other kind of text.
19 +
20 + A _trailer_ in its simplest form is a key-value pair with a colon as a
21 + separator. The _key_ consists of ASCII alphanumeric characters and
22 + hyphens (`-`). A _trailer block_ consists of one or more trailers. The
23 + trailer block needs to be preceded by a blank line, where a _blank line_
24 + is either an empty or a whitespace-only line. For example, in the
25 + following commit message
20 26
21 27 ------------------------------------------------
22 28 subject
@@ -54,10 +60,18 @@ are applied to each input and the way any existing trailer in
54 60 the input is changed. They also make it possible to
55 61 automatically add some trailers.
56 62
57 - By default, a `<key>=<value>` or `<key>:<value>` argument given
58 - using `--trailer` will be appended after the existing trailers only if
59 - the last trailer has a different (_<key>_, _<value>_) pair (or if there
60 - is no existing trailer). The _<key>_ and _<value>_ parts will be trimmed
63 + Let's consider new trailers added with `--trailer`.
64 + By default, the new trailer will appear at the end of the trailer block.
65 + Also by default, this new trailer will only be added
66 + if the last trailer is different to it.
67 + A trailer block will be created with only that trailer if a trailer
68 + block does not already exist. Recall that a trailer block needs to be
69 + preceded by a blank line, so a blank line will be inserted before the
70 + new trailer block in that case.
71 +
72 + This is how the new trailer is added: a `<key>=<value>` or
73 + `<key>:<value>` argument given using `--trailer` will be appended after
74 + the existing trailers. The _<key>_ and _<value>_ parts will be trimmed
61 75 to remove starting and trailing whitespace, and the resulting trimmed
62 76 _<key>_ and _<value>_ will appear in the output like this:
63 77
@@ -68,6 +82,16 @@ key: value
68 82 This means that the trimmed _<key>_ and _<value>_ will be separated by
69 83 "`:`{nbsp}" (one colon followed by one space).
70 84
85 + Existing trailers are extracted from the input by looking for the
86 + trailer block. A trailer block is a group of one or more lines that (i)
87 + is all trailers, or (ii) contains at least one Git-generated or
88 + user-configured trailer and consists of at
89 + least 25% trailers.
90 + The trailer block is by definition at the end of the commit message.
91 + The message in turn is either (i) at the end of the input, or (ii) the
92 + last non-whitespace lines before a line that starts with `---` (followed
93 + by a space or the end of the line).
94 +
71 95 For convenience, a _<key-alias>_ can be configured to make using `--trailer`
72 96 shorter to type on the command line. This can be configured using the
73 97 `trailer.<key-alias>.key` configuration variable. The _<key-alias>_ must be a prefix
@@ -81,20 +105,6 @@ trailer.sign.key "Signed-off-by: "
81 105 in your configuration, you only need to specify `--trailer="sign: foo"`
82 106 on the command line instead of `--trailer="Signed-off-by: foo"`.
83 107
84 - By default the new trailer will appear at the end of all the existing
85 - trailers. If there is no existing trailer, the new trailer will appear
86 - at the end of the input. A blank line will be added before the new
87 - trailer if there isn't one already.
88 -
89 - Existing trailers are extracted from the input by looking for
90 - a group of one or more lines that (i) is all trailers, or (ii) contains at
91 - least one Git-generated or user-configured trailer and consists of at
92 - least 25% trailers.
93 - The group must be preceded by one or more empty (or whitespace-only) lines.
94 - The group must either be at the end of the input or be the last
95 - non-whitespace lines before a line that starts with `---` (followed by a
96 - space or the end of the line).
97 -
98 108 When reading trailers, there can be no whitespace before or inside the
99 109 _<key>_, but any number of regular space and tab characters are allowed
100 110 between the _<key>_ and the separator. There can be whitespaces before,
@@ -107,8 +117,22 @@ key: This is a very long value, with spaces and
107 117 newlines in it.
108 118 ------------------------------------------------
109 119
110 - Note that trailers do not follow (nor are they intended to follow) many of the
111 - rules for RFC 822 headers. For example they do not follow the encoding rule.
120 + OTHER RULES
121 + -----------
122 +
123 + What was covered in the previous section are the rules that are relevant
124 + for regular use. The following points are included for completeness.
125 +
126 + --
127 + * This command ignores comment lines (see `core.commentString` in
128 + linkgit:git-config[1]). This is for use with the `prepare-commit-msg`
129 + and `commit-msg` hooks.
130 +
131 + * Candidate trailer lines that have `:` as the separator, that have no
132 + whitespace before the value part, and that start with `//` are not
133 + recognized as trailers. This is to avoid accidentally interpreting
134 + URLs as trailers (e.g. lines that start with `https://`).
135 + --
112 136
113 137 OPTIONS
114 138 -------
@@ -402,6 +426,29 @@ mv "\$1.new" "\$1"
402 426 $ chmod +x .git/hooks/commit-msg
403 427 ------------
404 428
429 + * Here we try to use three different trailer keys. But it fails because
430 + two of them are not recognized as trailer keys.
431 + +
432 + ----
433 + $ cat msg.txt
434 + subject
435 +
436 + Skapad-på: some-branch
437 + Hash-in-v6.11: 45c12d3269fe48f22834320c782ffe86c3560f2c
438 + Reviewed-by: Alice <alice@example.com>
439 + $ git interpret-trailers --only-trailers <msg.txt
440 + $
441 + ----
442 + +
443 + Recall that a trailer key has to consist of only ASCII alphanumeric
444 + characters and hyphens, and this does not hold for the two first
445 + supposed trailer keys. And now none are recognized as trailers because
446 + the candidate trailer block has at least one non-trailer line, even
447 + though `Reviewed-by` is a valid trailer key. Recall that a trailer block
448 + has to either (i) be all trailers, or (ii) consist of at least one
449 + Git-generated or user-configured trailer (and some other conditions).
450 + And (ii) is not satisfied since we have not configured any trailer keys.
451 +
405 452 SEE ALSO
406 453 --------
407 454 linkgit:git-commit[1], linkgit:git-format-patch[1], linkgit:git-config[1]
modified Documentation/git-pack-refs.adoc
@@ -7,8 +7,8 @@ git-pack-refs - Pack heads and tags for efficient repository access
7 7
8 8 SYNOPSIS
9 9 --------
10 - [verse]
11 - 'git pack-refs' [--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]
10 + [synopsis]
11 + git pack-refs [--all] [--no-prune] [--auto] [--include <pattern>] [--exclude <pattern>]
12 12
13 13 DESCRIPTION
14 14 -----------
@@ -52,8 +52,8 @@ BUGS
52 52 ----
53 53
54 54 Older documentation written before the packed-refs mechanism was
55 - introduced may still say things like ".git/refs/heads/<branch> file
56 - exists" when it means "branch <branch> exists".
55 + introduced may still say things like ".git/refs/heads/_<branch>_ file
56 + exists" when it means "branch _<branch>_ exists".
57 57
58 58
59 59 GIT
modified Documentation/git-refs.adoc
@@ -35,44 +35,59 @@ COMMANDS
35 35
36 36 `migrate`::
37 37 Migrate ref store between different formats.
38 + +
39 + [WARNING]
40 + --
41 + The ref format migration has several known limitations in its current form:
42 +
43 + * It is not possible to migrate repositories that have worktrees.
44 +
45 + * There is no way to block concurrent writes to the repository during an
46 + ongoing migration. Concurrent writes can lead to an inconsistent migrated
47 + state. Users are expected to block writes on a higher level. If your
48 + repository is registered for scheduled maintenance, it is recommended to
49 + unregister it first with linkgit:git-maintenance[1].
50 +
51 + These limitations may eventually be lifted.
52 + --
38 53
39 54 `verify`::
40 55 Verify reference database consistency.
41 56
42 - list::
57 + `list`::
43 58 List references in the repository with support for filtering,
44 59 formatting, and sorting. This subcommand is an alias for
45 60 linkgit:git-for-each-ref[1] and offers identical functionality.
46 61
47 - exists::
62 + `exists`::
48 63 Check whether the given reference exists. Returns an exit code of 0 if
49 64 it does, 2 if it is missing, and 1 in case looking up the reference
50 65 failed with an error other than the reference being missing. This does
51 66 not verify whether the reference resolves to an actual object.
52 67
53 - optimize::
68 + `optimize`::
54 69 Optimizes references to improve repository performance and reduce disk
55 70 usage. This subcommand is an alias for linkgit:git-pack-refs[1] and
56 71 offers identical functionality.
57 72
58 - create::
73 + `create`::
59 74 Create the given reference, which must not already exist, pointing at
60 75 `<new-value>`.
61 76
62 - delete::
77 + `delete`::
63 78 Delete the given reference. This subcommand mirrors `git update-ref -d`
64 79 (see linkgit:git-update-ref[1]). When `<old-value>` is given, the
65 80 reference is only deleted after verifying that it currently contains
66 81 `<old-value>`.
67 82
68 - update::
83 + `update`::
69 84 Update the given reference to point at `<new-value>`. If `<old-value>`
70 85 is given, the reference is only updated after verifying that it
71 86 currently contains `<old-value>`. As a special case, an all-zeroes
72 87 `<new-value>` deletes the branch, whereas an all-zeroes `<old-value>`
73 88 ensures that the branch does not yet exist.
74 89
75 - rename::
90 + `rename`::
76 91 Rename the reference `<oldref>` to `<newref>`. The old reference must
77 92 exist and the new reference must not yet exist, and both must have a
78 93 well-formed name (see linkgit:git-check-ref-format[1]).
@@ -130,21 +145,6 @@ The following options are specific to commands which write references:
130 145 Operate on <ref> itself rather than the reference it points to via a
131 146 symbolic ref.
132 147
133 - KNOWN LIMITATIONS
134 - -----------------
135 -
136 - The ref format migration has several known limitations in its current form:
137 -
138 - * It is not possible to migrate repositories that have worktrees.
139 -
140 - * There is no way to block concurrent writes to the repository during an
141 - ongoing migration. Concurrent writes can lead to an inconsistent migrated
142 - state. Users are expected to block writes on a higher level. If your
143 - repository is registered for scheduled maintenance, it is recommended to
144 - unregister it first with git-maintenance(1).
145 -
146 - These limitations may eventually be lifted.
147 -
148 148 GIT
149 149 ---
150 150 Part of the linkgit:git[1] suite
modified Documentation/git-repack.adoc
@@ -12,6 +12,7 @@ SYNOPSIS
12 12 'git repack' [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [-b] [-m]
13 13 [--window=<n>] [--depth=<n>] [--threads=<n>] [--keep-pack=<pack-name>]
14 14 [--write-midx[=<mode>]] [--name-hash-version=<n>] [--path-walk]
15 + [--filter=<filter-spec>] [--drop-filtered [--dry-run]]
15 16
16 17 DESCRIPTION
17 18 -----------
@@ -182,6 +183,42 @@ depth is 4095.
182 183 `objects` and `objects/info/alternates` sections of
183 184 linkgit:gitrepository-layout[5].
184 185
186 + --drop-filtered::
187 + Delete the local objects that match the `--filter` specification
188 + instead of keeping them in a separate packfile, reclaiming the
189 + disk space they occupy. This is intended for partial clones,
190 + where the filtered objects are promisor objects that remain
191 + recoverable from the promisor remote and are lazily re-fetched
192 + on demand when they are next needed.
193 + +
194 + Only large blobs are supported for now, so `--filter=blob:limit=<n>`
195 + is currently the only accepted filter. Because dropped objects must be
196 + recoverable, this option requires a promisor remote to be configured
197 + and refuses to run otherwise.
198 + +
199 + This option requires `-a`, and implies `-d`: the objects are dropped by
200 + rebuilding the promisor pack without them and then removing the now
201 + redundant old packs, so the redundant packs must be deleted for the
202 + space to actually be reclaimed. It is incompatible with `--filter-to`
203 + and with bitmap writing (`-b`/`--write-bitmap-index`), since filtering
204 + breaks the single-pack closure that bitmaps require. A bitmap setting
205 + coming from configuration is silently disabled for the duration of the
206 + command.
207 + +
208 + As a convenience, since dropped objects remain recoverable by lazy fetch,
209 + `--drop-filtered` refuses to run while another operation
210 + (merge, rebase, am, cherry-pick, revert, or bisect) is in progress, to
211 + avoid a surprising network fetch mid-operation, and refuses to drop any
212 + blob that the current index references, since such a blob would only be
213 + lazily re-fetched by the next command that inspects the working tree.
214 + These checks are skipped in bare repositories, which have neither a
215 + working tree nor an index.
216 +
217 + --dry-run::
218 + Only meaningful with `--drop-filtered`. List the objects that
219 + would be dropped, one object ID per line, without rebuilding any
220 + pack or deleting anything.
221 +
185 222 -b::
186 223 --write-bitmap-index::
187 224 Write a reachability bitmap index as part of the repack. This
modified Documentation/git-replay.adoc
@@ -10,7 +10,7 @@ SYNOPSIS
10 10 --------
11 11 [verse]
12 12 (EXPERIMENTAL!) 'git replay' ([--contained] --onto=<newbase> | --advance=<branch> | --revert=<branch>)
13 - [--ref=<ref>] [--ref-action=<mode>] <revision-range>
13 + [--ref=<ref>] [--ref-action=<mode>] [--linearize] <revision-range>
14 14
15 15 DESCRIPTION
16 16 -----------
@@ -80,14 +80,32 @@ incompatible with `--contained` (which is a modifier for `--onto` only).
80 80 Control how references are updated. The mode can be:
81 81 +
82 82 --
83 - * `update` (default): Update refs directly using an atomic transaction.
84 - All refs are updated or none are (all-or-nothing behavior).
85 - * `print`: Output update-ref commands for pipeline use. This is the
86 - traditional behavior where output can be piped to `git update-ref --stdin`.
83 + ////
84 + Expanded description list compared to 'replay.refAction'.
85 + ////
86 + `update`;; (default) Update refs directly using an atomic transaction.
87 + All refs are updated or none are (all-or-nothing behavior).
88 + `print`;; Output update-ref commands for pipeline use. This is the
89 + traditional behavior where output can be piped to `git update-ref --stdin`.
87 90 --
88 91 +
89 92 The default mode can be configured via the `replay.refAction` configuration variable.
90 93
94 + --linearize::
95 + In this mode, each replayed commit is stacked on top of the
96 + previously replayed one, so all replayed commits are flattened into
97 + a single linear history.
98 + +
99 + When a merge commit is encountered, all commits in the range reachable
100 + from the merge commit are replayed into the linear history, and the
101 + merge commit itself is dropped. A ref that pointed to a merge commit is
102 + updated to the merge's last replayed ancestor. (This matches the
103 + behavior of git-rebase(1)'s `--no-rebase-merges` option.)
104 + +
105 + `--linearize` cannot be combined with multiple branches or with
106 + `--contained`. To linearize several branches, replay them in separate
107 + `git replay` invocations.
108 +
91 109 <revision-range>::
92 110 Range of commits to replay; see "Specifying Ranges" in
93 111 linkgit:git-rev-parse[1]. In `--advance=<branch>` or
@@ -209,6 +227,11 @@ This replays the range `aabbcc..ddeeff` onto commit `112233` and updates
209 227 `refs/heads/mybranch` to point at the result. This can be useful when you want
210 228 to use bare commit IDs instead of branch names.
211 229
230 + CONFIGURATION
231 + -------------
232 + :git-replay: 1
233 + include::config/replay.adoc[]
234 +
212 235 GIT
213 236 ---
214 237 Part of the linkgit:git[1] suite
modified Documentation/git-request-pull.adoc
@@ -7,8 +7,8 @@ git-request-pull - Generates a summary of pending changes
7 7
8 8 SYNOPSIS
9 9 --------
10 - [verse]
11 - 'git request-pull' [-p] <start> <URL> [<end>]
10 + [synopsis]
11 + git request-pull [-p] <start> <URL> [<end>]
12 12
13 13 DESCRIPTION
14 14 -----------
@@ -19,28 +19,28 @@ begins with the branch description, summarizes
19 19 the changes, and indicates from where they can be pulled.
20 20
21 21 The upstream project is expected to have the commit named by
22 - `<start>` and the output asks it to integrate the changes you made
23 - since that commit, up to the commit named by `<end>`, by visiting
24 - the repository named by `<URL>`.
22 + _<start>_ and the output asks it to integrate the changes you made
23 + since that commit, up to the commit named by _<end>_, by visiting
24 + the repository named by _<URL>_.
25 25
26 26
27 27 OPTIONS
28 28 -------
29 - -p::
29 + `-p`::
30 30 Include patch text in the output.
31 31
32 - <start>::
32 + _<start>_::
33 33 Commit to start at. This names a commit that is already in
34 34 the upstream history.
35 35
36 - <URL>::
36 + _<URL>_::
37 37 The repository URL to be pulled from.
38 38
39 - <end>::
40 - Commit to end at (defaults to HEAD). This names the commit
39 + _<end>_::
40 + Commit to end at (defaults to `HEAD`). This names the commit
41 41 at the tip of the history you are asking to be pulled.
42 42 +
43 - When the repository named by `<URL>` has the commit at a tip of a
43 + When the repository named by _<URL>_ has the commit at a tip of a
44 44 ref that is different from the ref you have locally, you can use the
45 45 `<local>:<remote>` syntax, to have its local name, a colon `:`, and
46 46 its remote name.
@@ -54,11 +54,15 @@ the `v1.0` release, and want it to be integrated into the project.
54 54 First you push that change to your public repository for others to
55 55 see:
56 56
57 - git push https://git.ko.xz/project master
57 + ----
58 + git push https://git.ko.xz/project master
59 + ----
58 60
59 61 Then, you run this command:
60 62
61 - git request-pull v1.0 https://git.ko.xz/project master
63 + ----
64 + git request-pull v1.0 https://git.ko.xz/project master
65 + ----
62 66
63 67 which will produce a request to the upstream, summarizing the
64 68 changes between the `v1.0` release and your `master`, to pull it
@@ -67,11 +71,15 @@ from your public repository.
67 71 If you pushed your change to a branch whose name is different from
68 72 the one you have locally, e.g.
69 73
70 - git push https://git.ko.xz/project master:for-linus
74 + ----
75 + git push https://git.ko.xz/project master:for-linus
76 + ----
71 77
72 78 then you can ask that to be pulled with
73 79
74 - git request-pull v1.0 https://git.ko.xz/project master:for-linus
80 + ----
81 + git request-pull v1.0 https://git.ko.xz/project master:for-linus
82 + ----
75 83
76 84
77 85 GIT
modified Documentation/git-send-email.adoc
@@ -8,11 +8,11 @@ git-send-email - Send a collection of patches as emails
8 8
9 9 SYNOPSIS
10 10 --------
11 - [verse]
12 - 'git send-email' [<options>] (<file>|<directory>)...
13 - 'git send-email' [<options>] <format-patch-options>
14 - 'git send-email' --dump-aliases
15 - 'git send-email' --translate-aliases
11 + [synopsis]
12 + git send-email [<options>] (<file>|<directory>)...
13 + git send-email [<options>] <format-patch-options>
14 + git send-email --dump-aliases
15 + git send-email --translate-aliases
16 16
17 17
18 18 DESCRIPTION
@@ -48,24 +48,24 @@ OPTIONS
48 48 Composing
49 49 ~~~~~~~~~
50 50
51 - --annotate::
51 + `--annotate`::
52 52 Review and edit each patch you're about to send. Default is the value
53 53 of `sendemail.annotate`. See the CONFIGURATION section for
54 54 `sendemail.multiEdit`.
55 55
56 - --bcc=<address>,...::
56 + `--bcc=<address>,...`::
57 57 Specify a `Bcc:` value for each email. Default is the value of
58 58 `sendemail.bcc`.
59 59 +
60 60 This option may be specified multiple times.
61 61
62 - --cc=<address>,...::
62 + `--cc=<address>,...`::
63 63 Specify a starting `Cc:` value for each email.
64 64 Default is the value of `sendemail.cc`.
65 65 +
66 66 This option may be specified multiple times.
67 67
68 - --compose::
68 + `--compose`::
69 69 Invoke a text editor (see GIT_EDITOR in linkgit:git-var[1])
70 70 to edit an introductory message for the patch series.
71 71 +
@@ -80,7 +80,7 @@ Missing `From` or `In-Reply-To` headers will be prompted for.
80 80 +
81 81 See the CONFIGURATION section for `sendemail.multiEdit`.
82 82
83 - --from=<address>::
83 + `--from=<address>`::
84 84 Specify the sender of the emails. If not specified on the command line,
85 85 the value of the `sendemail.from` configuration option is used. If
86 86 neither the command-line option nor `sendemail.from` are set, then the
@@ -88,12 +88,12 @@ See the CONFIGURATION section for `sendemail.multiEdit`.
88 88 the value of `GIT_AUTHOR_IDENT`, or `GIT_COMMITTER_IDENT` if that is not
89 89 set, as returned by `git var -l`.
90 90
91 - --reply-to=<address>::
91 + `--reply-to=<address>`::
92 92 Specify the address where replies from recipients should go to.
93 93 Use this if replies to messages should go to another address than what
94 94 is specified with the `--from` parameter.
95 95
96 - --in-reply-to=<identifier>::
96 + `--in-reply-to=<identifier>`::
97 97 Make the first mail (or all the mails with `--no-thread`) appear as a
98 98 reply to the given Message-ID, which avoids breaking threads to
99 99 provide a new patch series.
@@ -115,8 +115,8 @@ illustration below where `[PATCH v2 0/3]` is in reply to `[PATCH 0/2]`:
115 115 Only necessary if `--compose` is also set. If `--compose`
116 116 is not set, this will be prompted for.
117 117
118 - --outlook-id-fix::
119 - --no-outlook-id-fix::
118 + `--outlook-id-fix`::
119 + `--no-outlook-id-fix`::
120 120 Microsoft Outlook SMTP servers discard the Message-ID sent via email and
121 121 assign a new random Message-ID, thus breaking threads.
122 122 +
@@ -126,15 +126,15 @@ threading. Use it only when you know that the server reports the
126 126 rewritten Message-ID the same way as Outlook servers do.
127 127 +
128 128 Without this option specified, the fix is done by default when talking
129 - to 'smtp.office365.com' or 'smtp-mail.outlook.com'. Use
129 + to `smtp.office365.com` or `smtp-mail.outlook.com`. Use
130 130 `--no-outlook-id-fix` to disable even when talking to these two servers.
131 131
132 - --subject=<string>::
132 + `--subject=<string>`::
133 133 Specify the initial subject of the email thread.
134 134 Only necessary if `--compose` is also set. If `--compose`
135 135 is not set, this will be prompted for.
136 136
137 - --to=<address>,...::
137 + `--to=<address>,...`::
138 138 Specify the primary recipient of the emails generated. Generally, this
139 139 will be the upstream maintainer of the project involved. Default is the
140 140 value of the `sendemail.to` configuration value; if that is unspecified,
@@ -142,20 +142,20 @@ to 'smtp.office365.com' or 'smtp-mail.outlook.com'. Use
142 142 +
143 143 This option may be specified multiple times.
144 144
145 - --8bit-encoding=<encoding>::
145 + `--8bit-encoding=<encoding>`::
146 146 When encountering a non-ASCII message or subject that does not
147 147 declare its encoding, add headers/quoting to indicate it is
148 - encoded in <encoding>. Default is the value of the
148 + encoded in _<encoding>_. Default is the value of the
149 149 `sendemail.assume8bitEncoding`; if that is unspecified, this
150 150 will be prompted for if any non-ASCII files are encountered.
151 151 +
152 152 Note that no attempts whatsoever are made to validate the encoding.
153 153
154 - --compose-encoding=<encoding>::
154 + `--compose-encoding=<encoding>`::
155 155 Specify encoding of compose message. Default is the value of the
156 156 `sendemail.composeEncoding`; if that is unspecified, UTF-8 is assumed.
157 157
158 - --transfer-encoding=(7bit|8bit|quoted-printable|base64|auto)::
158 + `--transfer-encoding=(7bit|8bit|quoted-printable|base64|auto)`::
159 159 Specify the transfer encoding to be used to send the message over SMTP.
160 160 `7bit` will fail upon encountering a non-ASCII message. `quoted-printable`
161 161 can be useful when the repository contains files that contain carriage
@@ -167,8 +167,8 @@ Note that no attempts whatsoever are made to validate the encoding.
167 167 Default is the value of the `sendemail.transferEncoding` configuration
168 168 value; if that is unspecified, default to `auto`.
169 169
170 - --xmailer::
171 - --no-xmailer::
170 + `--xmailer`::
171 + `--no-xmailer`::
172 172 Add (or prevent adding) the `X-Mailer:` header. By default,
173 173 the header is added, but it can be turned off by setting the
174 174 `sendemail.xmailer` configuration variable to `false`.
@@ -176,7 +176,7 @@ value; if that is unspecified, default to `auto`.
176 176 Sending
177 177 ~~~~~~~
178 178
179 - --envelope-sender=<address>::
179 + `--envelope-sender=<address>`::
180 180 Specify the envelope sender used to send the emails.
181 181 This is useful if your default address is not the address that is
182 182 subscribed to a list. In order to use the `From` address, set the
@@ -185,7 +185,7 @@ Sending
185 185 `sendemail.envelopeSender` configuration variable; if that is
186 186 unspecified, choosing the envelope sender is left to your MTA.
187 187
188 - --sendmail-cmd=<command>::
188 + `--sendmail-cmd=<command>`::
189 189 Specify a command to run to send the email. The command should
190 190 be sendmail-like; specifically, it must support the `-i` option.
191 191 The command will be executed in the shell if necessary. Default
@@ -193,7 +193,7 @@ Sending
193 193 `--smtp-server` is also unspecified, `git send-email` will search
194 194 for `sendmail` in `/usr/sbin`, `/usr/lib` and `$PATH`.
195 195
196 - --smtp-encryption=<encryption>::
196 + `--smtp-encryption=<encryption>`::
197 197 Specify in what way encrypting begins for the SMTP connection.
198 198 Valid values are `ssl` and `tls`. Any other value reverts to plain
199 199 (unencrypted) SMTP, which defaults to port 25.
@@ -207,14 +207,14 @@ Sending
207 207 documentation or your server configuration to make sure
208 208 for your own case. Default is the value of `sendemail.smtpEncryption`.
209 209
210 - --smtp-domain=<FQDN>::
210 + `--smtp-domain=<FQDN>`::
211 211 Specify the Fully Qualified Domain Name (FQDN) used in the
212 212 HELO/EHLO command to the SMTP server. Some servers require the
213 213 FQDN to match your IP address. If not set, `git send-email` attempts
214 214 to determine your FQDN automatically. Default is the value of
215 215 `sendemail.smtpDomain`.
216 216
217 - --smtp-auth=<mechanisms>::
217 + `--smtp-auth=<mechanisms>`::
218 218 Whitespace-separated list of allowed SMTP-AUTH mechanisms. This setting
219 219 forces using only the listed mechanisms. Example:
220 220 +
@@ -229,7 +229,7 @@ is specified, all mechanisms supported by the SASL library can be used. The
229 229 special value `none` maybe specified to completely disable authentication
230 230 independently of `--smtp-user`.
231 231
232 - --smtp-pass[=<password>]::
232 + `--smtp-pass[=<password>]`::
233 233 Password for SMTP-AUTH. The argument is optional: If no
234 234 argument is specified, then the empty string is used as
235 235 the password. Default is the value of `sendemail.smtpPass`,
@@ -241,10 +241,10 @@ or on the command line. If a username has been specified (with
241 241 specified (with `--smtp-pass` or `sendemail.smtpPass`), then
242 242 a password is obtained using linkgit:git-credential[1].
243 243
244 - --no-smtp-auth::
244 + `--no-smtp-auth`::
245 245 Disable SMTP authentication. Short hand for `--smtp-auth=none`.
246 246
247 - --smtp-server=<host>::
247 + `--smtp-server=<host>`::
248 248 Specify the outgoing SMTP server to use (e.g.
249 249 `smtp.example.com` or a raw IP address). If unspecified, and if
250 250 `--sendmail-cmd` is also unspecified, the default is to search
@@ -257,7 +257,7 @@ option. This method does not support passing arguments or using plain
257 257 command names. For those use cases, consider using `--sendmail-cmd`
258 258 instead.
259 259
260 - --smtp-server-port=<port>::
260 + `--smtp-server-port=<port>`::
261 261 Specify a port different from the default port (SMTP
262 262 servers typically listen to smtp port 25, but may also listen to
263 263 submission port 587, or the common SSL smtp port 465);
@@ -265,7 +265,7 @@ instead.
265 265 are also accepted. The port can also be set with the
266 266 `sendemail.smtpServerPort` configuration variable.
267 267
268 - --smtp-server-option=<option>::
268 + `--smtp-server-option=<option>`::
269 269 Specify the outgoing SMTP server option to use.
270 270 Default value can be specified by the `sendemail.smtpServerOption`
271 271 configuration option.
@@ -274,15 +274,15 @@ The `--smtp-server-option` option must be repeated for each option you want
274 274 to pass to the server. Likewise, different lines in the configuration files
275 275 must be used for each option.
276 276
277 - --smtp-ssl::
277 + `--smtp-ssl`::
278 278 Legacy alias for `--smtp-encryption ssl`.
279 279
280 - --smtp-ssl-cert-path <path>::
280 + `--smtp-ssl-cert-path <path>`::
281 281 Path to a store of trusted CA certificates for SMTP SSL/TLS
282 282 certificate validation (either a directory that has been processed
283 283 by `c_rehash`, or a single file containing one or more PEM format
284 284 certificates concatenated together: see the description of the
285 - `-CAfile` _<file>_ and the `-CApath` _<dir>_ options of
285 + `-CAfile <file>` and the `-CApath <dir>` options of
286 286 https://docs.openssl.org/master/man1/openssl-verify/
287 287 [OpenSSL's verify(1) manual page] for more information on these).
288 288 Set it to an empty string to disable certificate verification.
@@ -290,7 +290,7 @@ must be used for each option.
290 290 variable, if set, or the backing SSL library's compiled-in default
291 291 otherwise (which should be the best choice on most platforms).
292 292
293 - --smtp-ssl-client-cert <path>::
293 + `--smtp-ssl-client-cert <path>`::
294 294 Path to the client certificate file to present if requested by the
295 295 server. This option is required when the server is set up to verify
296 296 client certificates. If the corresponding private key is not included in
@@ -299,7 +299,7 @@ must be used for each option.
299 299 to the value of the `sendemail.smtpSSLClientCert` configuration
300 300 variable, if set.
301 301
302 - --smtp-ssl-client-key <path>::
302 + `--smtp-ssl-client-key <path>`::
303 303 Path to the client private key file that corresponds to the client
304 304 certificate. To avoid misconfiguration, this option must be used in
305 305 conjunction with the `sendemail.smtpSSLClientKey` configuration variable
@@ -309,17 +309,17 @@ must be used for each option.
309 309 more details. Defaults to the value of the `sendemail.smtpSSLClientKey`
310 310 configuration variable, if set.
311 311
312 - --smtp-user=<user>::
312 + `--smtp-user=<user>`::
313 313 Username for SMTP-AUTH. Default is the value of `sendemail.smtpUser`;
314 314 if a username is not specified (with `--smtp-user` or `sendemail.smtpUser`),
315 315 then authentication is not attempted.
316 316
317 - --smtp-debug=(0|1)::
317 + `--smtp-debug=(0|1)`::
318 318 Enable (1) or disable (0) debug output. If enabled, SMTP
319 319 commands and replies will be printed. Useful to debug TLS
320 320 connection and authentication problems.
321 321
322 - --imap-sent-folder=<folder>::
322 + `--imap-sent-folder=<folder>`::
323 323 Some email providers (e.g. iCloud) do not send a copy of the emails sent
324 324 using SMTP to the `Sent` folder or similar in your mailbox. Use this option
325 325 to use `git imap-send` to send a copy of the emails to the folder specified
@@ -331,8 +331,8 @@ must be used for each option.
331 331 This feature requires setting up `git imap-send`. See linkgit:git-imap-send[1]
332 332 for instructions.
333 333
334 - --use-imap-only::
335 - --no-use-imap-only::
334 + `--use-imap-only`::
335 + `--no-use-imap-only`::
336 336 If this is set, all emails will only be copied to the IMAP folder specified
337 337 with `--imap-sent-folder` or `sendemail.imapSentFolder` and will not be sent
338 338 to the recipients. Useful if you just want to create a draft of the emails
@@ -344,8 +344,8 @@ for instructions.
344 344 This feature requires setting up `git imap-send`. See linkgit:git-imap-send[1]
345 345 for instructions.
346 346
347 - --batch-size=<num>::
348 - Some email servers (e.g. 'smtp.163.com') limit the number of emails to be
347 + `--batch-size=<num>`::
348 + Some email servers (e.g. `smtp.163.com`) limit the number of emails to be
349 349 sent per session (connection) and this will lead to a failure when
350 350 sending many messages. With this option, send-email will disconnect after
351 351 sending _<num>_ messages and wait for a few seconds
@@ -354,7 +354,7 @@ for instructions.
354 354 retype your password every time this happens. Defaults to the
355 355 `sendemail.smtpBatchSize` configuration variable.
356 356
357 - --relogin-delay=<int>::
357 + `--relogin-delay=<int>`::
358 358 Waiting _<int>_ seconds before reconnecting to SMTP server. Used together
359 359 with `--batch-size` option. Defaults to the `sendemail.smtpReloginDelay`
360 360 configuration variable.
@@ -362,29 +362,29 @@ for instructions.
362 362 Automating
363 363 ~~~~~~~~~~
364 364
365 - --no-to::
366 - --no-cc::
367 - --no-bcc::
365 + `--no-to`::
366 + `--no-cc`::
367 + `--no-bcc`::
368 368 Clear any list of `To:`, `Cc:`, `Bcc:` addresses previously
369 369 set via config.
370 370
371 - --no-identity::
371 + `--no-identity`::
372 372 Clear the previously read value of `sendemail.identity` set
373 373 via config, if any.
374 374
375 - --to-cmd=<command>::
375 + `--to-cmd=<command>`::
376 376 Specify a command to execute once per patch file which
377 377 should generate patch file specific `To:` entries.
378 378 Output of this command must be single email address per line.
379 379 Default is the value of `sendemail.toCmd` configuration value.
380 380
381 - --cc-cmd=<command>::
381 + `--cc-cmd=<command>`::
382 382 Specify a command to execute once per patch file which
383 383 should generate patch file specific `Cc:` entries.
384 384 Output of this command must be single email address per line.
385 385 Default is the value of `sendemail.ccCmd` configuration value.
386 386
387 - --header-cmd=<command>::
387 + `--header-cmd=<command>`::
388 388 Specify a command that is executed once per outgoing message
389 389 and output RFC 2822 style header lines to be inserted into
390 390 them. When the `sendemail.headerCmd` configuration variable is
@@ -392,11 +392,11 @@ Automating
392 392 at the command line, its value takes precedence over the
393 393 `sendemail.headerCmd` configuration variable.
394 394
395 - --no-header-cmd::
395 + `--no-header-cmd`::
396 396 Disable any header command in use.
397 397
398 - --chain-reply-to::
399 - --no-chain-reply-to::
398 + `--chain-reply-to`::
399 + `--no-chain-reply-to`::
400 400 If this is set, each email will be sent as a reply to the previous
401 401 email sent. If disabled with `--no-chain-reply-to`, all emails after
402 402 the first will be sent as replies to the first email sent. When using
@@ -404,34 +404,34 @@ Automating
404 404 entire patch series. Disabled by default, but the `sendemail.chainReplyTo`
405 405 configuration variable can be used to enable it.
406 406
407 - --identity=<identity>::
407 + `--identity=<identity>`::
408 408 A configuration identity. When given, causes values in the
409 409 `sendemail.<identity>` subsection to take precedence over
410 410 values in the `sendemail` section. The default identity is
411 411 the value of `sendemail.identity`.
412 412
413 - --signed-off-by-cc::
414 - --no-signed-off-by-cc::
413 + `--signed-off-by-cc`::
414 + `--no-signed-off-by-cc`::
415 415 If this is set, add emails found in the `Signed-off-by` trailer or `Cc:`
416 416 lines to the cc list. Default is the value of `sendemail.signedOffByCc`
417 417 configuration value; if that is unspecified, default to
418 418 `--signed-off-by-cc`.
419 419
420 - --cc-cover::
421 - --no-cc-cover::
420 + `--cc-cover`::
421 + `--no-cc-cover`::
422 422 If this is set, emails found in `Cc:` headers in the first patch of
423 423 the series (typically the cover letter) are added to the cc list
424 424 for each email set. Default is the value of `sendemail.ccCover`
425 425 configuration value; if that is unspecified, default to `--no-cc-cover`.
426 426
427 - --to-cover::
428 - --no-to-cover::
427 + `--to-cover`::
428 + `--no-to-cover`::
429 429 If this is set, emails found in `To:` headers in the first patch of
430 430 the series (typically the cover letter) are added to the to list
431 431 for each email set. Default is the value of `sendemail.toCover`
432 432 configuration value; if that is unspecified, default to `--no-to-cover`.
433 433
434 - --suppress-cc=<category>::
434 + `--suppress-cc=<category>`::
435 435 Specify an additional category of recipients to suppress the
436 436 auto-cc of:
437 437 +
@@ -456,14 +456,14 @@ Default is the value of `sendemail.suppressCc` configuration value; if
456 456 that is unspecified, default to `self` if `--suppress-from` is
457 457 specified, as well as `body` if `--no-signed-off-by-cc` is specified.
458 458
459 - --suppress-from::
460 - --no-suppress-from::
459 + `--suppress-from`::
460 + `--no-suppress-from`::
461 461 If this is set, do not add the `From:` address to the `Cc:` list.
462 462 Default is the value of `sendemail.suppressFrom` configuration
463 463 value; if that is unspecified, default to `--no-suppress-from`.
464 464
465 - --thread::
466 - --no-thread::
465 + `--thread`::
466 + `--no-thread`::
467 467 If this is set, the `In-Reply-To` and `References` headers will be
468 468 added to each email sent. Whether each mail refers to the
469 469 previous email (`deep` threading per `git format-patch`
@@ -481,8 +481,8 @@ exists when `git send-email` is asked to add it (especially note that
481 481 Failure to do so may not produce the expected result in the
482 482 recipient's MUA.
483 483
484 - --mailmap::
485 - --no-mailmap::
484 + `--mailmap`::
485 + `--no-mailmap`::
486 486 Use the mailmap file (see linkgit:gitmailmap[5]) to map all
487 487 addresses to their canonical real name and email address. Additional
488 488 mailmap data specific to `git send-email` may be provided using the
@@ -492,7 +492,7 @@ recipient's MUA.
492 492 Administering
493 493 ~~~~~~~~~~~~~
494 494
495 - --confirm=<mode>::
495 + `--confirm=<mode>`::
496 496 Confirm just before sending:
497 497 +
498 498 --
@@ -508,22 +508,22 @@ Default is the value of `sendemail.confirm` configuration value; if that
508 508 is unspecified, default to `auto` unless any of the suppress options
509 509 have been specified, in which case default to `compose`.
510 510
511 - --dry-run::
511 + `--dry-run`::
512 512 Do everything except actually send the emails.
513 513
514 - --format-patch::
515 - --no-format-patch::
514 + `--format-patch`::
515 + `--no-format-patch`::
516 516 When an argument may be understood either as a reference or as a file name,
517 517 choose to understand it as a format-patch argument (`--format-patch`)
518 518 or as a file name (`--no-format-patch`). By default, when such a conflict
519 519 occurs, `git send-email` will fail.
520 520
521 - --quiet::
521 + `--quiet`::
522 522 Make `git send-email` less verbose. One line per email should be
523 523 all that is output.
524 524
525 - --validate::
526 - --no-validate::
525 + `--validate`::
526 + `--no-validate`::
527 527 Perform sanity checks on patches.
528 528 Currently, validation means the following:
529 529 +
@@ -539,20 +539,20 @@ have been specified, in which case default to `compose`.
539 539 Default is the value of `sendemail.validate`; if this is not set,
540 540 default to `--validate`.
541 541
542 - --force::
542 + `--force`::
543 543 Send emails even if safety checks would prevent it.
544 544
545 545
546 546 Information
547 547 ~~~~~~~~~~~
548 548
549 - --dump-aliases::
549 + `--dump-aliases`::
550 550 Instead of the normal operation, dump the shorthand alias names from
551 551 the configured alias file(s), one per line in alphabetical order. Note
552 552 that this only includes the alias name and not its expanded email addresses.
553 553 See `sendemail.aliasesFile` for more information about aliases.
554 554
555 - --translate-aliases::
555 + `--translate-aliases`::
556 556 Instead of the normal operation, read from standard input and
557 557 interpret each line as an email alias. Translate it according to the
558 558 configured alias file(s). Output each translated name and email
@@ -718,7 +718,7 @@ include::format-patch-caveats.adoc[]
718 718
719 719 SEE ALSO
720 720 --------
721 - linkgit:git-format-patch[1], linkgit:git-imap-send[1], mbox(5)
721 + linkgit:git-format-patch[1], linkgit:git-imap-send[1], `mbox`(5)
722 722
723 723 GIT
724 724 ---
modified Documentation/git-stash.adoc
@@ -426,6 +426,15 @@ include::includes/cmd-config-section-all.adoc[]
426 426 :git-stash: 1
427 427 include::config/stash.adoc[]
428 428
429 + EXIT STATUS
430 + -----------
431 +
432 + The `git stash` subcommands exit with status 0 on success. The
433 + subcommands that apply a stash entry, i.e. `apply`, `pop` and `branch`,
434 + exit with status 1 when applying the stash entry resulted in conflicts,
435 + in which case the stash entry is left in place, and with a non-zero
436 + status other than 1 when they fail for other reasons.
437 +
429 438
430 439 SEE ALSO
431 440 --------
modified Documentation/git-worktree.adoc
@@ -219,7 +219,9 @@ To remove a locked worktree, specify `--force` twice.
219 219 of creating a new branch from `HEAD`, if there exists a tracking
220 220 branch in exactly one remote matching the basename of _<path>_,
221 221 base the new branch on the remote-tracking branch, and mark
222 - the remote-tracking branch as "upstream" from the new branch.
222 + the remote-tracking branch as "upstream" from the new branch. If
223 + there are multiple matches, the command fails. If there is no
224 + match, the command falls back to creating a new branch from `HEAD`.
223 225 +
224 226 This can also be set up as the default behaviour by using the
225 227 `worktree.guessRemote` config option.
modified Documentation/git.adoc
@@ -25,7 +25,8 @@ and full access to internals.
25 25 See linkgit:gittutorial[7] to get started, then see
26 26 linkgit:giteveryday[7] for a useful minimum set of
27 27 commands. The link:user-manual.html[Git User's Manual] has a more
28 - in-depth introduction.
28 + in-depth introduction. See linkgit:gitdatamodel[7] if you want to
29 + learn about the data model and important terminology.
29 30
30 31 After you mastered the basic concepts, you can come back to this
31 32 page to learn what commands Git offers. You can learn more about
@@ -469,7 +470,9 @@ Higher level SCMs may provide and manage additional information in the
469 470
470 471 Terminology
471 472 -----------
472 - Please see linkgit:gitglossary[7].
473 + Please see linkgit:gitglossary[7]. See linkgit:gitdatamodel[7] for a
474 + discussion of the core data model, which includes important terminology
475 + used throughout the documentation.
473 476
474 477
475 478 Environment Variables
@@ -1199,8 +1202,9 @@ SEE ALSO
1199 1202 --------
1200 1203 linkgit:gittutorial[7], linkgit:gittutorial-2[7],
1201 1204 linkgit:giteveryday[7], linkgit:gitcvs-migration[7],
1202 - linkgit:gitglossary[7], linkgit:gitcore-tutorial[7],
1203 - linkgit:gitcli[7], link:user-manual.html[The Git User's Manual],
1205 + linkgit:gitglossary[7], linkgit:gitdatamodel[7],
1206 + linkgit:gitcore-tutorial[7], linkgit:gitcli[7],
1207 + link:user-manual.html[The Git User's Manual],
1204 1208 linkgit:gitworkflows[7]
1205 1209
1206 1210 GIT
modified Documentation/gitdatamodel.adoc
@@ -300,6 +300,10 @@ $ git reflog main --date=iso --no-decorate
300 300 4ccb6d7 main@{2025-09-29 15:16:48 -0400}: commit (initial): Initial commit
301 301 ----
302 302
303 + SEE ALSO
304 + --------
305 + linkgit:gitglossary[7]
306 +
303 307 GIT
304 308 ---
305 309 Part of the linkgit:git[1] suite
modified Documentation/gitglossary.adoc
@@ -16,6 +16,7 @@ include::glossary-content.adoc[]
16 16
17 17 SEE ALSO
18 18 --------
19 + linkgit:gitdatamodel[7],
19 20 linkgit:gittutorial[7],
20 21 linkgit:gittutorial-2[7],
21 22 linkgit:gitcvs-migration[7],
modified Documentation/gitprotocol-v2.adoc
@@ -558,14 +558,17 @@ object-info
558 558
559 559 `object-info` is the command to retrieve information about one or more objects.
560 560 Its main purpose is to allow a client to make decisions based on this
561 - information without having to fully fetch objects. Object size is the only
562 - information that is currently supported.
561 + information without having to fully fetch objects. Currently only object size
562 + and type are supported.
563 563
564 564 An `object-info` request takes the following arguments:
565 565
566 566 size
567 567 Requests size information to be returned for each listed object id.
568 568
569 + type
570 + Requests type information to be returned for each listed object id.
571 +
569 572 oid <oid>
570 573 Indicates to the server an object which the client wants to obtain
571 574 information for. They must be full OIDs.
@@ -580,11 +583,18 @@ space.
580 583 info = *PKT-LINE(attr LF)
581 584 *PKT-LINE(obj-info LF)
582 585
583 - attr = "size"
586 + attr = "size" | "type"
584 587
585 588 obj-size = 1*DIGIT
586 589
587 - obj-info = obj-id [SP [obj-size]]
590 + obj-type = "blob" | "tree" | "commit" | "tag"
591 +
592 + obj-val = obj-size | obj-type
593 +
594 + obj-info = obj-id [SP [obj-val *(SP obj-val)]]
595 +
596 + The values in `obj-info` appear in the same order as the corresponding `attr`
597 + lines, with exactly one value per requested attribute.
588 598
589 599 If the server does not recognize the OID, the response will be `<oid> SP`
590 600 regardless of the number of attributes requested.
modified Documentation/glossary-content.adoc
@@ -251,7 +251,8 @@ for a more flexible and robust system to do the same thing.
251 251 as objects. The index is a stored version of your
252 252 <<def_working_tree,working tree>>. Truth be told, it can also contain a second, and even
253 253 a third version of a working tree, which are used
254 - when <<def_merge,merging>>.
254 + when <<def_merge,merging>>. See "THE INDEX" in
255 + linkgit:gitdatamodel[7] for details.
255 256
256 257 [[def_index_entry]]index entry::
257 258 The information regarding a particular file, stored in the
@@ -290,7 +291,8 @@ This commit is referred to as a "merge commit", or sometimes just a
290 291 [[def_object]]object::
291 292 The unit of storage in Git. It is uniquely identified by the
292 293 <<def_SHA1,SHA-1>> of its contents. Consequently, an
293 - object cannot be changed.
294 + object cannot be changed. See "OBJECTS" in
295 + linkgit:gitdatamodel[7] for details.
294 296
295 297 [[def_object_database]]object database::
296 298 Stores a set of "objects", and an individual <<def_object,object>> is
@@ -587,12 +589,17 @@ extended in the future:
587 589 Different subhierarchies are used for different purposes. For example,
588 590 the `refs/heads/` hierarchy is used to represent local branches whereas
589 591 the `refs/tags/` hierarchy is used to represent local tags..
592 + +
593 + See also "REFERENCES" in linkgit:gitdatamodel[7].
590 594
591 595 [[def_reflog]]reflog::
592 596 A reflog shows the local "history" of a ref. In other words,
593 597 it can tell you what the 3rd last revision in _this_ repository
594 598 was, and what was the current state in _this_ repository,
595 - yesterday 9:14pm. See linkgit:git-reflog[1] for details.
599 + yesterday 9:14pm.
600 + +
601 + See "REFLOGS" in linkgit:gitdatamodel[7] for a short explanation of the
602 + format. See linkgit:git-reflog[1] for details.
596 603
597 604 [[def_refspec]]refspec::
598 605 A "refspec" is used by <<def_fetch,fetch>> and
modified Documentation/lint-gitlink.perl
@@ -42,7 +42,7 @@ die "BUG: No list of valid linkgit:* files given" unless @ARGV;
42 42 while (<>) {
43 43 my $line = $_;
44 44 next if $line =~ /^\s*(ifn?def|endif)::/;
45 - while ($line =~ m/(.{,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
45 + while ($line =~ m/(.{0,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
46 46 my $pos = pos $line;
47 47 my ($macro, $target, $page, $section) = ($1, $2, $3, $4);
48 48 if ( $macro ne "linkgit:" ) {
modified Documentation/pack-refs-options.adoc
@@ -1,4 +1,4 @@
1 - --all::
1 + `--all`::
2 2
3 3 The command by default packs all tags and refs that are already
4 4 packed, and leaves other refs
@@ -8,12 +8,12 @@ This option causes all refs to be packed as well, with the exception
8 8 of hidden refs, broken refs, and symbolic refs. Useful for a repository
9 9 with many branches of historical interests.
10 10
11 - --no-prune::
11 + `--no-prune`::
12 12
13 13 The command usually removes loose refs under `$GIT_DIR/refs`
14 14 hierarchy after packing them. This option tells it not to.
15 15
16 - --auto::
16 + `--auto`::
17 17
18 18 Pack refs as needed depending on the current state of the ref database. The
19 19 behavior depends on the ref format used by the repository and may change in the
@@ -29,7 +29,7 @@ future.
29 29 maintains the property that N is at least twice as big as N+1. Only
30 30 tables that violate this property are compacted.
31 31
32 - --include <pattern>::
32 + `--include <pattern>`::
33 33
34 34 Pack refs based on a `glob(7)` pattern. Repetitions of this option
35 35 accumulate inclusion patterns. If a ref is both included in `--include` and
@@ -38,7 +38,7 @@ tags from being included by default. Symbolic refs and broken refs will never
38 38 be packed. When used with `--all`, it will be a noop. Use `--no-include` to clear
39 39 and reset the list of patterns.
40 40
41 - --exclude <pattern>::
41 + `--exclude <pattern>`::
42 42
43 43 Do not pack refs matching the given `glob(7)` pattern. Repetitions of this option
44 44 accumulate exclusion patterns. Use `--no-exclude` to clear and reset the list of
modified Documentation/rev-list-options.adoc
@@ -1083,6 +1083,19 @@ If some tips passed to the traversal are missing, they will be
1083 1083 considered as missing too, and the traversal will ignore them. In case
1084 1084 we cannot get their Object ID though, an error will be raised.
1085 1085
1086 + `--missing-only`::
1087 + When used together with `--missing=print` or `--missing=print-info`,
1088 + suppress all output for present objects and print only the missing
1089 + ones. The selected `--missing=` format is preserved (so
1090 + `--missing=print-info` still emits `path=` / `type=` fields), but the
1091 + leading ``?'' prefix used by the non-`-z` forms is omitted. This is
1092 + useful for scripting, as a simpler and faster alternative to
1093 + post-processing the output of `--missing=print`.
1094 + +
1095 + This option is incompatible with `--count` and `--disk-usage`.
1096 + It is an error to use `--missing-only` without `--missing=print` or
1097 + `--missing=print-info`.
1098 +
1086 1099 `--exclude-promisor-objects`::
1087 1100 (For internal use only.) Prefilter object traversal at
1088 1101 promisor boundary. This is used with partial clone. This is
modified Documentation/technical/api-parse-options.adoc
@@ -150,8 +150,77 @@ Data Structure
150 150
151 151 The main data structure is an array of the `option` struct,
152 152 say `static struct option builtin_add_options[]`.
153 +
154 + Option flags
155 + ~~~~~~~~~~~~
156 +
157 + Each option can carry flags in the `flags` field of its `option`
158 + struct. These are per-option flags and are distinct from the
159 + `parse_options()` flags described above; they are usually set through
160 + the `OPT_*_F()` macro variants (see below) rather than by hand. They
161 + are the bitwise-or of:
162 +
163 + `PARSE_OPT_OPTARG`::
164 + The option's argument is optional, i.e. both `--option` and
165 + `--option=<value>` are accepted.
166 +
167 + `PARSE_OPT_NOARG`::
168 + The option takes no argument at all. Using `--option=<value>`
169 + is rejected.
170 +
171 + `PARSE_OPT_NONEG`::
172 + Disable the automatically generated negated `--no-option`
173 + form.
174 +
175 + `PARSE_OPT_HIDDEN`::
176 + Hide the option: it is omitted from the usage shown by
177 + `git <cmd> -h`, but is still shown by `git <cmd> --help-all`.
178 + The option is parsed as usual either way. This is meant for
179 + deprecated, advanced or otherwise uncommon options.
180 +
181 + `PARSE_OPT_LASTARG_DEFAULT`::
182 + The no-argument form is only accepted when the option is the
183 + last token on the command line; used earlier, it still
184 + requires an argument. Should not be combined with
185 + `PARSE_OPT_OPTARG`.
186 +
187 + `PARSE_OPT_NODASH`::
188 + The option is a single character without a leading dash, such
189 + as the `+` used by some commands.
190 +
191 + `PARSE_OPT_LITERAL_ARGHELP`::
192 + Use the argument help string (`argh`) verbatim in the usage
193 + output instead of surrounding it with `<>` or `[]`. Useful when
194 + `argh` already contains a hand-formatted description.
195 +
196 + `PARSE_OPT_FROM_ALIAS`::
197 + Internal flag, set on options that were expanded from a
198 + configured alias. It should not be set by callers.
199 +
200 + `PARSE_OPT_NOCOMPLETE`::
201 + Do not offer this option for completion.
202 +
203 + `PARSE_OPT_COMP_ARG`::
204 + The option's argument, rather than the option itself, is what
205 + should be completed.
206 +
207 + `PARSE_OPT_CMDMODE`::
208 + The option is one of several mutually exclusive "command mode"
209 + options that share the same variable. Using more than one of
210 + them at once is rejected.
211 +
212 + Macros
213 + ~~~~~~
214 +
153 215 There are some macros to easily define options:
154 216
217 + Many of the macros below have an `_F` variant (for example `OPT_BOOL_F`,
218 + `OPT_STRING_F`, `OPT_INTEGER_F`, `OPT_SET_INT_F`, `OPT_BIT_F` and
219 + `OPT_CALLBACK_F`) that takes an additional trailing `flags` argument.
220 + That argument is the bitwise-or of the per-option flags described in the
221 + "Option flags" section above; the non-`_F` macros are simply defined
222 + with `flags` set to `0`.
223 +
155 224 `OPT__ABBREV(&int_var)`::
156 225 Add `--abbrev[=<n>]`.
157 226
@@ -175,10 +244,21 @@ There are some macros to easily define options:
175 244 describes the group or an empty string.
176 245 Start the description with an upper-case letter.
177 246
247 + `OPT_HIDDEN_GROUP(description)`::
248 + Like `OPT_GROUP()`, but the group header carries
249 + `PARSE_OPT_HIDDEN`, so it is only shown by `--help-all` and not
250 + by `-h`. Use it to label a group that contains only hidden
251 + options, which would otherwise show an empty header under `-h`.
252 +
178 253 `OPT_BOOL(short, long, &int_var, description)`::
179 254 Introduce a boolean option. `int_var` is set to one with
180 255 `--option` and set to zero with `--no-option`.
181 256
257 + `OPT_HIDDEN_BOOL(short, long, &int_var, description)`::
258 + Like `OPT_BOOL()`, but the option carries `PARSE_OPT_HIDDEN`,
259 + so it is hidden from `-h` while still being shown by
260 + `--help-all`.
261 +
182 262 `OPT_COUNTUP(short, long, &int_var, description)`::
183 263 Introduce a count-up option.
184 264 Each use of `--option` increments `int_var`, starting from zero
modified Documentation/technical/meson.build
@@ -18,6 +18,7 @@ articles = [
18 18 'multi-pack-index.adoc',
19 19 'packfile-uri.adoc',
20 20 'pack-heuristics.adoc',
21 + 'paint-down-to-common.adoc',
21 22 'parallel-checkout.adoc',
22 23 'partial-clone.adoc',
23 24 'platform-support.adoc',
added Documentation/technical/paint-down-to-common.adoc mode 100644
@@ -0,0 +1,155 @@
1 + Merge-Base Computation and paint_down_to_common()
2 + ==================================================
3 +
4 + The function `paint_down_to_common()` in `commit-reach.c` computes merge
5 + bases by walking the commit graph backwards from two sets of tips and
6 + finding where their ancestry meets.
7 +
8 + Use cases
9 + ---------
10 +
11 + Computing merge bases is used in two different ways:
12 +
13 + 1. *Finding all merge bases* (`merge-base --all`, `merge-tree`,
14 + `merge`, `rebase`). A merge base is a common ancestor that is
15 + not itself an ancestor of another common ancestor.
16 +
17 + 2. *Ancestry checks* (`in_merge_bases`, used by `merge-base
18 + --is-ancestor`, `branch -d`, `fetch`). These ask: "is commit A
19 + an ancestor of commit B?" If a common ancestor equals one of the
20 + inputs, that input is necessarily the only merge base -- no other
21 + common ancestor can be both as recent and not an ancestor of it.
22 +
23 + Both use cases share the same algorithm and implementation.
24 +
25 + Algorithm
26 + ---------
27 +
28 + Given a commit `one` and a set of commits `twos[]`, the walk paints
29 + commits with two colors:
30 +
31 + - PARENT1: reachable from `one`
32 + - PARENT2: reachable from any commit in `twos[]`
33 +
34 + The walk uses a priority queue ordered by generation number
35 + (highest first), breaking ties by commit date. Each step dequeues
36 + the highest-priority commit and propagates its paint flags to its
37 + parents, enqueuing any parent that gained new flags. When a
38 + commit receives both PARENT1 and PARENT2, it is a merge-base
39 + candidate. A candidate gains the STALE flag so its ancestors
40 + propagate staleness -- any deeper common ancestor is necessarily
41 + redundant.
42 +
43 + [[generation-regions]]
44 + Topologically ordered and unordered generation regions
45 + ------------------------------------------------------
46 +
47 + Commits fall into two regions based on whether their generation
48 + numbers provide a topological ordering guarantee:
49 +
50 + ....
51 + +------------------------------------------+
52 + | Unordered region |
53 + | generation = INFINITY or V1_MAX |
54 + | queue order: heuristic (commit date) |
55 + +------------------------------------------+
56 + |
57 + v
58 + +------------------------------------------+
59 + | Ordered region |
60 + | generation = finite, unsaturated |
61 + | queue order: topological |
62 + +------------------------------------------+
63 + ....
64 +
65 + In the ordered region, a child's generation is strictly greater
66 + than its parent's. Same-generation commits are necessarily
67 + independent, so the queue always processes children before
68 + their parents.
69 +
70 + In the unordered region, parent-child pairs can share the same
71 + generation number, so topological order is not guaranteed. The
72 + queue uses commit-date as a heuristic, which typically produces
73 + a reasonable traversal order but may process a parent before
74 + its child.
75 +
76 + Commits not in the commit-graph have generation INFINITY; v1
77 + commit-graphs saturate at V1_MAX. Both place commits in the
78 + unordered region. Any optimization that depends on generation
79 + ordering must account for this saturation boundary. The early
80 + exit gates compare against a topological ceiling --
81 + `GENERATION_NUMBER_V1_MAX` for v1 graphs and
82 + `GENERATION_NUMBER_INFINITY` for v2 graphs -- so that saturated
83 + commits are treated as unordered.
84 +
85 + With generation ordering, values in the unordered region exceed
86 + those in the ordered region. The walk may therefore transition
87 + from the unordered region into the ordered region, but never in
88 + the reverse direction. Without a commit-graph, every commit has INFINITY
89 + and the walk operates entirely in the unordered region.
90 +
91 + In the ordered region, paint on a dequeued commit is final --
92 + no future step can add flags to it. In the unordered region,
93 + a dequeued commit may later gain additional paint. Paint flags
94 + are only added, never removed, bounding the number of
95 + re-enqueues per commit.
96 +
97 + Termination
98 + -----------
99 +
100 + The walk tracks the number of commits of each type in the queue
101 + (PARENT1-only, PARENT2-only, pending merge-base). The main loop
102 + ends when one of the following conditions holds:
103 +
104 + 1. The queue is empty.
105 + 2. The queue contains only stale entries.
106 + 3. Generation cutoff: the dequeued commit's generation is below
107 + a caller-supplied `min_generation` threshold.
108 + 4. Single result: the caller only needs one merge base, one has
109 + been found, and the walk has entered the ordered region.
110 + 5. Side exhaustion: no pure PARENT1 or pure PARENT2 commits
111 + remain in the queue, no pending merge-base candidates exist,
112 + and the walk has entered the ordered region.
113 +
114 + Stale entry condition
115 + ~~~~~~~~~~~~~~~~~~~~~
116 + Once all queued entries are stale, no new merge-base candidates can
117 + be discovered -- that requires at least one non-stale commit from
118 + each side meeting. Continuing the walk could still invalidate
119 + existing candidates by proving one is an ancestor of another, but
120 + `remove_redundant()` handles that as a post-processing step, so it
121 + is safe to exit early.
122 +
123 + Side-exhaustion condition
124 + ~~~~~~~~~~~~~~~~~~~~~~~~~
125 + A new merge-base requires commits from both sides to meet. When one
126 + side's exclusive counter reaches zero and there are no pending
127 + merge-base candidates, no future traversal step can produce a new
128 + candidate. This optimization only activates in the ordered region,
129 + where paint flags are final at visit time; in the unordered region,
130 + a side that appears exhausted could reappear through late paint
131 + propagation.
132 +
133 + Generation cutoff
134 + ~~~~~~~~~~~~~~~~~
135 + Some callers (notably `remove_redundant()`) supply a `min_generation`
136 + threshold equal to the minimum generation of the input commits.
137 + These callers only need to determine reachability among the inputs,
138 + not find deep merge bases, so the walk can safely terminate when it
139 + dequeues a commit below this threshold.
140 +
141 + Single result
142 + ~~~~~~~~~~~~~
143 + When only one merge base is needed and the walk is in the
144 + ordered region with generation ordering, the first candidate
145 + found is necessarily the highest-generation common ancestor.
146 + No remaining commit in the queue can be a descendant of this
147 + candidate (generation ordering guarantees children are visited
148 + first), so it cannot be redundant and the walk can stop
149 + immediately.
150 +
151 + Related documentation
152 + ---------------------
153 +
154 + - `Documentation/technical/commit-graph.adoc` -- generation numbers
155 + and the reachability closure property.
modified Documentation/technical/partial-clone.adoc
@@ -159,7 +159,7 @@ and prefetch those objects in bulk.
159 159 - `repack` in GC has been updated to not touch promisor packfiles at all,
160 160 and to only repack other objects.
161 161
162 - - The global variable "fetch_if_missing" is used to control whether an
162 + - The per-repository flag "fetch_if_missing" is used to control whether an
163 163 object lookup will attempt to dynamically fetch a missing object or
164 164 report an error.
165 165 +
modified Documentation/technical/rerere.adoc
@@ -77,7 +77,7 @@ Sorting hunks
77 77 ~~~~~~~~~~~~~
78 78
79 79 As before, let's imagine that a common ancestor had a file with line A
80 - its early part, and line X in its late part. And then four branches
80 + in its early part, and line X in its late part. And then four branches
81 81 are forked that do these things:
82 82
83 83 - AB: changes A to B
modified GIT-VERSION-GEN
@@ -1,6 +1,6 @@
1 1 #!/bin/sh
2 2
3 - DEF_VER=v2.55.GIT
3 + DEF_VER=v2.56.0
4 4
5 5 LF='
6 6 '
modified Makefile
@@ -959,7 +959,7 @@ RUST_LIB_NAME = gitcore.lib
959 959 else
960 960 RUST_LIB_NAME = libgitcore.a
961 961 endif
962 - RUST_LIB = target/$(RUST_BUILD_CONFIG)/$(RUST_LIB_NAME)
962 + RUST_LIB = target$(if $(CARGO_BUILD_TARGET),/$(CARGO_BUILD_TARGET))/$(RUST_BUILD_CONFIG)/$(RUST_LIB_NAME)
963 963 endif
964 964
965 965 GITLIBS = common-main.o $(LIB_FILE)
@@ -2045,6 +2045,10 @@ ifdef NO_PREAD
2045 2045 COMPAT_CFLAGS += -DNO_PREAD
2046 2046 COMPAT_OBJS += compat/pread.o
2047 2047 endif
2048 + ifdef NO_WRITEV
2049 + COMPAT_CFLAGS += -DNO_WRITEV
2050 + COMPAT_OBJS += compat/writev.o
2051 + endif
2048 2052 ifdef NO_FAST_WORKING_DIRECTORY
2049 2053 BASIC_CFLAGS += -DNO_FAST_WORKING_DIRECTORY
2050 2054 endif
modified archive-tar.c
@@ -129,20 +129,20 @@ static void write_trailer(void)
129 129 */
130 130 static int stream_blocked(struct repository *r, const struct object_id *oid)
131 131 {
132 - struct odb_read_stream *st;
132 + struct odb_stream *st;
133 133 char buf[BLOCKSIZE];
134 134 ssize_t readlen;
135 135
136 - st = odb_read_stream_open(r->objects, oid, NULL);
136 + st = odb_stream_from_object(r->objects, oid, NULL);
137 137 if (!st)
138 138 return error(_("cannot stream blob %s"), oid_to_hex(oid));
139 139 for (;;) {
140 - readlen = odb_read_stream_read(st, buf, sizeof(buf));
140 + readlen = odb_stream_read(st, buf, sizeof(buf));
141 141 if (readlen <= 0)
142 142 break;
143 143 do_write_blocked(buf, readlen);
144 144 }
145 - odb_read_stream_close(st);
145 + odb_stream_close(st);
146 146 if (!readlen)
147 147 finish_record();
148 148 return readlen;
modified archive-zip.c
@@ -206,7 +206,7 @@ static void *zlib_deflate_raw(void *data, unsigned long size,
206 206 unsigned long *compressed_size)
207 207 {
208 208 git_zstream stream;
209 - unsigned long maxsize;
209 + size_t maxsize;
210 210 void *buffer;
211 211 int result;
212 212
@@ -309,7 +309,7 @@ static int write_zip_entry(struct archiver_args *args,
309 309 enum zip_method method;
310 310 unsigned char *out;
311 311 void *deflated = NULL;
312 - struct odb_read_stream *stream = NULL;
312 + struct odb_stream *stream = NULL;
313 313 unsigned long flags = 0;
314 314 int is_binary = -1;
315 315 const char *path_without_prefix = path + args->baselen;
@@ -347,7 +347,7 @@ static int write_zip_entry(struct archiver_args *args,
347 347 method = ZIP_METHOD_DEFLATE;
348 348
349 349 if (!buffer) {
350 - stream = odb_read_stream_open(args->repo->objects, oid, NULL);
350 + stream = odb_stream_from_object(args->repo->objects, oid, NULL);
351 351 if (!stream)
352 352 return error(_("cannot stream blob %s"),
353 353 oid_to_hex(oid));
@@ -428,7 +428,7 @@ static int write_zip_entry(struct archiver_args *args,
428 428 ssize_t readlen;
429 429
430 430 for (;;) {
431 - readlen = odb_read_stream_read(stream, buf, sizeof(buf));
431 + readlen = odb_stream_read(stream, buf, sizeof(buf));
432 432 if (readlen <= 0)
433 433 break;
434 434 crc = crc32(crc, buf, readlen);
@@ -438,7 +438,7 @@ static int write_zip_entry(struct archiver_args *args,
438 438 buf, readlen);
439 439 write_or_die(1, buf, readlen);
440 440 }
441 - odb_read_stream_close(stream);
441 + odb_stream_close(stream);
442 442 if (readlen)
443 443 return readlen;
444 444
@@ -461,7 +461,7 @@ static int write_zip_entry(struct archiver_args *args,
461 461 zstream.avail_out = sizeof(compressed);
462 462
463 463 for (;;) {
464 - readlen = odb_read_stream_read(stream, buf, sizeof(buf));
464 + readlen = odb_stream_read(stream, buf, sizeof(buf));
465 465 if (readlen <= 0)
466 466 break;
467 467 crc = crc32(crc, buf, readlen);
@@ -485,7 +485,7 @@ static int write_zip_entry(struct archiver_args *args,
485 485 }
486 486
487 487 }
488 - odb_read_stream_close(stream);
488 + odb_stream_close(stream);
489 489 if (readlen)
490 490 return readlen;
491 491
modified bisect.c
@@ -488,6 +488,7 @@ static GIT_PATH_FUNC(git_path_bisect_start, "BISECT_START")
488 488 static GIT_PATH_FUNC(git_path_bisect_log, "BISECT_LOG")
489 489 static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
490 490 static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
491 + static GIT_PATH_FUNC(git_path_bisect_reset_when_found, "BISECT_RESET_WHEN_FOUND")
491 492
492 493 static void read_bisect_paths(struct strvec *array)
493 494 {
@@ -1019,10 +1020,12 @@ void read_bisect_terms(char **read_bad, char **read_good)
1019 1020 die_errno(_("could not read file '%s'"), filename);
1020 1021 }
1021 1022 } else {
1022 - strbuf_getline_lf(&str, fp);
1023 + if (strbuf_getline_lf(&str, fp) == EOF)
1024 + die(_("could not read bad term from file '%s'"), filename);
1023 1025 free(*read_bad);
1024 1026 *read_bad = strbuf_detach(&str, NULL);
1025 - strbuf_getline_lf(&str, fp);
1027 + if (strbuf_getline_lf(&str, fp) == EOF)
1028 + die(_("could not read good term from file '%s'"), filename);
1026 1029 free(*read_good);
1027 1030 *read_good = strbuf_detach(&str, NULL);
1028 1031 }
@@ -1211,6 +1214,7 @@ int bisect_clean_state(void)
1211 1214 unlink_or_warn(git_path_bisect_run());
1212 1215 unlink_or_warn(git_path_bisect_terms());
1213 1216 unlink_or_warn(git_path_bisect_first_parent());
1217 + unlink_or_warn(git_path_bisect_reset_when_found());
1214 1218 /*
1215 1219 * Cleanup BISECT_START last to support the --no-checkout option
1216 1220 * introduced in the commit 4796e823a.
modified bloom.c
@@ -610,10 +610,10 @@ int bloom_filter_contains_vec(const struct bloom_filter *filter,
610 610 uint32_t test_bloom_murmur3_seeded(uint32_t seed, const char *data, size_t len,
611 611 int version)
612 612 {
613 - assert(version == 1 || version == 2);
614 -
615 613 if (version == 2)
616 614 return murmur3_seeded_v2(seed, data, len);
617 - else
615 + else if (version == 1)
618 616 return murmur3_seeded_v1(seed, data, len);
617 + else
618 + BUG("unexpected bloom version: %d", version);
619 619 }
modified branch.c
@@ -385,6 +385,39 @@ int validate_branchname(const char *name, struct strbuf *ref)
385 385 static int initialized_checked_out_branches;
386 386 static struct strmap current_checked_out_branches = STRMAP_INIT;
387 387
388 + enum branch_checkout_kind {
389 + BRANCH_CHECKOUT_KIND_CHECKOUT,
390 + BRANCH_CHECKOUT_KIND_REBASE,
391 + BRANCH_CHECKOUT_KIND_BISECT,
392 + BRANCH_CHECKOUT_KIND_UPDATE_REF,
393 + };
394 +
395 + struct checked_out_branch {
396 + char *refname;
397 + char *path;
398 + enum branch_checkout_kind kind;
399 + };
400 +
401 + static struct checked_out_branch *checked_out_branches;
402 + static size_t checked_out_branches_alloc, checked_out_branches_nr;
403 +
404 + static void register_checked_out_branch(const char *prefix, const char *name,
405 + const char *path,
406 + enum branch_checkout_kind kind)
407 + {
408 + char *refname = xstrfmt("%s%s", prefix, name);
409 + char *path_copy = xstrdup(path);
410 +
411 + ALLOC_GROW(checked_out_branches, checked_out_branches_nr + 1,
412 + checked_out_branches_alloc);
413 + checked_out_branches[checked_out_branches_nr].refname = refname;
414 + checked_out_branches[checked_out_branches_nr].path = path_copy;
415 + checked_out_branches[checked_out_branches_nr].kind = kind;
416 + checked_out_branches_nr++;
417 +
418 + strmap_put(&current_checked_out_branches, refname, path_copy);
419 + }
420 +
388 421 static void prepare_checked_out_branches(void)
389 422 {
390 423 int i = 0;
@@ -397,7 +430,7 @@ static void prepare_checked_out_branches(void)
397 430 worktrees = get_worktrees(the_repository);
398 431
399 432 while (worktrees[i]) {
400 - char *old, *wt_gitdir;
433 + char *wt_gitdir;
401 434 struct wt_status_state state = { 0 };
402 435 struct worktree *wt = worktrees[i++];
403 436 struct string_list update_refs = STRING_LIST_INIT_DUP;
@@ -406,34 +439,25 @@ static void prepare_checked_out_branches(void)
406 439 continue;
407 440
408 441 if (wt->head_ref) {
409 - old = strmap_put(&current_checked_out_branches,
410 - wt->head_ref,
411 - xstrdup(wt->path));
412 - free(old);
442 + register_checked_out_branch("", wt->head_ref, wt->path,
443 + BRANCH_CHECKOUT_KIND_CHECKOUT);
413 444 }
414 445
415 446 if (wt_status_check_rebase(wt, &state) &&
416 447 (state.rebase_in_progress || state.rebase_interactive_in_progress) &&
417 448 state.branch) {
418 - struct strbuf ref = STRBUF_INIT;
419 - strbuf_addf(&ref, "refs/heads/%s", state.branch);
420 - old = strmap_put(&current_checked_out_branches,
421 - ref.buf,
422 - xstrdup(wt->path));
423 - free(old);
424 - strbuf_release(&ref);
449 + register_checked_out_branch("refs/heads/", state.branch,
450 + wt->path,
451 + BRANCH_CHECKOUT_KIND_REBASE);
425 452 }
426 453 wt_status_state_free_buffers(&state);
427 454
428 455 if (wt_status_check_bisect(wt, &state) &&
429 456 state.bisecting_from) {
430 - struct strbuf ref = STRBUF_INIT;
431 - strbuf_addf(&ref, "refs/heads/%s", state.bisecting_from);
432 - old = strmap_put(&current_checked_out_branches,
433 - ref.buf,
434 - xstrdup(wt->path));
435 - free(old);
436 - strbuf_release(&ref);
457 + register_checked_out_branch("refs/heads/",
458 + state.bisecting_from,
459 + wt->path,
460 + BRANCH_CHECKOUT_KIND_BISECT);
437 461 }
438 462 wt_status_state_free_buffers(&state);
439 463
@@ -442,10 +466,9 @@ static void prepare_checked_out_branches(void)
442 466 &update_refs)) {
443 467 struct string_list_item *item;
444 468 for_each_string_list_item(item, &update_refs) {
445 - old = strmap_put(&current_checked_out_branches,
446 - item->string,
447 - xstrdup(wt->path));
448 - free(old);
469 + register_checked_out_branch("", item->string,
470 + wt->path,
471 + BRANCH_CHECKOUT_KIND_UPDATE_REF);
449 472 }
450 473 string_list_clear(&update_refs, 1);
451 474 }
@@ -462,6 +485,17 @@ const char *branch_checked_out(const char *refname)
462 485 return strmap_get(&current_checked_out_branches, refname);
463 486 }
464 487
488 + const char *branch_bisecting(const char *refname)
489 + {
490 + prepare_checked_out_branches();
491 + for (size_t i = 0; i < checked_out_branches_nr; i++) {
492 + if (!strcmp(refname, checked_out_branches[i].refname) &&
493 + checked_out_branches[i].kind == BRANCH_CHECKOUT_KIND_BISECT)
494 + return checked_out_branches[i].path;
495 + }
496 + return NULL;
497 + }
498 +
465 499 /*
466 500 * Check if a branch 'name' can be created as a new branch; die otherwise.
467 501 * 'force' can be used when it is OK for the named branch already exists.
modified branch.h
@@ -106,6 +106,12 @@ void create_branches_recursively(struct repository *r, const char *name,
106 106 */
107 107 const char *branch_checked_out(const char *refname);
108 108
109 + /*
110 + * If the branch at 'refname' is currently used for bisecting in a
111 + * worktree, then return the path to that worktree.
112 + */
113 + const char *branch_bisecting(const char *refname);
114 +
109 115 /*
110 116 * Check if 'name' can be a valid name for a branch; die otherwise.
111 117 * Return 1 if the named branch already exists; return 0 otherwise.
modified builtin/add.c
@@ -13,7 +13,6 @@
13 13 #include "dir.h"
14 14 #include "gettext.h"
15 15 #include "pathspec.h"
16 - #include "run-command.h"
17 16 #include "object-file.h"
18 17 #include "odb.h"
19 18 #include "odb/transaction.h"
@@ -23,9 +22,10 @@
23 22 #include "diff.h"
24 23 #include "read-cache.h"
25 24 #include "revision.h"
26 - #include "strvec.h"
27 25 #include "submodule.h"
28 26 #include "add-interactive.h"
27 + #include "merge-ll.h"
28 + #include "apply.h"
29 29
30 30 static const char * const builtin_add_usage[] = {
31 31 N_("git add [<options>] [--] <pathspec>..."),
@@ -35,6 +35,7 @@ static int patch_interactive, add_interactive, edit_interactive;
35 35 static struct interactive_options interactive_opts = INTERACTIVE_OPTIONS_INIT;
36 36 static int take_worktree_changes;
37 37 static int add_renormalize;
38 + static int add_resolved;
38 39 static int pathspec_file_nul;
39 40 static int include_sparse;
40 41 static const char *pathspec_from_file;
@@ -187,7 +188,8 @@ static int edit_patch(struct repository *repo,
187 188 const char *prefix)
188 189 {
189 190 char *file = repo_git_path(repo, "ADD_EDIT.patch");
190 - struct child_process child = CHILD_PROCESS_INIT;
191 + struct apply_state state;
192 + const char *apply_argv[2];
191 193 struct rev_info rev;
192 194 int out;
193 195 struct stat st;
@@ -217,11 +219,16 @@ static int edit_patch(struct repository *repo,
217 219 if (!st.st_size)
218 220 die(_("empty patch. aborted"));
219 221
220 - child.git_cmd = 1;
221 - strvec_pushl(&child.args, "apply", "--recount", "--cached", file,
222 - NULL);
223 - if (run_command(&child))
222 + apply_argv[0] = file;
223 + apply_argv[1] = NULL;
224 + if (init_apply_state(&state, repo, NULL))
225 + die(_("could not initialize apply state"));
226 + state.cached = 1;
227 + if (check_apply_state(&state, 0))
228 + die(_("could not check apply state"));
229 + if (apply_all_patches(&state, 1, apply_argv, APPLY_OPT_RECOUNT))
224 230 die(_("could not apply '%s'"), file);
231 + clear_apply_state(&state);
225 232
226 233 unlink(file);
227 234 free(file);
@@ -265,6 +272,7 @@ static struct option builtin_add_options[] = {
265 272 OPT__FORCE(&ignored_too, N_("allow adding otherwise ignored files"), 0),
266 273 OPT_BOOL('u', "update", &take_worktree_changes, N_("update tracked files")),
267 274 OPT_BOOL(0, "renormalize", &add_renormalize, N_("renormalize EOL of tracked files (implies -u)")),
275 + OPT_BOOL(0, "resolved", &add_resolved, N_("add conflict-resolved tracked files")),
268 276 OPT_BOOL('N', "intent-to-add", &intent_to_add, N_("record only the fact that the path will be added later")),
269 277 OPT_BOOL('A', "all", &addremove_explicit, N_("add changes from all tracked and untracked files")),
270 278 OPT_CALLBACK_F(0, "ignore-removal", &addremove_explicit,
@@ -379,6 +387,76 @@ static int add_files(struct repository *repo, struct dir_struct *dir, int flags)
379 387 return exit_status;
380 388 }
381 389
390 + static int failed_to_add(int flags, const char *path)
391 + {
392 + if (!(flags & ADD_CACHE_IGNORE_ERRORS))
393 + die(_("updating file '%s' failed"), path);
394 + return 1;
395 + }
396 +
397 + static int add_resolved_files(struct repository *repo,
398 + const struct pathspec *pathspec,
399 + int flags)
400 + {
401 + struct index_state *istate = repo->index;
402 + struct string_list unmerged_paths = STRING_LIST_INIT_DUP;
403 + struct string_list unresolved_paths = STRING_LIST_INIT_DUP;
404 + int exit_status = 0;
405 + size_t i;
406 +
407 + for (i = 0; i < istate->cache_nr; i++) {
408 + struct cache_entry *ce = istate->cache[i];
409 + if (!ce_stage(ce))
410 + continue;
411 + if (pathspec->nr && !ce_path_match(istate, ce, pathspec, NULL))
412 + continue;
413 + if (!unmerged_paths.nr ||
414 + strcmp(unmerged_paths.items[unmerged_paths.nr - 1].string, ce->name))
415 + string_list_append(&unmerged_paths, ce->name);
416 + }
417 +
418 + if (!unmerged_paths.nr) {
419 + string_list_clear(&unmerged_paths, 0);
420 + return 0;
421 + }
422 +
423 + for (i = 0; i < unmerged_paths.nr; i++) {
424 + const char *path = unmerged_paths.items[i].string;
425 + struct stat st;
426 +
427 + if (!lstat(path, &st) && S_ISREG(st.st_mode)) {
428 + if (has_conflict_markers(istate, path))
429 + string_list_append(&unresolved_paths, path);
430 + }
431 + }
432 +
433 + if (unresolved_paths.nr) {
434 + struct strbuf sb = STRBUF_INIT;
435 + for (i = 0; i < unresolved_paths.nr; i++)
436 + strbuf_addf(&sb, "\t%s\n", unresolved_paths.items[i].string);
437 + die(_("the following paths still have conflict markers:\n%s"), sb.buf);
438 + }
439 +
440 + for (i = 0; i < unmerged_paths.nr; i++) {
441 + const char *path = unmerged_paths.items[i].string;
442 + struct stat st;
443 +
444 + if (lstat(path, &st)) {
445 + if (errno != ENOENT)
446 + die_errno(_("cannot lstat: '%s'"), path);
447 + if (remove_file_from_index_with_flags(istate, path, flags))
448 + exit_status = failed_to_add(flags, path);
449 + } else {
450 + if (add_file_to_index(istate, path, flags))
451 + exit_status = failed_to_add(flags, path);
452 + }
453 + }
454 +
455 + string_list_clear(&unmerged_paths, 0);
456 + string_list_clear(&unresolved_paths, 0);
457 + return exit_status;
458 + }
459 +
382 460 int cmd_add(int argc,
383 461 const char **argv,
384 462 const char *prefix,
@@ -393,7 +471,7 @@ int cmd_add(int argc,
393 471 char *seen = NULL;
394 472 char *ps_matched = NULL;
395 473 struct lock_file lock_file = LOCK_INIT;
396 - struct odb_transaction *transaction;
474 + struct odb_transaction *transaction = NULL;
397 475
398 476 repo_config(repo, add_config, NULL);
399 477
@@ -438,8 +516,9 @@ int cmd_add(int argc,
438 516 else if (take_worktree_changes && ADDREMOVE_DEFAULT)
439 517 addremove = 0; /* "-u" was given but not "-A" */
440 518
441 - if (addremove && take_worktree_changes)
442 - die(_("options '%s' and '%s' cannot be used together"), "-A", "-u");
519 + die_for_incompatible_opt3(take_worktree_changes, "-u/--update",
520 + 0 < addremove_explicit, "-A/--all",
521 + add_resolved, "--resolved");
443 522
444 523 if (!show_only && ignore_missing)
445 524 die(_("the option '%s' requires '%s'"), "--ignore-missing", "--dry-run");
@@ -448,8 +527,11 @@ int cmd_add(int argc,
448 527 chmod_arg[1] != 'x' || chmod_arg[2]))
449 528 die(_("--chmod param '%s' must be either -x or +x"), chmod_arg);
450 529
451 - add_new_files = !take_worktree_changes && !refresh_only && !add_renormalize;
452 - require_pathspec = !(take_worktree_changes || (0 < addremove_explicit));
530 + add_new_files = !take_worktree_changes && !refresh_only &&
531 + !add_renormalize && !add_resolved;
532 + require_pathspec = !(take_worktree_changes ||
533 + (0 < addremove_explicit) ||
534 + add_resolved);
453 535
454 536 repo_hold_locked_index(repo, &lock_file, LOCK_DIE_ON_ERROR);
455 537
@@ -481,7 +563,8 @@ int cmd_add(int argc,
481 563 return 0;
482 564 }
483 565
484 - if (!take_worktree_changes && addremove_explicit < 0 && pathspec.nr)
566 + if (!take_worktree_changes && !add_resolved &&
567 + addremove_explicit < 0 && pathspec.nr)
485 568 /* Turn "git add pathspec..." to "git add -A pathspec..." */
486 569 addremove = 1;
487 570
@@ -584,7 +667,9 @@ int cmd_add(int argc,
584 667 odb_transaction_begin_or_die(repo->objects, &transaction, 0);
585 668
586 669 ps_matched = xcalloc(pathspec.nr, 1);
587 - if (add_renormalize)
670 + if (add_resolved)
671 + exit_status |= add_resolved_files(repo, &pathspec, flags);
672 + else if (add_renormalize)
588 673 exit_status |= renormalize_tracked_files(repo, &pathspec, flags);
589 674 else
590 675 exit_status |= add_files_to_cache(repo, prefix,
@@ -600,7 +685,7 @@ int cmd_add(int argc,
600 685
601 686 if (chmod_arg && pathspec.nr)
602 687 exit_status |= chmod_pathspec(repo, &pathspec, chmod_arg[0], show_only);
603 - odb_transaction_commit(transaction);
688 + odb_transaction_commit_and_finalize_or_die(transaction);
604 689
605 690 finish:
606 691 if (write_locked_index(repo->index, &lock_file,
modified builtin/bisect.c
@@ -24,11 +24,12 @@ static GIT_PATH_FUNC(git_path_bisect_start, "BISECT_START")
24 24 static GIT_PATH_FUNC(git_path_bisect_log, "BISECT_LOG")
25 25 static GIT_PATH_FUNC(git_path_bisect_names, "BISECT_NAMES")
26 26 static GIT_PATH_FUNC(git_path_bisect_first_parent, "BISECT_FIRST_PARENT")
27 + static GIT_PATH_FUNC(git_path_bisect_reset_when_found, "BISECT_RESET_WHEN_FOUND")
27 28 static GIT_PATH_FUNC(git_path_bisect_run, "BISECT_RUN")
28 29
29 30 #define BUILTIN_GIT_BISECT_START_USAGE \
30 31 N_("git bisect start [--term-(bad|new)=<term-new> --term-(good|old)=<term-old>]\n" \
31 - " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<pathspec>...]")
32 + " [--no-checkout] [--first-parent] [--reset-when-found[=<where>]] [<bad> [<good>...]] [--] [<pathspec>...]")
32 33 #define BUILTIN_GIT_BISECT_BAD_USAGE \
33 34 N_("git bisect (bad|new|<term-new>) [<rev>]")
34 35 #define BUILTIN_GIT_BISECT_GOOD_USAGE \
@@ -48,7 +49,7 @@ static GIT_PATH_FUNC(git_path_bisect_run, "BISECT_RUN")
48 49 #define BUILTIN_GIT_BISECT_LOG_USAGE \
49 50 "git bisect log"
50 51 #define BUILTIN_GIT_BISECT_RUN_USAGE \
51 - N_("git bisect run <cmd> [<arg>...]")
52 + N_("git bisect run [--reset-when-found[=<where>]] <cmd> [<arg>...]")
52 53 #define BUILTIN_GIT_BISECT_HELP_USAGE \
53 54 "git bisect help"
54 55
@@ -68,6 +69,12 @@ static const char * const git_bisect_usage[] = {
68 69 NULL
69 70 };
70 71
72 + enum reset_when_found_mode {
73 + RESET_WHEN_FOUND_NONE,
74 + RESET_WHEN_FOUND_TO_ORIGINAL,
75 + RESET_WHEN_FOUND_TO_FOUND,
76 + };
77 +
71 78 struct add_bisect_ref_data {
72 79 struct rev_info *revs;
73 80 unsigned int object_flags;
@@ -234,7 +241,7 @@ static int write_terms(const char *bad, const char *good)
234 241 return res;
235 242 }
236 243
237 - static int bisect_reset(const char *commit)
244 + static int bisect_reset(const char *commit, bool quiet)
238 245 {
239 246 struct strbuf branch = STRBUF_INIT;
240 247
@@ -255,8 +262,10 @@ static int bisect_reset(const char *commit)
255 262 struct child_process cmd = CHILD_PROCESS_INIT;
256 263
257 264 cmd.git_cmd = 1;
258 - strvec_pushl(&cmd.args, "checkout", "--ignore-other-worktrees",
259 - branch.buf, "--", NULL);
265 + strvec_pushl(&cmd.args, "checkout", "--ignore-other-worktrees", NULL);
266 + if (quiet)
267 + strvec_push(&cmd.args, "--quiet");
268 + strvec_pushl(&cmd.args, branch.buf, "--", NULL);
260 269 if (run_command(&cmd)) {
261 270 error(_("could not check out original"
262 271 " HEAD '%s'. Try 'git bisect"
@@ -267,7 +276,79 @@ static int bisect_reset(const char *commit)
267 276 }
268 277
269 278 strbuf_release(&branch);
270 - return bisect_clean_state();
279 + return 0;
280 + }
281 +
282 + static int parse_reset_when_found(const char *value,
283 + enum reset_when_found_mode *mode)
284 + {
285 + if (!strcmp(value, "original"))
286 + *mode = RESET_WHEN_FOUND_TO_ORIGINAL;
287 + else if (!strcmp(value, "found"))
288 + *mode = RESET_WHEN_FOUND_TO_FOUND;
289 + else
290 + return error(_("invalid value for '--reset-when-found': '%s'"),
291 + value);
292 +
293 + return 0;
294 + }
295 +
296 + static const char *reset_when_found_mode_name(enum reset_when_found_mode mode)
297 + {
298 + switch (mode) {
299 + case RESET_WHEN_FOUND_TO_ORIGINAL:
300 + return "original";
301 + case RESET_WHEN_FOUND_TO_FOUND:
302 + return "found";
303 + case RESET_WHEN_FOUND_NONE:
304 + BUG("no name for unset reset-when-found mode");
305 + }
306 + BUG("unknown reset-when-found mode %d", mode);
307 + }
308 +
309 + static int read_reset_when_found(enum reset_when_found_mode *mode)
310 + {
311 + struct strbuf value = STRBUF_INIT;
312 + int res = 0;
313 +
314 + *mode = RESET_WHEN_FOUND_NONE;
315 + if (is_empty_or_missing_file(git_path_bisect_reset_when_found()))
316 + return 0;
317 +
318 + if (strbuf_read_file(&value, git_path_bisect_reset_when_found(), 0) < 0) {
319 + res = error_errno(_("could not read '%s'"),
320 + git_path_bisect_reset_when_found());
321 + goto out;
322 + }
323 + strbuf_trim(&value);
324 + if (parse_reset_when_found(value.buf, mode))
325 + res = -1;
326 +
327 + out:
328 + strbuf_release(&value);
329 + return res;
330 + }
331 +
332 + static int bisect_reset_when_found(enum reset_when_found_mode mode)
333 + {
334 + struct bisect_terms terms = { 0 };
335 + char *commit = NULL;
336 + int res;
337 +
338 + if (mode == RESET_WHEN_FOUND_TO_FOUND) {
339 + read_bisect_terms(&terms.term_bad, &terms.term_good);
340 + commit = xstrfmt("refs/bisect/%s", terms.term_bad);
341 + } else if (mode == RESET_WHEN_FOUND_NONE) {
342 + BUG("automatic reset requested without a reset mode");
343 + }
344 +
345 + res = bisect_reset(commit, true);
346 + if (!res)
347 + res = bisect_clean_state();
348 +
349 + free(commit);
350 + free_terms(&terms);
351 + return res;
271 352 }
272 353
273 354 static void log_commit(FILE *fp,
@@ -485,7 +566,7 @@ static int bisect_next_check(const struct bisect_terms *terms,
485 566 return decide_next(terms, current_term, !state.nr_good, !state.nr_bad);
486 567 }
487 568
488 - static int get_terms(struct bisect_terms *terms)
569 + static int get_terms(struct bisect_terms *terms, int file_missing_is_ok)
489 570 {
490 571 struct strbuf str = STRBUF_INIT;
491 572 FILE *fp = NULL;
@@ -493,14 +574,21 @@ static int get_terms(struct bisect_terms *terms)
493 574
494 575 fp = fopen(git_path_bisect_terms(), "r");
495 576 if (!fp) {
496 - res = -1;
577 + res = file_missing_is_ok ? 0 : -1;
497 578 goto finish;
498 579 }
499 580
500 581 free_terms(terms);
501 - strbuf_getline_lf(&str, fp);
582 + if (strbuf_getline_lf(&str, fp) == EOF) {
583 + res = -1;
584 + goto finish;
585 + }
502 586 terms->term_bad = strbuf_detach(&str, NULL);
503 - strbuf_getline_lf(&str, fp);
587 + if (strbuf_getline_lf(&str, fp) == EOF) {
588 + res = -1;
589 + FREE_AND_NULL(terms->term_bad);
590 + goto finish;
591 + }
504 592 terms->term_good = strbuf_detach(&str, NULL);
505 593
506 594 finish:
@@ -512,7 +600,7 @@ finish:
512 600
513 601 static int bisect_terms(struct bisect_terms *terms, const char *option)
514 602 {
515 - if (get_terms(terms))
603 + if (get_terms(terms, 0))
516 604 return error(_("no terms defined"));
517 605
518 606 if (!option) {
@@ -680,7 +768,8 @@ static int bisect_successful(struct bisect_terms *terms)
680 768 return res;
681 769 }
682 770
683 - static enum bisect_error bisect_next(struct bisect_terms *terms, const char *prefix)
771 + static enum bisect_error bisect_next(struct bisect_terms *terms,
772 + const char *prefix)
684 773 {
685 774 enum bisect_error res;
686 775
@@ -703,7 +792,8 @@ static enum bisect_error bisect_next(struct bisect_terms *terms, const char *pre
703 792 return res;
704 793 }
705 794
706 - static enum bisect_error bisect_auto_next(struct bisect_terms *terms, const char *prefix)
795 + static enum bisect_error bisect_auto_next(struct bisect_terms *terms,
796 + const char *prefix)
707 797 {
708 798 if (bisect_next_check(terms, NULL)) {
709 799 bisect_print_status(terms);
@@ -727,6 +817,7 @@ static enum bisect_error bisect_start(struct bisect_terms *terms, int argc,
727 817 struct strbuf bisect_names = STRBUF_INIT;
728 818 struct object_id head_oid;
729 819 struct object_id oid;
820 + enum reset_when_found_mode reset_when_found = RESET_WHEN_FOUND_NONE;
730 821 const char *head;
731 822
732 823 if (is_bare_repository(the_repository))
@@ -750,6 +841,13 @@ static enum bisect_error bisect_start(struct bisect_terms *terms, int argc,
750 841 no_checkout = 1;
751 842 } else if (!strcmp(arg, "--first-parent")) {
752 843 first_parent_only = 1;
844 + } else if (!strcmp(arg, "--reset-when-found")) {
845 + reset_when_found = RESET_WHEN_FOUND_TO_ORIGINAL;
846 + } else if (skip_prefix(arg, "--reset-when-found=", &arg)) {
847 + if (parse_reset_when_found(arg, &reset_when_found)) {
848 + res = BISECT_FAILED;
849 + goto finish;
850 + }
753 851 } else if (!strcmp(arg, "--term-good") ||
754 852 !strcmp(arg, "--term-old")) {
755 853 i++;
@@ -787,6 +885,11 @@ static enum bisect_error bisect_start(struct bisect_terms *terms, int argc,
787 885 break;
788 886 }
789 887 }
888 + if (reset_when_found != RESET_WHEN_FOUND_NONE && no_checkout) {
889 + res = error(_("options '%s' and '%s' cannot be used together"),
890 + "--reset-when-found", "--no-checkout");
891 + goto finish;
892 + }
790 893 pathspec_pos = i;
791 894
792 895 /*
@@ -866,6 +969,10 @@ static enum bisect_error bisect_start(struct bisect_terms *terms, int argc,
866 969 if (first_parent_only)
867 970 write_file(git_path_bisect_first_parent(), "\n");
868 971
972 + if (reset_when_found != RESET_WHEN_FOUND_NONE)
973 + write_file(git_path_bisect_reset_when_found(), "%s\n",
974 + reset_when_found_mode_name(reset_when_found));
975 +
869 976 if (no_checkout) {
870 977 if (repo_get_oid(the_repository, start_head.buf, &oid) < 0) {
871 978 res = error(_("invalid ref: '%s'"), start_head.buf);
@@ -1057,7 +1164,8 @@ static int process_replay_line(struct bisect_terms *terms, struct strbuf *line)
1057 1164 rev = word_end + strspn(word_end, " \t");
1058 1165 *word_end = '\0'; /* NUL-terminate the word */
1059 1166
1060 - get_terms(terms);
1167 + if (get_terms(terms, 1))
1168 + return error(_("no terms defined"));
1061 1169 if (check_and_set_terms(terms, p))
1062 1170 return -1;
1063 1171
@@ -1096,7 +1204,7 @@ static enum bisect_error bisect_replay(struct bisect_terms *terms, const char *f
1096 1204 if (is_empty_or_missing_file(filename))
1097 1205 return error(_("cannot read file '%s' for replaying"), filename);
1098 1206
1099 - if (bisect_reset(NULL))
1207 + if (bisect_clean_state())
1100 1208 return BISECT_FAILED;
1101 1209
1102 1210 fp = fopen(filename, "r");
@@ -1244,13 +1352,36 @@ static int bisect_run(struct bisect_terms *terms, int argc, const char **argv)
1244 1352 {
1245 1353 int res = BISECT_OK;
1246 1354 struct strbuf command = STRBUF_INIT;
1355 + const char *reset_when_found_arg;
1247 1356 const char *new_state;
1248 1357 int temporary_stdout_fd, saved_stdout;
1249 1358 int is_first_run = 1;
1359 + enum reset_when_found_mode reset_when_found = RESET_WHEN_FOUND_NONE;
1250 1360
1251 1361 if (bisect_next_check(terms, NULL))
1252 1362 return BISECT_FAILED;
1253 1363
1364 + if (argc && !strcmp(argv[0], "--reset-when-found")) {
1365 + reset_when_found = RESET_WHEN_FOUND_TO_ORIGINAL;
1366 + } else if (argc && skip_prefix(argv[0], "--reset-when-found=",
1367 + &reset_when_found_arg)) {
1368 + if (parse_reset_when_found(reset_when_found_arg,
1369 + &reset_when_found))
1370 + return BISECT_FAILED;
1371 + }
1372 +
1373 + if (reset_when_found != RESET_WHEN_FOUND_NONE &&
1374 + refs_ref_exists(get_main_ref_store(the_repository), "BISECT_HEAD"))
1375 + return error(_("options '%s' and '%s' cannot be used together"),
1376 + "--reset-when-found", "--no-checkout");
1377 +
1378 + if (reset_when_found != RESET_WHEN_FOUND_NONE) {
1379 + write_file(git_path_bisect_reset_when_found(), "%s\n",
1380 + reset_when_found_mode_name(reset_when_found));
1381 + argc--;
1382 + argv++;
1383 + }
1384 +
1254 1385 if (!argc) {
1255 1386 error(_("bisect run failed: no command provided."));
1256 1387 return BISECT_FAILED;
@@ -1307,7 +1438,14 @@ static int bisect_run(struct bisect_terms *terms, int argc, const char **argv)
1307 1438
1308 1439 fflush(stdout);
1309 1440 saved_stdout = dup(1);
1310 - dup2(temporary_stdout_fd, 1);
1441 + if (saved_stdout < 0 ||
1442 + dup2(temporary_stdout_fd, 1) < 0) {
1443 + res = error_errno(_("could not duplicate stdout"));
1444 + if (saved_stdout >= 0)
1445 + close(saved_stdout);
1446 + close(temporary_stdout_fd);
1447 + break;
1448 + }
1311 1449
1312 1450 res = bisect_state(terms, 1, &new_state);
1313 1451
@@ -1325,7 +1463,6 @@ static int bisect_run(struct bisect_terms *terms, int argc, const char **argv)
1325 1463 res = BISECT_OK;
1326 1464 } else if (res == BISECT_INTERNAL_SUCCESS_1ST_BAD_FOUND) {
1327 1465 printf(_("bisect found first '%s' commit\n"), terms->term_bad);
1328 - res = BISECT_OK;
1329 1466 } else if (res) {
1330 1467 error(_("bisect run failed: 'git bisect %s'"
1331 1468 " exited with error code %d"), new_state, res);
@@ -1342,10 +1479,15 @@ static int bisect_run(struct bisect_terms *terms, int argc, const char **argv)
1342 1479 static int cmd_bisect__reset(int argc, const char **argv, const char *prefix UNUSED,
1343 1480 struct repository *repo UNUSED)
1344 1481 {
1482 + int res;
1483 +
1345 1484 if (argc > 1)
1346 1485 return error(_("'%s' requires either no argument or a commit"),
1347 1486 "git bisect reset");
1348 - return bisect_reset(argc ? argv[0] : NULL);
1487 + res = bisect_reset(argc ? argv[0] : NULL, false);
1488 + if (res)
1489 + return res;
1490 + return bisect_clean_state();
1349 1491 }
1350 1492
1351 1493 static int cmd_bisect__terms(int argc, const char **argv, const char *prefix UNUSED,
@@ -1383,7 +1525,8 @@ static int cmd_bisect__next(int argc, const char **argv UNUSED, const char *pref
1383 1525 if (argc)
1384 1526 return error(_("'%s' requires 0 arguments"),
1385 1527 "git bisect next");
1386 - get_terms(&terms);
1528 + if (get_terms(&terms, 1))
1529 + return error(_("no terms defined"));
1387 1530 res = bisect_next(&terms, prefix);
1388 1531 free_terms(&terms);
1389 1532 return res;
@@ -1417,7 +1560,8 @@ static int cmd_bisect__skip(int argc, const char **argv, const char *prefix UNUS
1417 1560 struct bisect_terms terms = { 0 };
1418 1561
1419 1562 set_terms(&terms, "bad", "good");
1420 - get_terms(&terms);
1563 + if (get_terms(&terms, 1))
1564 + return error(_("no terms defined"));
1421 1565 res = bisect_skip(&terms, argc, argv);
1422 1566 free_terms(&terms);
1423 1567 return res;
@@ -1429,7 +1573,8 @@ static int cmd_bisect__visualize(int argc, const char **argv, const char *prefix
1429 1573 int res;
1430 1574 struct bisect_terms terms = { 0 };
1431 1575
1432 - get_terms(&terms);
1576 + if (get_terms(&terms, 1))
1577 + return error(_("no terms defined"));
1433 1578 res = bisect_visualize(&terms, argc, argv);
1434 1579 free_terms(&terms);
1435 1580 return res;
@@ -1443,7 +1588,8 @@ static int cmd_bisect__run(int argc, const char **argv, const char *prefix UNUSE
1443 1588
1444 1589 if (!argc)
1445 1590 return error(_("'%s' failed: no command provided."), "git bisect run");
1446 - get_terms(&terms);
1591 + if (get_terms(&terms, 1))
1592 + return error(_("no terms defined"));
1447 1593 res = bisect_run(&terms, argc, argv);
1448 1594 free_terms(&terms);
1449 1595 return res;
@@ -1482,12 +1628,14 @@ int cmd_bisect(int argc,
1482 1628 usage_with_options(git_bisect_usage, options);
1483 1629
1484 1630 set_terms(&terms, "bad", "good");
1485 - get_terms(&terms);
1631 + if (get_terms(&terms, 1))
1632 + return error(_("no terms defined"));
1486 1633 if (check_and_set_terms(&terms, argv[0]) ||
1487 1634 !one_of(argv[0], terms.term_good, terms.term_bad, NULL))
1488 1635 usage_msg_optf(_("unknown command: '%s'"), git_bisect_usage,
1489 1636 options, argv[0]);
1490 - res = bisect_state(&terms, argc, argv);
1637 + else
1638 + res = bisect_state(&terms, argc, argv);
1491 1639 free_terms(&terms);
1492 1640 } else {
1493 1641 argc--;
@@ -1495,5 +1643,15 @@ int cmd_bisect(int argc,
1495 1643 res = fn(argc, argv, prefix, repo);
1496 1644 }
1497 1645
1646 + if (res == BISECT_INTERNAL_SUCCESS_1ST_BAD_FOUND) {
1647 + enum reset_when_found_mode mode;
1648 +
1649 + if (read_reset_when_found(&mode))
1650 + res = BISECT_FAILED;
1651 + else if (mode != RESET_WHEN_FOUND_NONE &&
1652 + bisect_reset_when_found(mode))
1653 + res = BISECT_FAILED;
1654 + }
1655 +
1498 1656 return is_bisect_success(res) ? 0 : -res;
1499 1657 }
modified builtin/branch.c
@@ -21,6 +21,7 @@
21 21 #include "branch.h"
22 22 #include "path.h"
23 23 #include "string-list.h"
24 + #include "strmap.h"
24 25 #include "column.h"
25 26 #include "utf8.h"
26 27 #include "ref-filter.h"
@@ -30,7 +31,7 @@
30 31 #include "commit-reach.h"
31 32
32 33 static const char * const builtin_branch_usage[] = {
33 - N_("git branch [<options>] [-r | -a] [--merged] [--no-merged]"),
34 + N_("git branch [<options>] [-r | -a] [--merged] [--no-merged] [(--forked <branch>)...]"),
34 35 N_("git branch [<options>] [-f] [--recurse-submodules] <branch-name> [<start-point>]"),
35 36 N_("git branch [<options>] [-l] [<pattern>...]"),
36 37 N_("git branch [<options>] [-r] (-d | -D) <branch-name>..."),
@@ -38,6 +39,8 @@ static const char * const builtin_branch_usage[] = {
38 39 N_("git branch [<options>] (-c | -C) [<old-branch>] <new-branch>"),
39 40 N_("git branch [<options>] [-r | -a] [--points-at]"),
40 41 N_("git branch [<options>] [-r | -a] [--format]"),
42 + N_("git branch [<options>] (--delete-merged <pattern>)... "
43 + "[<branch-pattern>...]"),
41 44 NULL
42 45 };
43 46
@@ -168,10 +171,13 @@ static int branch_merged(int kind, const char *name,
168 171 * upstream, if any, otherwise with HEAD", we should just
169 172 * return the result of the repo_in_merge_bases() above without
170 173 * any of the following code, but during the transition period,
171 - * a gentle reminder is in order.
174 + * a gentle reminder is in order. Callers that opt out of the
175 + * HEAD fallback by passing head_rev=NULL are not interested in
176 + * the reminder either: they have already established that the
177 + * branch has an upstream, so HEAD is irrelevant to the decision.
172 178 */
173 - if (head_rev != reference_rev) {
174 - int expect = head_rev ? repo_in_merge_bases(the_repository, rev, head_rev) : 0;
179 + if (head_rev && head_rev != reference_rev) {
180 + int expect = repo_in_merge_bases(the_repository, rev, head_rev);
175 181 if (expect < 0)
176 182 exit(128);
177 183 if (expect == merged)
@@ -189,20 +195,32 @@ static int branch_merged(int kind, const char *name,
189 195 return merged;
190 196 }
191 197
198 + enum delete_branch_flags {
199 + DELETE_BRANCH_FORCE = (1 << 0),
200 + DELETE_BRANCH_QUIET = (1 << 1),
201 + DELETE_BRANCH_SKIP_UNMERGED = (1 << 2),
202 + DELETE_BRANCH_NO_HEAD_FALLBACK = (1 << 3),
203 + DELETE_BRANCH_DRY_RUN = (1 << 4),
204 + };
205 +
192 206 static int check_branch_commit(const char *branchname, const char *refname,
193 207 const struct object_id *oid, struct commit *head_rev,
194 - int kinds, int force)
208 + int kinds, unsigned int flags)
195 209 {
196 210 struct commit *rev = lookup_commit_reference(the_repository, oid);
197 - if (!force && !rev) {
211 + if (!(flags & DELETE_BRANCH_FORCE) && !rev) {
198 212 error(_("couldn't look up commit object for '%s'"), refname);
199 213 return -1;
200 214 }
201 - if (!force && !branch_merged(kinds, branchname, rev, head_rev)) {
202 - error(_("the branch '%s' is not fully merged"), branchname);
203 - advise_if_enabled(ADVICE_FORCE_DELETE_BRANCH,
204 - _("If you are sure you want to delete it, "
205 - "run 'git branch -D %s'"), branchname);
215 + if (!(flags & DELETE_BRANCH_FORCE) &&
216 + !branch_merged(kinds, branchname, rev, head_rev)) {
217 + if (!(flags & DELETE_BRANCH_SKIP_UNMERGED)) {
218 + error(_("the branch '%s' is not fully merged"),
219 + branchname);
220 + advise_if_enabled(ADVICE_FORCE_DELETE_BRANCH,
221 + _("If you are sure you want to delete it, "
222 + "run 'git branch -D %s'"), branchname);
223 + }
206 224 return -1;
207 225 }
208 226 return 0;
@@ -217,8 +235,8 @@ static void delete_branch_config(const char *branchname)
217 235 strbuf_release(&buf);
218 236 }
219 237
220 - static int delete_branches(int argc, const char **argv, int force, int kinds,
221 - int quiet)
238 + static int delete_branches(int argc, const char **argv, int kinds,
239 + unsigned int flags)
222 240 {
223 241 struct commit *head_rev = NULL;
224 242 struct object_id oid;
@@ -241,7 +259,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
241 259 remote_branch = 1;
242 260 allowed_interpret = INTERPRET_BRANCH_REMOTE;
243 261
244 - force = 1;
262 + flags |= DELETE_BRANCH_FORCE;
245 263 break;
246 264 case FILTER_REFS_BRANCHES:
247 265 fmt = "refs/heads/%s";
@@ -252,12 +270,13 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
252 270 }
253 271 branch_name_pos = strcspn(fmt, "%");
254 272
255 - if (!force)
273 + if (!(flags & DELETE_BRANCH_FORCE) &&
274 + !(flags & DELETE_BRANCH_NO_HEAD_FALLBACK))
256 275 head_rev = lookup_commit_reference(the_repository, &head_oid);
257 276
258 277 for (i = 0; i < argc; i++, strbuf_reset(&bname)) {
259 278 char *target = NULL;
260 - int flags = 0;
279 + int ref_flags = 0;
261 280
262 281 copy_branchname(the_repository, &bname,
263 282 argv[i], allowed_interpret);
@@ -266,6 +285,13 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
266 285
267 286 if (kinds == FILTER_REFS_BRANCHES) {
268 287 const char *path;
288 + if ((path = branch_bisecting(name))) {
289 + error(_("cannot delete branch '%s' "
290 + "used by worktree at '%s' for bisect"),
291 + bname.buf, path);
292 + ret = 1;
293 + continue;
294 + }
269 295 if ((path = branch_checked_out(name))) {
270 296 error(_("cannot delete branch '%s' "
271 297 "used by worktree at '%s'"),
@@ -280,7 +306,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
280 306 RESOLVE_REF_READING
281 307 | RESOLVE_REF_NO_RECURSE
282 308 | RESOLVE_REF_ALLOW_BAD_NAME,
283 - &oid, &flags);
309 + &oid, &ref_flags);
284 310 if (!target) {
285 311 if (remote_branch) {
286 312 error(_("remote-tracking branch '%s' not found"), bname.buf);
@@ -292,7 +318,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
292 318 | RESOLVE_REF_NO_RECURSE
293 319 | RESOLVE_REF_ALLOW_BAD_NAME,
294 320 &oid,
295 - &flags);
321 + &ref_flags);
296 322 FREE_AND_NULL(virtual_name);
297 323
298 324 if (virtual_target)
@@ -307,31 +333,39 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
307 333 continue;
308 334 }
309 335
310 - if (!(flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
336 + if (!(ref_flags & (REF_ISSYMREF|REF_ISBROKEN)) &&
311 337 check_branch_commit(bname.buf, name, &oid, head_rev, kinds,
312 - force)) {
313 - ret = 1;
338 + flags)) {
339 + if (!(flags & DELETE_BRANCH_SKIP_UNMERGED))
340 + ret = 1;
314 341 goto next;
315 342 }
316 343
317 344 item = string_list_append(&refs_to_delete, name);
318 - item->util = xstrdup((flags & REF_ISBROKEN) ? "broken"
319 - : (flags & REF_ISSYMREF) ? target
345 + item->util = xstrdup((ref_flags & REF_ISBROKEN) ? "broken"
346 + : (ref_flags & REF_ISSYMREF) ? target
320 347 : repo_find_unique_abbrev(the_repository, &oid, DEFAULT_ABBREV));
321 348
322 349 next:
323 350 free(target);
324 351 }
325 352
326 - if (refs_delete_refs(get_main_ref_store(the_repository), NULL, &refs_to_delete, REF_NO_DEREF))
353 + if (!(flags & DELETE_BRANCH_DRY_RUN) &&
354 + refs_delete_refs(get_main_ref_store(the_repository), NULL, &refs_to_delete, REF_NO_DEREF))
327 355 ret = 1;
328 356
329 357 for_each_string_list_item(item, &refs_to_delete) {
330 358 char *describe_ref = item->util;
331 359 char *name = item->string;
332 - if (!refs_ref_exists(get_main_ref_store(the_repository), name)) {
360 + if (flags & DELETE_BRANCH_DRY_RUN) {
361 + if (!(flags & DELETE_BRANCH_QUIET))
362 + printf(remote_branch
363 + ? _("Would delete remote-tracking branch %s (was %s).\n")
364 + : _("Would delete branch %s (was %s).\n"),
365 + name + branch_name_pos, describe_ref);
366 + } else if (!refs_ref_exists(get_main_ref_store(the_repository), name)) {
333 367 char *refname = name + branch_name_pos;
334 - if (!quiet)
368 + if (!(flags & DELETE_BRANCH_QUIET))
335 369 printf(remote_branch
336 370 ? _("Deleted remote-tracking branch %s (was %s).\n")
337 371 : _("Deleted branch %s (was %s).\n"),
@@ -674,6 +708,208 @@ static void copy_or_rename_branch(const char *oldname, const char *newname, int
674 708 free_worktrees(worktrees);
675 709 }
676 710
711 + static int parse_opt_forked(const struct option *opt, const char *arg, int unset)
712 + {
713 + struct ref_filter *filter = opt->value;
714 +
715 + BUG_ON_OPT_NEG(unset);
716 + if (ref_filter_forked_add(filter, arg) < 0)
717 + die(_("'%s' is not a valid branch or pattern"), arg);
718 + return 0;
719 + }
720 +
721 + struct stacked_branch_data {
722 + struct strset *deletable_branch_names;
723 + struct strset *protected_branch_names;
724 + };
725 +
726 + static int collect_stacked_branch_base(const struct reference *ref,
727 + void *cb_data)
728 + {
729 + struct stacked_branch_data *data = cb_data;
730 + const char *branch_name;
731 + struct branch *branch;
732 + const char *upstream_refname;
733 + const char *upstream_branch_name;
734 +
735 + if (!skip_prefix(ref->name, "refs/heads/", &branch_name))
736 + BUG("expected local branch ref, got '%s'", ref->name);
737 + if (strset_contains(data->deletable_branch_names, branch_name))
738 + return 0;
739 +
740 + branch = branch_get(branch_name);
741 + upstream_refname = branch_get_upstream(branch, NULL);
742 + if (!upstream_refname ||
743 + !skip_prefix(upstream_refname, "refs/heads/",
744 + &upstream_branch_name) ||
745 + !strset_contains(data->deletable_branch_names,
746 + upstream_branch_name))
747 + return 0;
748 +
749 + strset_add(data->protected_branch_names, upstream_branch_name);
750 + return 0;
751 + }
752 +
753 + static void protect_stacked_branch_bases(struct ref_store *refs,
754 + struct strset *deletable_branch_names,
755 + struct strset *protected_branch_names)
756 + {
757 + struct stacked_branch_data data = {
758 + .deletable_branch_names = deletable_branch_names,
759 + .protected_branch_names = protected_branch_names,
760 + };
761 + struct refs_for_each_ref_options opts = {
762 + .prefix = "refs/heads/",
763 + };
764 + struct hashmap_iter iter;
765 + struct strmap_entry *entry;
766 +
767 + refs_for_each_ref_ext(refs, collect_stacked_branch_base, &data, &opts);
768 +
769 + strset_for_each_entry(protected_branch_names, &iter, entry)
770 + strset_remove(deletable_branch_names, entry->key);
771 + }
772 +
773 + static void clear_deleted_upstreams(struct strset *protected_branch_names,
774 + struct strset *deletable_branch_names)
775 + {
776 + struct strbuf key = STRBUF_INIT;
777 + struct hashmap_iter iter;
778 + struct strmap_entry *entry;
779 +
780 + strset_for_each_entry(protected_branch_names, &iter, entry) {
781 + struct branch *branch = branch_get(entry->key);
782 + const char *upstream_refname = branch_get_upstream(branch, NULL);
783 + const char *upstream_branch_name;
784 +
785 + if (!upstream_refname ||
786 + !skip_prefix(upstream_refname, "refs/heads/",
787 + &upstream_branch_name) ||
788 + !strset_contains(deletable_branch_names,
789 + upstream_branch_name))
790 + continue;
791 +
792 + strbuf_addf(&key, "branch.%s.merge", branch->name);
793 + repo_config_set_gently(the_repository, key.buf, NULL);
794 + strbuf_reset(&key);
795 + strbuf_addf(&key, "branch.%s.remote", branch->name);
796 + repo_config_set_gently(the_repository, key.buf, NULL);
797 + strbuf_reset(&key);
798 + }
799 +
800 + strbuf_release(&key);
801 + }
802 +
803 + static int branch_pushes_to_upstream(struct branch *branch,
804 + const char *upstream)
805 + {
806 + struct remote *remote = remote_get(remote_for_branch(branch, NULL));
807 + char *push_refname = NULL;
808 + char *tracking = NULL;
809 + int ret = 0;
810 +
811 + if (!remote)
812 + return 0;
813 + if (remote->push.nr)
814 + push_refname = apply_refspecs(&remote->push, branch->refname);
815 + else
816 + push_refname = xstrdup(branch->refname);
817 + if (push_refname)
818 + tracking = apply_refspecs(&remote->fetch, push_refname);
819 + if (tracking && !strcmp(tracking, upstream))
820 + ret = 1;
821 +
822 + free(push_refname);
823 + free(tracking);
824 + return ret;
825 + }
826 +
827 + static int delete_merged_branches(const struct strvec *upstreams,
828 + const char **argv, unsigned int flags)
829 + {
830 + struct ref_store *refs = get_main_ref_store(the_repository);
831 + struct ref_filter filter = REF_FILTER_INIT;
832 + struct ref_array candidates = { 0 };
833 + struct strset deletable_branch_names = STRSET_INIT;
834 + struct strset protected_branch_names = STRSET_INIT;
835 + struct strvec branches_to_delete = STRVEC_INIT;
836 + struct strbuf key = STRBUF_INIT;
837 + struct hashmap_iter iter;
838 + struct strmap_entry *entry;
839 + int ret = 0;
840 +
841 + for (size_t i = 0; i < upstreams->nr; i++)
842 + if (ref_filter_forked_add(&filter, upstreams->v[i]) < 0)
843 + die(_("'%s' is not a valid branch or pattern"),
844 + upstreams->v[i]);
845 +
846 + filter.kind = FILTER_REFS_BRANCHES;
847 + filter.name_patterns = argv;
848 + filter_refs(&candidates, &filter, filter.kind);
849 +
850 + for (int i = 0; i < candidates.nr; i++) {
851 + const char *branch_refname = candidates.items[i]->refname;
852 + const char *branch_name;
853 + struct branch *branch;
854 + const char *upstream_refname;
855 + int opt_out;
856 +
857 + if (!skip_prefix(branch_refname, "refs/heads/", &branch_name))
858 + BUG("filter returned non-branch ref '%s'", branch_refname);
859 + if (branch_checked_out(branch_refname))
860 + continue;
861 +
862 + branch = branch_get(branch_name);
863 + upstream_refname = branch_get_upstream(branch, NULL);
864 + if (!upstream_refname || !refs_ref_exists(refs, upstream_refname))
865 + continue;
866 + if (branch_pushes_to_upstream(branch, upstream_refname))
867 + continue;
868 + if (check_branch_commit(branch_name, branch_name,
869 + &candidates.items[i]->objectname, NULL,
870 + FILTER_REFS_BRANCHES, DELETE_BRANCH_SKIP_UNMERGED))
871 + continue;
872 +
873 + strbuf_reset(&key);
874 + strbuf_addf(&key, "branch.%s.deletemerged", branch_name);
875 + if (!repo_config_get_bool(the_repository, key.buf, &opt_out) &&
876 + !opt_out) {
877 + if (!(flags & DELETE_BRANCH_QUIET))
878 + fprintf(stderr,
879 + _("Skipping '%s' (branch.%s.deleteMerged is false)\n"),
880 + branch_name, branch_name);
881 + continue;
882 + }
883 +
884 + strset_add(&deletable_branch_names, branch_name);
885 + }
886 +
887 + protect_stacked_branch_bases(refs, &deletable_branch_names,
888 + &protected_branch_names);
889 +
890 + strset_for_each_entry(&deletable_branch_names, &iter, entry)
891 + strvec_push(&branches_to_delete, entry->key);
892 +
893 + if (branches_to_delete.nr)
894 + ret = delete_branches(branches_to_delete.nr, branches_to_delete.v,
895 + FILTER_REFS_BRANCHES,
896 + DELETE_BRANCH_SKIP_UNMERGED |
897 + DELETE_BRANCH_NO_HEAD_FALLBACK |
898 + flags);
899 +
900 + if (!ret && !(flags & DELETE_BRANCH_DRY_RUN))
901 + clear_deleted_upstreams(&protected_branch_names,
902 + &deletable_branch_names);
903 +
904 + strbuf_release(&key);
905 + strvec_clear(&branches_to_delete);
906 + strset_clear(&protected_branch_names);
907 + strset_clear(&deletable_branch_names);
908 + ref_array_clear(&candidates);
909 + ref_filter_clear(&filter);
910 + return ret;
911 + }
912 +
677 913 static GIT_PATH_FUNC(edit_description, "EDIT_DESCRIPTION")
678 914
679 915 static int edit_branch_description(const char *branch_name)
@@ -738,6 +974,8 @@ int cmd_branch(int argc,
738 974 /* possible actions */
739 975 int delete = 0, rename = 0, copy = 0, list = 0,
740 976 unset_upstream = 0, show_current = 0, edit_description = 0;
977 + struct strvec delete_merged = STRVEC_INIT;
978 + int dry_run = 0;
741 979 const char *new_upstream = NULL;
742 980 int noncreate_actions = 0;
743 981 /* possible options */
@@ -791,9 +1029,17 @@ int cmd_branch(int argc,
791 1029 OPT_BOOL(0, "create-reflog", &reflog, N_("create the branch's reflog")),
792 1030 OPT_BOOL(0, "edit-description", &edit_description,
793 1031 N_("edit the description for the branch")),
1032 + OPT_CALLBACK_F(0, "delete-merged", &delete_merged, N_("pattern"),
1033 + N_("delete merged branches whose upstream matches <pattern> (repeatable)"),
1034 + PARSE_OPT_NONEG, parse_opt_strvec),
1035 + OPT_BOOL(0, "dry-run", &dry_run,
1036 + N_("with --delete-merged, only print which branches would be deleted")),
794 1037 OPT__FORCE(&force, N_("force creation, move/rename, deletion"), PARSE_OPT_NOCOMPLETE),
795 1038 OPT_MERGED(&filter, N_("print only branches that are merged")),
796 1039 OPT_NO_MERGED(&filter, N_("print only branches that are not merged")),
1040 + OPT_CALLBACK_F(0, "forked", &filter, N_("branch"),
1041 + N_("print only branches whose upstream matches <branch> (repeatable)"),
1042 + PARSE_OPT_NONEG, parse_opt_forked),
797 1043 OPT_COLUMN(0, "column", &colopts, N_("list branches in columns")),
798 1044 OPT_REF_SORT(&sorting_options),
799 1045 OPT_CALLBACK(0, "points-at", &filter.points_at, N_("object"),
@@ -835,19 +1081,24 @@ int cmd_branch(int argc,
835 1081 0);
836 1082
837 1083 if (!delete && !rename && !copy && !edit_description && !new_upstream &&
838 - !show_current && !unset_upstream && argc == 0)
1084 + !show_current && !unset_upstream && !delete_merged.nr &&
1085 + argc == 0)
839 1086 list = 1;
840 1087
841 1088 if (filter.with_commit || filter.no_commit ||
842 - filter.reachable_from || filter.unreachable_from || filter.points_at.nr)
1089 + filter.reachable_from || filter.unreachable_from ||
1090 + filter.points_at.nr || filter.forked.nr)
843 1091 list = 1;
844 1092
845 1093 noncreate_actions = !!delete + !!rename + !!copy + !!new_upstream +
846 1094 !!show_current + !!list + !!edit_description +
847 - !!unset_upstream;
1095 + !!unset_upstream + !!delete_merged.nr;
848 1096 if (noncreate_actions > 1)
849 1097 usage_with_options(builtin_branch_usage, options);
850 1098
1099 + if (dry_run && !delete_merged.nr)
1100 + die(_("--dry-run requires --delete-merged"));
1101 +
851 1102 if (recurse_submodules_explicit) {
852 1103 if (!submodule_propagate_branches)
853 1104 die(_("branch with --recurse-submodules can only be used if submodule.propagateBranches is enabled"));
@@ -882,7 +1133,14 @@ int cmd_branch(int argc,
882 1133 if (delete) {
883 1134 if (!argc)
884 1135 die(_("branch name required"));
885 - ret = delete_branches(argc, argv, delete > 1, filter.kind, quiet);
1136 + ret = delete_branches(argc, argv, filter.kind,
1137 + (delete > 1 ? DELETE_BRANCH_FORCE : 0) |
1138 + (quiet ? DELETE_BRANCH_QUIET : 0));
1139 + goto out;
1140 + } else if (delete_merged.nr) {
1141 + ret = delete_merged_branches(&delete_merged, argv,
1142 + (quiet ? DELETE_BRANCH_QUIET : 0) |
1143 + (dry_run ? DELETE_BRANCH_DRY_RUN : 0));
886 1144 goto out;
887 1145 } else if (show_current) {
888 1146 print_current_branch_name();
@@ -1055,6 +1313,7 @@ int cmd_branch(int argc,
1055 1313 ret = 0;
1056 1314
1057 1315 out:
1316 + strvec_clear(&delete_merged);
1058 1317 string_list_clear(&sorting_options, 0);
1059 1318 return ret;
1060 1319 }
modified builtin/bundle.c
@@ -68,32 +68,25 @@ static int parse_options_cmd_bundle(int argc,
68 68 }
69 69
70 70 static int cmd_bundle_create(int argc, const char **argv, const char *prefix,
71 - struct repository *repo UNUSED) {
72 - struct strvec pack_opts = STRVEC_INIT;
71 + struct repository *repo UNUSED)
72 + {
73 + int progress = isatty(STDERR_FILENO);
73 74 int version = -1;
74 - int ret;
75 75 struct option options[] = {
76 - OPT_PASSTHRU_ARGV('q', "quiet", &pack_opts, NULL,
77 - N_("do not show progress meter"),
78 - PARSE_OPT_NOARG),
79 - OPT_PASSTHRU_ARGV(0, "progress", &pack_opts, NULL,
80 - N_("show progress meter"),
81 - PARSE_OPT_NOARG),
82 - OPT_PASSTHRU_ARGV(0, "all-progress", &pack_opts, NULL,
83 - N_("historical; same as --progress"),
84 - PARSE_OPT_NOARG | PARSE_OPT_HIDDEN),
85 - OPT_PASSTHRU_ARGV(0, "all-progress-implied", &pack_opts, NULL,
86 - N_("historical; does nothing"),
87 - PARSE_OPT_NOARG | PARSE_OPT_HIDDEN),
76 + OPT_NEGBIT('q', "quiet", &progress,
77 + N_("do not show progress meter"), 1),
78 + OPT_BIT(0, "progress", &progress,
79 + N_("show progress meter"), 1),
80 + OPT_BIT_F(0, "all-progress", &progress,
81 + N_("historical; same as --progress"), 1,
82 + PARSE_OPT_HIDDEN),
83 + OPT_NOOP_NOARG(0, "all-progress-implied"),
88 84 OPT_INTEGER(0, "version", &version,
89 85 N_("specify bundle format version")),
90 86 OPT_END()
91 87 };
92 88 char *bundle_file;
93 -
94 - if (isatty(STDERR_FILENO))
95 - strvec_push(&pack_opts, "--progress");
96 - strvec_push(&pack_opts, "--all-progress-implied");
89 + int ret;
97 90
98 91 argc = parse_options_cmd_bundle(argc, argv, prefix,
99 92 builtin_bundle_create_usage, options, &bundle_file);
@@ -101,8 +94,7 @@ static int cmd_bundle_create(int argc, const char **argv, const char *prefix,
101 94
102 95 if (!startup_info->have_repository)
103 96 die(_("Need a repository to create a bundle."));
104 - ret = !!create_bundle(the_repository, bundle_file, argc, argv, &pack_opts, version);
105 - strvec_clear(&pack_opts);
97 + ret = !!create_bundle(the_repository, bundle_file, argc, argv, version, progress);
106 98 free(bundle_file);
107 99 return ret;
108 100 }
modified builtin/cat-file.c
@@ -31,6 +31,7 @@
31 31 #include "alias.h"
32 32 #include "remote.h"
33 33 #include "transport.h"
34 + #include "fetch-object-info.h"
34 35
35 36 /*
36 37 * Maximum length for a remote URL. While no universal standard exists,
@@ -681,9 +682,8 @@ out:
681 682
682 683 static int get_remote_info(int argc,
683 684 const char **argv,
684 - struct object_info **remote_object_info,
685 - struct oid_array *object_info_oids,
686 - struct string_list *object_info_options)
685 + struct fetch_object_info_results *results,
686 + struct oid_array *object_info_oids)
687 687 {
688 688 int retval = 0;
689 689 struct remote *remote = NULL;
@@ -724,12 +724,8 @@ static int get_remote_info(int argc,
724 724 goto cleanup;
725 725 }
726 726
727 - CALLOC_ARRAY(*remote_object_info, object_info_oids->nr);
728 - gtransport->smart_options->object_info_oids = object_info_oids;
729 -
730 - gtransport->smart_options->object_info_options = object_info_options;
731 - gtransport->smart_options->object_info_data = *remote_object_info;
732 - retval = transport_fetch_object_info(gtransport);
727 + retval = transport_fetch_object_info(gtransport, object_info_oids,
728 + results);
733 729 cleanup:
734 730 transport_disconnect(gtransport);
735 731 return retval;
@@ -789,8 +785,11 @@ static void parse_cmd_contents(struct batch_options *opt,
789 785 struct strbuf *output,
790 786 struct expand_data *data)
791 787 {
788 + enum object_type *saved_typep = data->info.typep;
789 + data->info.typep = &data->type;
792 790 opt->batch_mode = BATCH_MODE_CONTENTS;
793 791 batch_one_object(line, output, opt, data);
792 + data->info.typep = saved_typep;
794 793 }
795 794
796 795 static void parse_cmd_info(struct batch_options *opt,
@@ -816,21 +815,6 @@ static void parse_cmd_mailmap(struct batch_options *opt UNUSED,
816 815 load_mailmap();
817 816 }
818 817
819 - struct protocol_placeholder_entry {
820 - const char *option;
821 - const char *atom;
822 - };
823 -
824 - static const struct protocol_placeholder_entry remote_atom_map[] = {
825 - {"size", "objectsize"},
826 - {"type", "objecttype"},
827 - /*
828 - * Add new protocol options here. Even if the server doesn't support
829 - * them the allow_list will drop them if the server doesn't advertise
830 - * them.
831 - */
832 - };
833 -
834 818 static void parse_cmd_remote_object_info(struct batch_options *opt,
835 819 const char *line, struct strbuf *output,
836 820 struct expand_data *data)
@@ -838,18 +822,11 @@ static void parse_cmd_remote_object_info(struct batch_options *opt,
838 822 int count;
839 823 const char **argv;
840 824 char *line_to_split;
841 - struct object_info *remote_object_info = NULL;
825 + struct fetch_object_info_results results = FETCH_OBJECT_INFO_RESULTS_INIT;
842 826 struct oid_array object_info_oids = OID_ARRAY_INIT;
843 - struct string_list object_info_options = STRING_LIST_INIT_NODUP;
844 - const char *saved_format = opt->format;
845 827
846 828 if (strlen(line) >= MAX_REMOTE_OBJ_INFO_LINE)
847 829 die(_("remote-object-info command too long"));
848 - /*
849 - * TODO: Use the default format once %(objecttype) is supported.
850 - */
851 - if (!opt->format)
852 - opt->format = "%(objectname) %(objectsize)";
853 830
854 831 line_to_split = xstrdup(line);
855 832 count = split_cmdline(line_to_split, &argv);
@@ -861,26 +838,25 @@ static void parse_cmd_remote_object_info(struct batch_options *opt,
861 838 MAX_ALLOWED_OBJ_LIMIT);
862 839
863 840 if (data->info.sizep)
864 - string_list_append(&object_info_options, "size");
841 + results.wants_size = 1;
865 842 if (data->info.typep)
866 - string_list_append(&object_info_options, "type");
843 + results.wants_type = 1;
867 844
868 - if (get_remote_info(count, argv, &remote_object_info,
869 - &object_info_oids, &object_info_options))
845 + if (get_remote_info(count, argv, &results, &object_info_oids))
870 846 die(_("failed to get object info from the remote: %s"), argv[0]);
871 847
872 848 string_list_clear(&data->remote_allowed_atoms, 0);
873 849 string_list_append(&data->remote_allowed_atoms, "objectname");
874 - for (size_t i = 0; i < ARRAY_SIZE(remote_atom_map); i++)
875 - if (unsorted_string_list_has_string(&object_info_options, remote_atom_map[i].option))
876 - string_list_append(&data->remote_allowed_atoms,
877 - remote_atom_map[i].atom);
850 + if (results.sizes)
851 + string_list_append(&data->remote_allowed_atoms, "objectsize");
852 + if (results.types)
853 + string_list_append(&data->remote_allowed_atoms, "objecttype");
878 854
879 855 data->skip_object_info = 1;
880 - for (size_t i = 0; i < object_info_oids.nr; i++) {
856 + for (size_t i = 0; i < results.nr; i++) {
881 857 data->oid = object_info_oids.oid[i];
882 858
883 - if (remote_object_info[i].unrecognized) {
859 + if (results.unrecognized[i]) {
884 860 report_object_status(opt, oid_to_hex(&data->oid),
885 861 &data->oid, "missing");
886 862 continue;
@@ -890,13 +866,11 @@ static void parse_cmd_remote_object_info(struct batch_options *opt,
890 866 * When reaching here, it means remote-object-info can retrieve
891 867 * information from server without downloading them.
892 868 */
893 - if (remote_object_info[i].sizep) {
894 - data->size = *remote_object_info[i].sizep;
895 - }
869 + if (results.sizes)
870 + data->size = results.sizes[i];
896 871
897 - if (remote_object_info[i].typep) {
898 - data->type = *remote_object_info[i].typep;
899 - }
872 + if (results.types)
873 + data->type = results.types[i];
900 874
901 875 opt->batch_mode = BATCH_MODE_INFO;
902 876 data->is_remote = 1;
@@ -904,14 +878,10 @@ static void parse_cmd_remote_object_info(struct batch_options *opt,
904 878 data->is_remote = 0;
905 879 }
906 880 data->skip_object_info = 0;
907 - opt->format = saved_format;
908 881
909 - for (size_t i = 0; i < object_info_oids.nr; i++)
910 - free_object_info_contents(&remote_object_info[i]);
911 - string_list_clear(&object_info_options, 0);
882 + free_fetch_object_info_results(&results);
912 883 free(line_to_split);
913 884 free(argv);
914 - free(remote_object_info);
915 885 oid_array_clear(&object_info_oids);
916 886 }
917 887
modified builtin/checkout.c
@@ -921,7 +921,7 @@ static int merge_working_tree(const struct checkout_opts *opts,
921 921 }
922 922 }
923 923
924 - if (!cache_tree_fully_valid(the_repository->index->cache_tree))
924 + if (!cache_tree_fully_valid(the_repository->index))
925 925 cache_tree_update(the_repository->index, WRITE_TREE_SILENT | WRITE_TREE_REPAIR);
926 926
927 927 if (write_locked_index(the_repository->index, &lock_file, COMMIT_LOCK))
@@ -1166,6 +1166,7 @@ static int switch_branches(const struct checkout_opts *opts,
1166 1166 int flag, writeout_error = 0;
1167 1167 int do_merge = 1;
1168 1168 int created_autostash = 0;
1169 + enum stash_apply_result autostash_res = STASH_APPLY_CLEAN;
1169 1170 struct strbuf old_commit_shortname = STRBUF_INIT;
1170 1171 struct strbuf autostash_msg = STRBUF_INIT;
1171 1172 const char *stash_label_base = NULL;
@@ -1237,12 +1238,12 @@ static int switch_branches(const struct checkout_opts *opts,
1237 1238 git_config_push_parameter(cfg.buf);
1238 1239 strbuf_release(&cfg);
1239 1240 }
1240 - apply_autostash_ref(the_repository,
1241 - "CHECKOUT_AUTOSTASH_HEAD",
1242 - new_branch_info->name,
1243 - "local",
1244 - stash_label_base,
1245 - autostash_msg.buf);
1241 + autostash_res = apply_autostash_ref(the_repository,
1242 + "CHECKOUT_AUTOSTASH_HEAD",
1243 + new_branch_info->name,
1244 + "local",
1245 + stash_label_base,
1246 + autostash_msg.buf);
1246 1247 }
1247 1248 if (ret) {
1248 1249 branch_info_release(&old_branch_info);
@@ -1255,6 +1256,8 @@ static int switch_branches(const struct checkout_opts *opts,
1255 1256 if (!opts->quiet && !old_branch_info.path && old_branch_info.commit && new_branch_info->commit != old_branch_info.commit)
1256 1257 orphaned_commit_warning(old_branch_info.commit, new_branch_info->commit);
1257 1258
1259 + if (autostash_res == STASH_APPLY_CONFLICT && !opts->quiet)
1260 + fputc('\n', stderr);
1258 1261 update_refs_for_switch(opts, &old_branch_info, new_branch_info);
1259 1262
1260 1263 if (created_autostash) {
@@ -1343,13 +1346,51 @@ enum checkout_command {
1343 1346 CHECKOUT_RESTORE = 3,
1344 1347 };
1345 1348
1349 + static void advise_disambiguating_remotes(enum checkout_command which_command,
1350 + const char *branch,
1351 + const struct string_list *matched_remote_names)
1352 + {
1353 + const char *cmdname;
1354 + struct string_list_item *item;
1355 +
1356 + switch (which_command) {
1357 + case CHECKOUT_CHECKOUT:
1358 + cmdname = "checkout";
1359 + break;
1360 + case CHECKOUT_SWITCH:
1361 + cmdname = "switch";
1362 + break;
1363 + default:
1364 + BUG("command <%d> should not reach advise_disambiguating_remotes",
1365 + which_command);
1366 + break;
1367 + }
1368 +
1369 + advise(_("Branch name '%s' appears in multiple remotes:"), branch);
1370 + for_each_string_list_item(item, matched_remote_names) {
1371 + advise(_(" %s"), item->string);
1372 + }
1373 + advise(_("If you meant to check out a remote tracking branch on <remote>,\n"
1374 + "you can do so by fully qualifying the name with the --track option:\n"
1375 + "\n"
1376 + " git %s --track <remote>/%s\n"
1377 + "\n"
1378 + "If you'd like to always have checkouts of an ambiguous name prefer\n"
1379 + "one remote, e.g. the 'origin' remote, consider setting\n"
1380 + "checkout.defaultRemote=origin in your config."),
1381 + cmdname, branch);
1382 + }
1383 +
1346 1384 static char *parse_remote_branch(const char *arg,
1347 1385 struct object_id *rev,
1348 1386 int could_be_checkout_paths,
1349 1387 enum checkout_command which_command)
1350 1388 {
1351 1389 int num_matches = 0;
1352 - char *remote = unique_tracking_name(arg, rev, &num_matches);
1390 + struct string_list matched_remote_names = STRING_LIST_INIT_DUP;
1391 +
1392 + char *remote = unique_tracking_name(arg, rev, &num_matches,
1393 + &matched_remote_names);
1353 1394
1354 1395 if (remote && could_be_checkout_paths) {
1355 1396 die(_("'%s' could be both a local file and a tracking branch.\n"
@@ -1358,37 +1399,15 @@ static char *parse_remote_branch(const char *arg,
1358 1399 }
1359 1400
1360 1401 if (!remote && num_matches > 1) {
1361 - if (advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME)) {
1362 - const char *cmdname;
1363 -
1364 - switch (which_command) {
1365 - case CHECKOUT_CHECKOUT:
1366 - cmdname = "checkout";
1367 - break;
1368 - case CHECKOUT_SWITCH:
1369 - cmdname = "switch";
1370 - break;
1371 - default:
1372 - BUG("command <%d> should not reach parse_remote_branch",
1373 - which_command);
1374 - break;
1375 - }
1376 -
1377 - advise(_("If you meant to check out a remote tracking branch on, e.g. 'origin',\n"
1378 - "you can do so by fully qualifying the name with the --track option:\n"
1379 - "\n"
1380 - " git %s --track origin/<name>\n"
1381 - "\n"
1382 - "If you'd like to always have checkouts of an ambiguous <name> prefer\n"
1383 - "one remote, e.g. the 'origin' remote, consider setting\n"
1384 - "checkout.defaultRemote=origin in your config."),
1385 - cmdname);
1386 - }
1387 -
1388 - die(_("'%s' matched multiple (%d) remote tracking branches"),
1389 - arg, num_matches);
1402 + if (advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME))
1403 + advise_disambiguating_remotes(which_command, arg,
1404 + &matched_remote_names);
1405 + die(_("'%s' matched multiple (%d) remote tracking branches"),
1406 + arg, num_matches);
1390 1407 }
1391 1408
1409 + string_list_clear(&matched_remote_names, 0);
1410 +
1392 1411 return remote;
1393 1412 }
1394 1413
modified builtin/commit.c
@@ -484,7 +484,7 @@ static const char *prepare_index(const char **argv, const char *prefix,
484 484 LOCK_DIE_ON_ERROR);
485 485 refresh_cache_or_die(refresh_flags);
486 486 if (the_repository->index->cache_changed
487 - || !cache_tree_fully_valid(the_repository->index->cache_tree))
487 + || !cache_tree_fully_valid(the_repository->index))
488 488 cache_tree_update(the_repository->index, WRITE_TREE_SILENT);
489 489 if (write_locked_index(the_repository->index, &index_lock,
490 490 COMMIT_LOCK | SKIP_IF_UNCHANGED))
modified builtin/config.c
@@ -1313,7 +1313,10 @@ static int show_editor(struct config_location_options *opts)
1313 1313 else if (errno != EEXIST)
1314 1314 die_errno(_("cannot create configuration file %s"), config_file);
1315 1315 }
1316 - launch_editor(config_file, NULL, NULL);
1316 + if (launch_editor(config_file, NULL, NULL)) {
1317 + free(config_file);
1318 + return -1;
1319 + }
1317 1320 free(config_file);
1318 1321
1319 1322 return 0;
modified builtin/fast-import.c
@@ -30,6 +30,7 @@
30 30 #include "khash.h"
31 31 #include "date.h"
32 32 #include "gpg-interface.h"
33 + #include "parse-options.h"
33 34
34 35 #define PACK_ID_BITS 16
35 36 #define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
@@ -182,12 +183,8 @@ static unsigned long branch_count;
182 183 static unsigned long branch_load_count;
183 184 static int failure;
184 185 static FILE *pack_edges;
185 - static unsigned int show_stats = 1;
186 - static unsigned int quiet;
187 - static int global_argc;
188 - static const char **global_argv;
189 - static const char *global_prefix;
190 -
186 + static int show_stats = 1;
187 + static int quiet;
191 188 static enum sign_mode signed_tag_mode = SIGN_VERBATIM;
192 189 static enum sign_mode signed_commit_mode = SIGN_VERBATIM;
193 190 static const char *signed_commit_keyid;
@@ -261,9 +258,7 @@ static struct recent_command *rc_free;
261 258 static unsigned int cmd_save = 100;
262 259 static uintmax_t next_mark;
263 260 static struct strbuf new_data = STRBUF_INIT;
264 - static int seen_data_command;
265 261 static int require_explicit_termination;
266 - static int allow_unsafe_features;
267 262
268 263 /* Signal handling */
269 264 static volatile sig_atomic_t checkpoint_requested;
@@ -276,10 +271,33 @@ static kh_oid_map_t *sub_oid_map;
276 271 /* Where to write output of cat-blob commands */
277 272 static int cat_blob_fd = STDOUT_FILENO;
278 273
279 - static void parse_argv(void);
280 - static void parse_get_mark(const char *p);
281 - static void parse_cat_blob(const char *p);
282 - static void parse_ls(const char *p, struct branch *b);
274 + /* Command state */
275 + struct fast_import_state {
276 + int argc;
277 + const char **argv;
278 + const char *prefix;
279 + int seen_data_command;
280 + int allow_unsafe_features;
281 + struct option *option;
282 + };
283 +
284 + static void fast_import_state_init(struct fast_import_state *state,
285 + int argc, const char **argv,
286 + const char *prefix, struct option *option)
287 + {
288 + memset(state, 0, sizeof(*state));
289 + state->argc = argc;
290 + state->argv = argv;
291 + state->prefix = prefix;
292 + state->option = option;
293 + }
294 +
295 + static void parse_argv(struct fast_import_state *state);
296 + static void parse_get_mark(struct fast_import_state *state, const char *p);
297 + static void parse_cat_blob(struct fast_import_state *state, const char *p);
298 + static void parse_ls(struct fast_import_state *state,
299 + const char *p,
300 + struct branch *b);
283 301
284 302 static void for_each_mark(struct mark_set *m, uintmax_t base, each_mark_fn_t callback, void *p)
285 303 {
@@ -962,7 +980,7 @@ static int store_object(
962 980 struct object_entry *e;
963 981 unsigned char hdr[96];
964 982 struct object_id oid;
965 - unsigned long hdrlen, deltalen;
983 + unsigned long hdrlen, deltalen = 0;
966 984 struct git_hash_ctx c;
967 985 git_zstream s;
968 986 struct repo_config_values *cfg = repo_config_values(the_repository);
@@ -998,11 +1016,13 @@ static int store_object(
998 1016
999 1017 if (last && last->data.len && last->data.buf && last->depth < max_depth
1000 1018 && dat->len > the_hash_algo->rawsz) {
1019 + size_t deltalen_st;
1001 1020
1002 1021 delta_count_attempts_by_type[type]++;
1003 1022 delta = diff_delta(last->data.buf, last->data.len,
1004 1023 dat->buf, dat->len,
1005 - &deltalen, dat->len - the_hash_algo->rawsz);
1024 + &deltalen_st, dat->len - the_hash_algo->rawsz);
1025 + deltalen = cast_size_t_to_ulong(deltalen_st);
1006 1026 } else
1007 1027 delta = NULL;
1008 1028
@@ -1845,7 +1865,7 @@ done:
1845 1865 }
1846 1866
1847 1867
1848 - static int read_next_command(void)
1868 + static int read_next_command(struct fast_import_state *state)
1849 1869 {
1850 1870 static int stdin_eof = 0;
1851 1871
@@ -1864,10 +1884,10 @@ static int read_next_command(void)
1864 1884 if (stdin_eof)
1865 1885 return EOF;
1866 1886
1867 - if (!seen_data_command
1887 + if (!state->seen_data_command
1868 1888 && !starts_with(command_buf.buf, "feature ")
1869 1889 && !starts_with(command_buf.buf, "option ")) {
1870 - parse_argv();
1890 + parse_argv(state);
1871 1891 }
1872 1892
1873 1893 rc = rc_free;
@@ -1899,22 +1919,22 @@ static void skip_optional_lf(void)
1899 1919 ungetc(term_char, stdin);
1900 1920 }
1901 1921
1902 - static void parse_mark(void)
1922 + static void parse_mark(struct fast_import_state *state)
1903 1923 {
1904 1924 const char *v;
1905 1925 if (skip_prefix(command_buf.buf, "mark :", &v)) {
1906 1926 next_mark = strtoumax(v, NULL, 10);
1907 - read_next_command();
1927 + read_next_command(state);
1908 1928 }
1909 1929 else
1910 1930 next_mark = 0;
1911 1931 }
1912 1932
1913 - static void parse_original_identifier(void)
1933 + static void parse_original_identifier(struct fast_import_state *state)
1914 1934 {
1915 1935 const char *v;
1916 1936 if (skip_prefix(command_buf.buf, "original-oid ", &v))
1917 - read_next_command();
1937 + read_next_command(state);
1918 1938 }
1919 1939
1920 1940 static int parse_data(struct strbuf *sb, uintmax_t limit, uintmax_t *len_res)
@@ -2068,11 +2088,11 @@ static void parse_and_store_blob(
2068 2088 }
2069 2089 }
2070 2090
2071 - static void parse_new_blob(void)
2091 + static void parse_new_blob(struct fast_import_state *state)
2072 2092 {
2073 - read_next_command();
2074 - parse_mark();
2075 - parse_original_identifier();
2093 + read_next_command(state);
2094 + parse_mark(state);
2095 + parse_original_identifier(state);
2076 2096 parse_and_store_blob(&last_blob, NULL, next_mark);
2077 2097 }
2078 2098
@@ -2368,7 +2388,9 @@ static void parse_path_space(struct strbuf *sb, const char *p,
2368 2388 (*endp)++;
2369 2389 }
2370 2390
2371 - static void file_change_m(const char *p, struct branch *b)
2391 + static void file_change_m(struct fast_import_state *state,
2392 + const char *p,
2393 + struct branch *b)
2372 2394 {
2373 2395 static struct strbuf path = STRBUF_INIT;
2374 2396 struct object_entry *oe;
@@ -2435,10 +2457,10 @@ static void file_change_m(const char *p, struct branch *b)
2435 2457 if (S_ISDIR(mode))
2436 2458 die(_("directories cannot be specified 'inline': %s"),
2437 2459 command_buf.buf);
2438 - while (read_next_command() != EOF) {
2460 + while (read_next_command(state) != EOF) {
2439 2461 const char *v;
2440 2462 if (skip_prefix(command_buf.buf, "cat-blob ", &v))
2441 - parse_cat_blob(v);
2463 + parse_cat_blob(state, v);
2442 2464 else {
2443 2465 parse_and_store_blob(&last_blob, &oid, 0);
2444 2466 break;
@@ -2512,7 +2534,10 @@ static void file_change_cr(const char *p, struct branch *b, int rename)
2512 2534 leaf.tree);
2513 2535 }
2514 2536
2515 - static void note_change_n(const char *p, struct branch *b, unsigned char *old_fanout)
2537 + static void note_change_n(struct fast_import_state *state,
2538 + const char *p,
2539 + struct branch *b,
2540 + unsigned char *old_fanout)
2516 2541 {
2517 2542 struct object_entry *oe;
2518 2543 struct branch *s;
@@ -2577,7 +2602,7 @@ static void note_change_n(const char *p, struct branch *b, unsigned char *old_fa
2577 2602 die(_("invalid ref name or SHA1 expression: %s"), p);
2578 2603
2579 2604 if (inline_data) {
2580 - read_next_command();
2605 + read_next_command(state);
2581 2606 parse_and_store_blob(&last_blob, &oid, 0);
2582 2607 } else if (oe) {
2583 2608 if (oe->type != OBJ_BLOB)
@@ -2644,7 +2669,9 @@ static void parse_from_existing(struct branch *b)
2644 2669 }
2645 2670 }
2646 2671
2647 - static int parse_objectish(struct branch *b, const char *objectish)
2672 + static int parse_objectish(struct fast_import_state *state,
2673 + struct branch *b,
2674 + const char *objectish)
2648 2675 {
2649 2676 struct branch *s;
2650 2677 struct object_id oid;
@@ -2687,31 +2714,34 @@ static int parse_objectish(struct branch *b, const char *objectish)
2687 2714 b->branch_tree.tree = NULL;
2688 2715 }
2689 2716
2690 - read_next_command();
2717 + read_next_command(state);
2691 2718 return 1;
2692 2719 }
2693 2720
2694 - static int parse_from(struct branch *b)
2721 + static int parse_from(struct fast_import_state *state, struct branch *b)
2695 2722 {
2696 2723 const char *from;
2697 2724
2698 2725 if (!skip_prefix(command_buf.buf, "from ", &from))
2699 2726 return 0;
2700 2727
2701 - return parse_objectish(b, from);
2728 + return parse_objectish(state, b, from);
2702 2729 }
2703 2730
2704 - static int parse_objectish_with_prefix(struct branch *b, const char *prefix)
2731 + static int parse_objectish_with_prefix(struct fast_import_state *state,
2732 + struct branch *b,
2733 + const char *prefix)
2705 2734 {
2706 2735 const char *base;
2707 2736
2708 2737 if (!skip_prefix(command_buf.buf, prefix, &base))
2709 2738 return 0;
2710 2739
2711 - return parse_objectish(b, base);
2740 + return parse_objectish(state, b, base);
2712 2741 }
2713 2742
2714 - static struct hash_list *parse_merge(unsigned int *count)
2743 + static struct hash_list *parse_merge(struct fast_import_state *state,
2744 + unsigned int *count)
2715 2745 {
2716 2746 struct hash_list *list = NULL, **tail = &list, *n;
2717 2747 const char *from;
@@ -2745,7 +2775,7 @@ static struct hash_list *parse_merge(unsigned int *count)
2745 2775 tail = &n->next;
2746 2776
2747 2777 (*count)++;
2748 - read_next_command();
2778 + read_next_command(state);
2749 2779 }
2750 2780 return list;
2751 2781 }
@@ -2756,7 +2786,9 @@ struct signature_data {
2756 2786 struct strbuf data; /* The actual signature data */
2757 2787 };
2758 2788
2759 - static void parse_one_signature(struct signature_data *sig, const char *v)
2789 + static void parse_one_signature(struct fast_import_state *state,
2790 + struct signature_data *sig,
2791 + const char *v)
2760 2792 {
2761 2793 char *args = xstrdup(v); /* Will be freed when sig->hash_algo is freed */
2762 2794 char *space = strchr(args, ' ');
@@ -2781,15 +2813,15 @@ static void parse_one_signature(struct signature_data *sig, const char *v)
2781 2813 warning(_("'unknown' signature format in gpgsig"));
2782 2814
2783 2815 /* Read signature data */
2784 - read_next_command();
2816 + read_next_command(state);
2785 2817 parse_data(&sig->data, 0, NULL);
2786 2818 }
2787 2819
2788 - static void discard_one_signature(void)
2820 + static void discard_one_signature(struct fast_import_state *state)
2789 2821 {
2790 2822 struct strbuf data = STRBUF_INIT;
2791 2823
2792 - read_next_command();
2824 + read_next_command(state);
2793 2825 parse_data(&data, 0, NULL);
2794 2826 strbuf_release(&data);
2795 2827 }
@@ -2827,13 +2859,14 @@ static void store_signature(struct signature_data *stored_sig,
2827 2859 }
2828 2860 }
2829 2861
2830 - static void import_one_signature(struct signature_data *sig_sha1,
2862 + static void import_one_signature(struct fast_import_state *state,
2863 + struct signature_data *sig_sha1,
2831 2864 struct signature_data *sig_sha256,
2832 2865 const char *v)
2833 2866 {
2834 2867 struct signature_data sig = { NULL, NULL, STRBUF_INIT };
2835 2868
2836 - parse_one_signature(&sig, v);
2869 + parse_one_signature(state, &sig, v);
2837 2870
2838 2871 if (!strcmp(sig.hash_algo, "sha1"))
2839 2872 store_signature(sig_sha1, &sig, "SHA-1");
@@ -2947,7 +2980,7 @@ static void handle_signature_if_invalid(struct strbuf *new_data,
2947 2980 strbuf_release(&tmp_buf);
2948 2981 }
2949 2982
2950 - static void parse_new_commit(const char *arg)
2983 + static void parse_new_commit(struct fast_import_state *state, const char *arg)
2951 2984 {
2952 2985 static struct strbuf msg = STRBUF_INIT;
2953 2986 struct signature_data sig_sha1 = { NULL, NULL, STRBUF_INIT };
@@ -2965,16 +2998,16 @@ static void parse_new_commit(const char *arg)
2965 2998 if (!b)
2966 2999 b = new_branch(arg);
2967 3000
2968 - read_next_command();
2969 - parse_mark();
2970 - parse_original_identifier();
3001 + read_next_command(state);
3002 + parse_mark(state);
3003 + parse_original_identifier(state);
2971 3004 if (skip_prefix(command_buf.buf, "author ", &v)) {
2972 3005 author = parse_ident(v);
2973 - read_next_command();
3006 + read_next_command(state);
2974 3007 }
2975 3008 if (skip_prefix(command_buf.buf, "committer ", &v)) {
2976 3009 committer = parse_ident(v);
2977 - read_next_command();
3010 + read_next_command(state);
2978 3011 }
2979 3012 if (!committer)
2980 3013 die(_("expected committer but didn't get one"));
@@ -2990,7 +3023,7 @@ static void parse_new_commit(const char *arg)
2990 3023 warning(_("stripping a commit signature"));
2991 3024 /* fallthru */
2992 3025 case SIGN_STRIP:
2993 - discard_one_signature();
3026 + discard_one_signature(state);
2994 3027 break;
2995 3028
2996 3029 /* Second, modes that parse the signature */
@@ -3001,24 +3034,24 @@ static void parse_new_commit(const char *arg)
3001 3034 case SIGN_STRIP_IF_INVALID:
3002 3035 case SIGN_SIGN_IF_INVALID:
3003 3036 case SIGN_ABORT_IF_INVALID:
3004 - import_one_signature(&sig_sha1, &sig_sha256, v);
3037 + import_one_signature(state, &sig_sha1, &sig_sha256, v);
3005 3038 break;
3006 3039
3007 3040 /* Third, BUG */
3008 3041 default:
3009 3042 BUG("invalid signed_commit_mode value %d", signed_commit_mode);
3010 3043 }
3011 - read_next_command();
3044 + read_next_command(state);
3012 3045 }
3013 3046
3014 3047 if (skip_prefix(command_buf.buf, "encoding ", &v)) {
3015 3048 encoding = xstrdup(v);
3016 - read_next_command();
3049 + read_next_command(state);
3017 3050 }
3018 3051 parse_data(&msg, 0, NULL);
3019 - read_next_command();
3020 - parse_from(b);
3021 - merge_list = parse_merge(&merge_count);
3052 + read_next_command(state);
3053 + parse_from(state, b);
3054 + merge_list = parse_merge(state, &merge_count);
3022 3055
3023 3056 /* ensure the branch is active/loaded */
3024 3057 if (!b->branch_tree.tree || !max_active_branches) {
@@ -3031,7 +3064,7 @@ static void parse_new_commit(const char *arg)
3031 3064 /* file_change* */
3032 3065 while (command_buf.len > 0) {
3033 3066 if (skip_prefix(command_buf.buf, "M ", &v))
3034 - file_change_m(v, b);
3067 + file_change_m(state, v, b);
3035 3068 else if (skip_prefix(command_buf.buf, "D ", &v))
3036 3069 file_change_d(v, b);
3037 3070 else if (skip_prefix(command_buf.buf, "R ", &v))
@@ -3039,18 +3072,18 @@ static void parse_new_commit(const char *arg)
3039 3072 else if (skip_prefix(command_buf.buf, "C ", &v))
3040 3073 file_change_cr(v, b, 0);
3041 3074 else if (skip_prefix(command_buf.buf, "N ", &v))
3042 - note_change_n(v, b, &prev_fanout);
3075 + note_change_n(state, v, b, &prev_fanout);
3043 3076 else if (!strcmp("deleteall", command_buf.buf))
3044 3077 file_change_deleteall(b);
3045 3078 else if (skip_prefix(command_buf.buf, "ls ", &v))
3046 - parse_ls(v, b);
3079 + parse_ls(state, v, b);
3047 3080 else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
3048 - parse_cat_blob(v);
3081 + parse_cat_blob(state, v);
3049 3082 else {
3050 3083 unread_command_buf = 1;
3051 3084 break;
3052 3085 }
3053 - if (read_next_command() == EOF)
3086 + if (read_next_command(state) == EOF)
3054 3087 break;
3055 3088 }
3056 3089
@@ -3188,7 +3221,7 @@ static void handle_tag_signature(struct strbuf *buf, struct strbuf *msg, const c
3188 3221 }
3189 3222 }
3190 3223
3191 - static void parse_new_tag(const char *arg)
3224 + static void parse_new_tag(struct fast_import_state *state, const char *arg)
3192 3225 {
3193 3226 static struct strbuf msg = STRBUF_INIT;
3194 3227 const char *from;
@@ -3207,8 +3240,8 @@ static void parse_new_tag(const char *arg)
3207 3240 else
3208 3241 first_tag = t;
3209 3242 last_tag = t;
3210 - read_next_command();
3211 - parse_mark();
3243 + read_next_command(state);
3244 + parse_mark(state);
3212 3245
3213 3246 /* from ... */
3214 3247 if (!skip_prefix(command_buf.buf, "from ", &from))
@@ -3236,15 +3269,15 @@ static void parse_new_tag(const char *arg)
3236 3269 type = oe->type;
3237 3270 } else
3238 3271 die(_("invalid ref name or SHA1 expression: %s"), from);
3239 - read_next_command();
3272 + read_next_command(state);
3240 3273
3241 3274 /* original-oid ... */
3242 - parse_original_identifier();
3275 + parse_original_identifier(state);
3243 3276
3244 3277 /* tagger ... */
3245 3278 if (skip_prefix(command_buf.buf, "tagger ", &v)) {
3246 3279 tagger = parse_ident(v);
3247 - read_next_command();
3280 + read_next_command(state);
3248 3281 } else
3249 3282 tagger = NULL;
3250 3283
@@ -3275,7 +3308,7 @@ static void parse_new_tag(const char *arg)
3275 3308 t->pack_id = pack_id;
3276 3309 }
3277 3310
3278 - static void parse_reset_branch(const char *arg)
3311 + static void parse_reset_branch(struct fast_import_state *state, const char *arg)
3279 3312 {
3280 3313 struct branch *b;
3281 3314 const char *tag_name;
@@ -3292,8 +3325,8 @@ static void parse_reset_branch(const char *arg)
3292 3325 }
3293 3326 else
3294 3327 b = new_branch(arg);
3295 - read_next_command();
3296 - parse_from(b);
3328 + read_next_command(state);
3329 + parse_from(state, b);
3297 3330 if (b->delete && skip_prefix(b->name, "refs/tags/", &tag_name)) {
3298 3331 /*
3299 3332 * Elsewhere, we call dump_branches() before dump_tags(),
@@ -3333,6 +3366,7 @@ static void cat_blob_write(const char *buf, unsigned long size)
3333 3366 static void cat_blob(struct object_entry *oe, struct object_id *oid)
3334 3367 {
3335 3368 struct strbuf line = STRBUF_INIT;
3369 + struct iovec iov[3];
3336 3370 unsigned long size;
3337 3371 enum object_type type = 0;
3338 3372 char *buf;
@@ -3366,10 +3400,21 @@ static void cat_blob(struct object_entry *oe, struct object_id *oid)
3366 3400 strbuf_reset(&line);
3367 3401 strbuf_addf(&line, "%s %s %"PRIuMAX"\n", oid_to_hex(oid),
3368 3402 type_name(type), (uintmax_t)size);
3369 - cat_blob_write(line.buf, line.len);
3403 +
3404 + /*
3405 + * Write the header, the payload and the trailing newline with a
3406 + * single writev(3p) call instead of three separate write(3p) calls.
3407 + */
3408 + iov[0].iov_base = line.buf;
3409 + iov[0].iov_len = line.len;
3410 + iov[1].iov_base = buf;
3411 + iov[1].iov_len = size;
3412 + iov[2].iov_base = (void *) "\n";
3413 + iov[2].iov_len = 1;
3414 +
3415 + if (writev_in_full(cat_blob_fd, iov, ARRAY_SIZE(iov)) < 0)
3416 + die_errno(_("write to frontend failed"));
3370 3417 strbuf_release(&line);
3371 - cat_blob_write(buf, size);
3372 - cat_blob_write("\n", 1);
3373 3418 if (oe && oe->pack_id == pack_id) {
3374 3419 last_blob.offset = oe->idx.offset;
3375 3420 strbuf_attach(&last_blob.data, buf, size, size + 1);
@@ -3378,7 +3423,8 @@ static void cat_blob(struct object_entry *oe, struct object_id *oid)
3378 3423 free(buf);
3379 3424 }
3380 3425
3381 - static void parse_get_mark(const char *p)
3426 + static void parse_get_mark(struct fast_import_state *state UNUSED,
3427 + const char *p)
3382 3428 {
3383 3429 struct object_entry *oe;
3384 3430 char output[GIT_MAX_HEXSZ + 2];
@@ -3395,7 +3441,8 @@ static void parse_get_mark(const char *p)
3395 3441 cat_blob_write(output, the_hash_algo->hexsz + 1);
3396 3442 }
3397 3443
3398 - static void parse_cat_blob(const char *p)
3444 + static void parse_cat_blob(struct fast_import_state *state UNUSED,
3445 + const char *p)
3399 3446 {
3400 3447 struct object_entry *oe;
3401 3448 struct object_id oid;
@@ -3560,7 +3607,9 @@ static void print_ls(int mode, const unsigned char *hash, const char *path)
3560 3607 cat_blob_write(line.buf, line.len);
3561 3608 }
3562 3609
3563 - static void parse_ls(const char *p, struct branch *b)
3610 + static void parse_ls(struct fast_import_state *state UNUSED,
3611 + const char *p,
3612 + struct branch *b)
3564 3613 {
3565 3614 static struct strbuf path = STRBUF_INIT;
3566 3615 struct tree_entry *root = NULL;
@@ -3607,13 +3656,13 @@ static void checkpoint(void)
3607 3656 dump_marks();
3608 3657 }
3609 3658
3610 - static void parse_checkpoint(void)
3659 + static void parse_checkpoint(struct fast_import_state *state UNUSED)
3611 3660 {
3612 3661 checkpoint_requested = 1;
3613 3662 skip_optional_lf();
3614 3663 }
3615 3664
3616 - static void parse_progress(void)
3665 + static void parse_progress(struct fast_import_state *state UNUSED)
3617 3666 {
3618 3667 fwrite(command_buf.buf, 1, command_buf.len, stdout);
3619 3668 fputc('\n', stdout);
@@ -3621,37 +3670,40 @@ static void parse_progress(void)
3621 3670 skip_optional_lf();
3622 3671 }
3623 3672
3624 - static void parse_alias(void)
3673 + static void parse_alias(struct fast_import_state *state)
3625 3674 {
3626 3675 struct object_entry *e;
3627 3676 struct branch b;
3628 3677
3629 3678 skip_optional_lf();
3630 - read_next_command();
3679 + read_next_command(state);
3631 3680
3632 3681 /* mark ... */
3633 - parse_mark();
3682 + parse_mark(state);
3634 3683 if (!next_mark)
3635 3684 die(_("expected 'mark' command, got %s"), command_buf.buf);
3636 3685
3637 3686 /* to ... */
3638 3687 memset(&b, 0, sizeof(b));
3639 - if (!parse_objectish_with_prefix(&b, "to "))
3688 + if (!parse_objectish_with_prefix(state, &b, "to "))
3640 3689 die(_("expected 'to' command, got %s"), command_buf.buf);
3641 3690 e = find_object(&b.oid);
3642 3691 assert(e);
3643 3692 insert_mark(&marks, next_mark, e);
3644 3693 }
3645 3694
3646 - static char* make_fast_import_path(const char *path)
3695 + static char* make_fast_import_path(struct fast_import_state *state,
3696 + const char *path)
3647 3697 {
3648 3698 if (!relative_marks_paths || is_absolute_path(path))
3649 - return prefix_filename(global_prefix, path);
3699 + return prefix_filename(state->prefix, path);
3650 3700 return repo_git_path(the_repository, "info/fast-import/%s", path);
3651 3701 }
3652 3702
3653 - static void option_import_marks(const char *marks,
3654 - int from_stream, int ignore_missing)
3703 + static void option_import_marks(struct fast_import_state *state,
3704 + const char *marks,
3705 + int from_stream,
3706 + int ignore_missing)
3655 3707 {
3656 3708 if (import_marks_file) {
3657 3709 if (from_stream)
@@ -3663,7 +3715,7 @@ static void option_import_marks(const char *marks,
3663 3715 }
3664 3716
3665 3717 free(import_marks_file);
3666 - import_marks_file = make_fast_import_path(marks);
3718 + import_marks_file = make_fast_import_path(state, marks);
3667 3719 import_marks_file_from_stream = from_stream;
3668 3720 import_marks_file_ignore_missing = ignore_missing;
3669 3721 }
@@ -3703,13 +3755,15 @@ static void option_active_branches(const char *branches)
3703 3755 max_active_branches = ulong_arg("--active-branches", branches);
3704 3756 }
3705 3757
3706 - static void option_export_marks(const char *marks)
3758 + static void option_export_marks(struct fast_import_state *state,
3759 + const char *marks)
3707 3760 {
3708 3761 free(export_marks_file);
3709 - export_marks_file = make_fast_import_path(marks);
3762 + export_marks_file = make_fast_import_path(state, marks);
3710 3763 }
3711 3764
3712 - static void option_cat_blob_fd(const char *fd)
3765 + static void option_cat_blob_fd(struct fast_import_state *state UNUSED,
3766 + const char *fd)
3713 3767 {
3714 3768 unsigned long n = ulong_arg("--cat-blob-fd", fd);
3715 3769 if (n > (unsigned long) INT_MAX)
@@ -3717,16 +3771,19 @@ static void option_cat_blob_fd(const char *fd)
3717 3771 cat_blob_fd = (int) n;
3718 3772 }
3719 3773
3720 - static void option_export_pack_edges(const char *edges)
3774 + static void option_export_pack_edges(struct fast_import_state *state,
3775 + const char *edges)
3721 3776 {
3722 - char *fn = prefix_filename(global_prefix, edges);
3777 + char *fn = prefix_filename(state->prefix, edges);
3723 3778 if (pack_edges)
3724 3779 fclose(pack_edges);
3725 3780 pack_edges = xfopen(fn, "a");
3726 3781 free(fn);
3727 3782 }
3728 3783
3729 - static void option_rewrite_submodules(const char *arg, struct string_list *list)
3784 + static void option_rewrite_submodules(struct fast_import_state *state,
3785 + const char *arg,
3786 + struct string_list *list)
3730 3787 {
3731 3788 struct mark_set *ms;
3732 3789 FILE *fp;
@@ -3738,7 +3795,7 @@ static void option_rewrite_submodules(const char *arg, struct string_list *list)
3738 3795 f++;
3739 3796 CALLOC_ARRAY(ms, 1);
3740 3797
3741 - f = prefix_filename(global_prefix, f);
3798 + f = prefix_filename(state->prefix, f);
3742 3799 fp = fopen(f, "r");
3743 3800 if (!fp)
3744 3801 die_errno(_("cannot read '%s'"), f);
@@ -3751,40 +3808,67 @@ static void option_rewrite_submodules(const char *arg, struct string_list *list)
3751 3808 free(s);
3752 3809 }
3753 3810
3754 - static int parse_one_option(const char *option)
3811 + static void option_max_pack_size(const char *arg)
3812 + {
3813 + unsigned long v;
3814 +
3815 + if (!git_parse_ulong(arg, &v))
3816 + die(_("--max-pack-size: argument must be a non-negative integer"));
3817 + if (v < 8192) {
3818 + warning(_("max-pack-size is now in bytes, assuming --max-pack-size=%lum"), v);
3819 + v *= 1024 * 1024;
3820 + } else if (v < 1024 * 1024) {
3821 + warning(_("minimum max-pack-size is 1 MiB"));
3822 + v = 1024 * 1024;
3823 + }
3824 + max_packsize = v;
3825 + }
3826 +
3827 + static void option_big_file_threshold(const char *arg)
3828 + {
3829 + unsigned long v;
3830 +
3831 + if (!git_parse_ulong(arg, &v))
3832 + die(_("--big-file-threshold: argument must be a non-negative integer"));
3833 + repo_settings_set_big_file_threshold(the_repository, v);
3834 + }
3835 +
3836 + static void option_signed_commits(const char *arg)
3837 + {
3838 + if (parse_sign_mode(arg, &signed_commit_mode, &signed_commit_keyid))
3839 + usagef(_("unknown --signed-commits mode '%s'"), arg);
3840 + }
3841 +
3842 + static void option_signed_tags(const char *arg)
3843 + {
3844 + if (parse_sign_mode(arg, &signed_tag_mode, &signed_tag_keyid))
3845 + usagef(_("unknown --signed-tags mode '%s'"), arg);
3846 + }
3847 +
3848 + static void option_quiet(void)
3849 + {
3850 + show_stats = 0;
3851 + quiet = 1;
3852 + }
3853 +
3854 + static int parse_one_option(struct fast_import_state *state, const char *option)
3755 3855 {
3756 3856 if (skip_prefix(option, "max-pack-size=", &option)) {
3757 - unsigned long v;
3758 - if (!git_parse_ulong(option, &v))
3759 - return 0;
3760 - if (v < 8192) {
3761 - warning(_("max-pack-size is now in bytes, assuming --max-pack-size=%lum"), v);
3762 - v *= 1024 * 1024;
3763 - } else if (v < 1024 * 1024) {
3764 - warning(_("minimum max-pack-size is 1 MiB"));
3765 - v = 1024 * 1024;
3766 - }
3767 - max_packsize = v;
3857 + option_max_pack_size(option);
3768 3858 } else if (skip_prefix(option, "big-file-threshold=", &option)) {
3769 - unsigned long v;
3770 - if (!git_parse_ulong(option, &v))
3771 - return 0;
3772 - repo_settings_set_big_file_threshold(the_repository, v);
3859 + option_big_file_threshold(option);
3773 3860 } else if (skip_prefix(option, "depth=", &option)) {
3774 3861 option_depth(option);
3775 3862 } else if (skip_prefix(option, "active-branches=", &option)) {
3776 3863 option_active_branches(option);
3777 3864 } else if (skip_prefix(option, "export-pack-edges=", &option)) {
3778 - option_export_pack_edges(option);
3865 + option_export_pack_edges(state, option);
3779 3866 } else if (skip_prefix(option, "signed-commits=", &option)) {
3780 - if (parse_sign_mode(option, &signed_commit_mode, &signed_commit_keyid))
3781 - usagef(_("unknown --signed-commits mode '%s'"), option);
3867 + option_signed_commits(option);
3782 3868 } else if (skip_prefix(option, "signed-tags=", &option)) {
3783 - if (parse_sign_mode(option, &signed_tag_mode, &signed_tag_keyid))
3784 - usagef(_("unknown --signed-tags mode '%s'"), option);
3869 + option_signed_tags(option);
3785 3870 } else if (!strcmp(option, "quiet")) {
3786 - show_stats = 0;
3787 - quiet = 1;
3871 + option_quiet();
3788 3872 } else if (!strcmp(option, "stats")) {
3789 3873 show_stats = 1;
3790 3874 } else if (!strcmp(option, "allow-unsafe-features")) {
@@ -3796,34 +3880,36 @@ static int parse_one_option(const char *option)
3796 3880 return 1;
3797 3881 }
3798 3882
3799 - static void check_unsafe_feature(const char *feature, int from_stream)
3883 + static void check_unsafe_feature(struct fast_import_state *state,
3884 + const char *feature)
3800 3885 {
3801 - if (from_stream && !allow_unsafe_features)
3886 + if (!state->allow_unsafe_features)
3802 3887 die(_("feature '%s' forbidden in input without --allow-unsafe-features"),
3803 3888 feature);
3804 3889 }
3805 3890
3806 - static int parse_one_feature(const char *feature, int from_stream)
3891 + static int parse_one_feature(struct fast_import_state *state,
3892 + const char *feature)
3807 3893 {
3808 3894 const char *arg;
3809 3895
3810 3896 if (skip_prefix(feature, "date-format=", &arg)) {
3811 3897 option_date_format(arg);
3812 3898 } else if (skip_prefix(feature, "import-marks=", &arg)) {
3813 - check_unsafe_feature("import-marks", from_stream);
3814 - option_import_marks(arg, from_stream, 0);
3899 + check_unsafe_feature(state, "import-marks");
3900 + option_import_marks(state, arg, 1, 0);
3815 3901 } else if (skip_prefix(feature, "import-marks-if-exists=", &arg)) {
3816 - check_unsafe_feature("import-marks-if-exists", from_stream);
3817 - option_import_marks(arg, from_stream, 1);
3902 + check_unsafe_feature(state, "import-marks-if-exists");
3903 + option_import_marks(state, arg, 1, 1);
3818 3904 } else if (skip_prefix(feature, "export-marks=", &arg)) {
3819 - check_unsafe_feature(feature, from_stream);
3820 - option_export_marks(arg);
3905 + check_unsafe_feature(state, feature);
3906 + option_export_marks(state, arg);
3821 3907 } else if (!strcmp(feature, "alias")) {
3822 3908 ; /* Don't die - this feature is supported */
3823 3909 } else if (skip_prefix(feature, "rewrite-submodules-to=", &arg)) {
3824 - option_rewrite_submodules(arg, &sub_marks_to);
3910 + option_rewrite_submodules(state, arg, &sub_marks_to);
3825 3911 } else if (skip_prefix(feature, "rewrite-submodules-from=", &arg)) {
3826 - option_rewrite_submodules(arg, &sub_marks_from);
3912 + option_rewrite_submodules(state, arg, &sub_marks_from);
3827 3913 } else if (!strcmp(feature, "get-mark")) {
3828 3914 ; /* Don't die - this feature is supported */
3829 3915 } else if (!strcmp(feature, "cat-blob")) {
@@ -3845,23 +3931,23 @@ static int parse_one_feature(const char *feature, int from_stream)
3845 3931 return 1;
3846 3932 }
3847 3933
3848 - static void parse_feature(const char *feature)
3934 + static void parse_feature(struct fast_import_state *state, const char *feature)
3849 3935 {
3850 - if (seen_data_command)
3936 + if (state->seen_data_command)
3851 3937 die(_("got feature command '%s' after data command"), feature);
3852 3938
3853 - if (parse_one_feature(feature, 1))
3939 + if (parse_one_feature(state, feature))
3854 3940 return;
3855 3941
3856 3942 die(_("this version of fast-import does not support feature %s."), feature);
3857 3943 }
3858 3944
3859 - static void parse_option(const char *option)
3945 + static void parse_option(struct fast_import_state *state, const char *option)
3860 3946 {
3861 - if (seen_data_command)
3947 + if (state->seen_data_command)
3862 3948 die(_("got option command '%s' after data command"), option);
3863 3949
3864 - if (parse_one_option(option))
3950 + if (parse_one_option(state, option))
3865 3951 return;
3866 3952
3867 3953 die(_("this version of fast-import does not support option: %s"), option);
@@ -3894,42 +3980,144 @@ static void git_pack_config(void)
3894 3980 repo_config(the_repository, git_default_config, NULL);
3895 3981 }
3896 3982
3897 - static const char fast_import_usage[] =
3898 - "git fast-import [--date-format=<f>] [--max-pack-size=<n>] [--big-file-threshold=<n>] [--depth=<n>] [--active-branches=<n>] [--export-marks=<marks.file>]";
3983 + static const char *const fast_import_usage[] = {
3984 + N_("git fast-import [<options>]"),
3985 + NULL
3986 + };
3899 3987
3900 - static void parse_argv(void)
3988 + static void parse_argv(struct fast_import_state *state)
3901 3989 {
3902 - unsigned int i;
3990 + int argc = parse_options(state->argc, state->argv, state->prefix,
3991 + state->option, fast_import_usage,
3992 + PARSE_OPT_KEEP_ARGV0);
3903 3993
3904 - for (i = 1; i < global_argc; i++) {
3905 - const char *a = global_argv[i];
3994 + if (argc > 1)
3995 + usage_with_options(fast_import_usage, state->option);
3906 3996
3907 - if (*a != '-' || !strcmp(a, "--"))
3908 - break;
3997 + state->seen_data_command = 1;
3998 + if (import_marks_file)
3999 + read_marks();
4000 + build_mark_map(&sub_marks_from, &sub_marks_to);
4001 + }
3909 4002
3910 - if (!skip_prefix(a, "--", &a))
3911 - die(_("unknown option %s"), a);
4003 + static int option_parse_date_format(const struct option *opt UNUSED,
4004 + const char *arg, int unset)
4005 + {
4006 + BUG_ON_OPT_NEG(unset);
4007 + option_date_format(arg);
4008 + return 0;
4009 + }
3912 4010
3913 - if (parse_one_option(a))
3914 - continue;
4011 + static int option_parse_export_pack_edges(const struct option *opt,
4012 + const char *arg, int unset)
4013 + {
4014 + BUG_ON_OPT_NEG(unset);
4015 + option_export_pack_edges(opt->value, arg);
4016 + return 0;
4017 + }
3915 4018
3916 - if (parse_one_feature(a, 0))
3917 - continue;
4019 + static int option_parse_max_pack_size(const struct option *opt UNUSED,
4020 + const char *arg, int unset)
4021 + {
4022 + BUG_ON_OPT_NEG(unset);
4023 + option_max_pack_size(arg);
4024 + return 0;
4025 + }
3918 4026
3919 - if (skip_prefix(a, "cat-blob-fd=", &a)) {
3920 - option_cat_blob_fd(a);
3921 - continue;
3922 - }
4027 + static int option_parse_big_file_threshold(const struct option *opt UNUSED,
4028 + const char *arg, int unset)
4029 + {
4030 + BUG_ON_OPT_NEG(unset);
4031 + option_big_file_threshold(arg);
4032 + return 0;
4033 + }
3923 4034
3924 - die(_("unknown option --%s"), a);
3925 - }
3926 - if (i != global_argc)
3927 - usage(fast_import_usage);
4035 + static int option_parse_signed_commits(const struct option *opt UNUSED,
4036 + const char *arg, int unset)
4037 + {
4038 + BUG_ON_OPT_NEG(unset);
4039 + option_signed_commits(arg);
4040 + return 0;
4041 + }
3928 4042
3929 - seen_data_command = 1;
3930 - if (import_marks_file)
3931 - read_marks();
3932 - build_mark_map(&sub_marks_from, &sub_marks_to);
4043 + static int option_parse_signed_tags(const struct option *opt UNUSED,
4044 + const char *arg, int unset)
4045 + {
4046 + BUG_ON_OPT_NEG(unset);
4047 + option_signed_tags(arg);
4048 + return 0;
4049 + }
4050 +
4051 + static int option_parse_rewrite_submodules_from(const struct option *opt,
4052 + const char *arg, int unset)
4053 + {
4054 + BUG_ON_OPT_NEG(unset);
4055 + option_rewrite_submodules(opt->value, arg, &sub_marks_from);
4056 + return 0;
4057 + }
4058 +
4059 + static int option_parse_rewrite_submodules_to(const struct option *opt,
4060 + const char *arg, int unset)
4061 + {
4062 + BUG_ON_OPT_NEG(unset);
4063 + option_rewrite_submodules(opt->value, arg, &sub_marks_to);
4064 + return 0;
4065 + }
4066 +
4067 + static int option_parse_cat_blob_fd(const struct option *opt,
4068 + const char *arg, int unset)
4069 + {
4070 + BUG_ON_OPT_NEG(unset);
4071 + option_cat_blob_fd(opt->value, arg);
4072 + return 0;
4073 + }
4074 +
4075 + static int option_parse_import_marks(const struct option *opt,
4076 + const char *arg, int unset)
4077 + {
4078 + BUG_ON_OPT_NEG(unset);
4079 + option_import_marks(opt->value, arg, 0, 0);
4080 + return 0;
4081 + }
4082 +
4083 + static int option_parse_import_marks_if_exists(const struct option *opt,
4084 + const char *arg, int unset)
4085 + {
4086 + BUG_ON_OPT_NEG(unset);
4087 + option_import_marks(opt->value, arg, 0, 1);
4088 + return 0;
4089 + }
4090 +
4091 + static int option_parse_export_marks(const struct option *opt,
4092 + const char *arg, int unset)
4093 + {
4094 + BUG_ON_OPT_NEG(unset);
4095 + option_export_marks(opt->value, arg);
4096 + return 0;
4097 + }
4098 +
4099 + static int option_parse_depth(const struct option *opt UNUSED,
4100 + const char *arg, int unset)
4101 + {
4102 + BUG_ON_OPT_NEG(unset);
4103 + option_depth(arg);
4104 + return 0;
4105 + }
4106 +
4107 + static int option_parse_active_branches(const struct option *opt UNUSED,
4108 + const char *arg, int unset)
4109 + {
4110 + BUG_ON_OPT_NEG(unset);
4111 + option_active_branches(arg);
4112 + return 0;
4113 + }
4114 +
4115 + static int option_parse_quiet(const struct option *opt UNUSED,
4116 + const char *arg UNUSED, int unset)
4117 + {
4118 + BUG_ON_OPT_NEG(unset);
4119 + option_quiet();
4120 + return 0;
3933 4121 }
3934 4122
3935 4123 int cmd_fast_import(int argc,
@@ -3937,9 +4125,80 @@ int cmd_fast_import(int argc,
3937 4125 const char *prefix,
3938 4126 struct repository *repo)
3939 4127 {
3940 - unsigned int i;
3941 -
3942 - show_usage_if_asked(argc, argv, fast_import_usage);
4128 + struct fast_import_state state;
4129 +
4130 + struct option fast_import_options[] = {
4131 + OPT_GROUP(N_("Common")),
4132 + OPT_CALLBACK_F(0, "date-format", NULL, N_("fmt"),
4133 + N_("format of the commit/tag dates"),
4134 + PARSE_OPT_NONEG, option_parse_date_format),
4135 + OPT_BOOL_F(0, "stats", &show_stats,
4136 + N_("display some basic statistics (objects, packfiles and memory)"),
4137 + PARSE_OPT_NONEG),
4138 + OPT_CALLBACK_F(0, "quiet", NULL, NULL,
4139 + N_("disable the output shown by --stats"),
4140 + PARSE_OPT_NOARG | PARSE_OPT_NONEG,
4141 + option_parse_quiet),
4142 + OPT_BOOL_F(0, "force", &force_update,
4143 + N_("force updating modified existing branches"), PARSE_OPT_NONEG),
4144 + OPT_BOOL_F(0, "done", &require_explicit_termination,
4145 + N_("require a terminating 'done' command"), PARSE_OPT_NONEG),
4146 + OPT_CALLBACK_F(0, "max-pack-size", NULL, N_("n"),
4147 + N_("maximum size of each output pack file"),
4148 + PARSE_OPT_NONEG, option_parse_max_pack_size),
4149 + OPT_CALLBACK_F(0, "big-file-threshold", NULL, N_("n"),
4150 + N_("maximum size of a blob that will be deltified"),
4151 + PARSE_OPT_NONEG, option_parse_big_file_threshold),
4152 + OPT_CALLBACK_F(0, "depth", NULL, N_("n"),
4153 + N_("maximum delta depth"),
4154 + PARSE_OPT_NONEG, option_parse_depth),
4155 + OPT_CALLBACK_F(0, "active-branches", NULL, N_("n"),
4156 + N_("maximum number of branches to maintain active"),
4157 + PARSE_OPT_NONEG, option_parse_active_branches),
4158 + OPT_GROUP(N_("Marks")),
4159 + OPT_CALLBACK_F(0, "import-marks", &state, N_("file"),
4160 + N_("import marks from <file>"),
4161 + PARSE_OPT_NONEG, option_parse_import_marks),
4162 + OPT_CALLBACK_F(0, "import-marks-if-exists", &state, N_("file"),
4163 + N_("import marks from <file> if it exists"),
4164 + PARSE_OPT_NONEG, option_parse_import_marks_if_exists),
4165 + OPT_CALLBACK_F(0, "export-marks", &state, N_("file"),
4166 + N_("dump marks to <file>"),
4167 + PARSE_OPT_NONEG, option_parse_export_marks),
4168 + OPT_BOOL(0, "relative-marks", &relative_marks_paths,
4169 + N_("are --(import|export)-marks= paths relative to '.git/info/fast-import'?")),
4170 + OPT_GROUP(N_("Submodule rewrite")),
4171 + OPT_CALLBACK_F(0, "rewrite-submodules-from", &state, N_("name:filename"),
4172 + N_("rewrite object IDs for submodule <name> from <filename>"),
4173 + PARSE_OPT_NONEG, option_parse_rewrite_submodules_from),
4174 + OPT_CALLBACK_F(0, "rewrite-submodules-to", &state, N_("name:filename"),
4175 + N_("rewrite object IDs for submodule <name> to <filename>"),
4176 + PARSE_OPT_NONEG, option_parse_rewrite_submodules_to),
4177 + OPT_GROUP(N_("Signing")),
4178 + OPT_CALLBACK_F(0, "signed-commits", NULL, N_("mode"),
4179 + N_("how to handle signed commits"),
4180 + PARSE_OPT_NONEG, option_parse_signed_commits),
4181 + OPT_CALLBACK_F(0, "signed-tags", NULL, N_("mode"),
4182 + N_("how to handle signed tags"),
4183 + PARSE_OPT_NONEG, option_parse_signed_tags),
4184 + OPT_HIDDEN_GROUP(N_("Advanced")),
4185 + OPT_BOOL_F(0, "allow-unsafe-features", &state.allow_unsafe_features,
4186 + N_("allow unsafe mark commands from the stream"),
4187 + PARSE_OPT_HIDDEN | PARSE_OPT_NONEG),
4188 + OPT_CALLBACK_F(0, "export-pack-edges", &state, N_("file"),
4189 + N_("dump edge commits to <file>"),
4190 + PARSE_OPT_HIDDEN | PARSE_OPT_NONEG,
4191 + option_parse_export_pack_edges),
4192 + OPT_CALLBACK_F(0, "cat-blob-fd", &state, N_("fd"),
4193 + N_("write some responses to <fd> instead of stdout"),
4194 + PARSE_OPT_HIDDEN | PARSE_OPT_NONEG,
4195 + option_parse_cat_blob_fd),
4196 + OPT_END()
4197 + };
4198 +
4199 + show_usage_with_options_if_asked(argc, argv, fast_import_usage, fast_import_options);
4200 +
4201 + fast_import_state_init(&state, argc, argv, prefix, fast_import_options);
3943 4202
3944 4203 reset_pack_idx_option(&pack_idx_opts);
3945 4204 git_pack_config();
@@ -3958,55 +4217,61 @@ int cmd_fast_import(int argc,
3958 4217 * "feature" lines at the start of the stream (which allows the command
3959 4218 * line to override stream data). But we must do an early parse of any
3960 4219 * command-line options that impact how we interpret the feature lines.
4220 + *
4221 + * NEEDSWORK: This scan only matches the exact "--allow-unsafe-features"
4222 + * spelling and stops at the first argument that doesn't start with a
4223 + * dash. As parse_options() below also accepts unambiguous abbreviations
4224 + * and values separated by a space from their option, the two disagree
4225 + * for command lines like "--allow-unsafe" or "--depth 5
4226 + * --allow-unsafe-features": parse_options() accepts the option, but
4227 + * this scan doesn't see it, so unsafe features from the stream are
4228 + * still refused. This errs on the safe side, but should be fixed by
4229 + * teaching this scan about the options that take a value.
3961 4230 */
3962 - for (i = 1; i < argc; i++) {
4231 + for (int i = 1; i < argc; i++) {
3963 4232 const char *arg = argv[i];
3964 4233 if (*arg != '-' || !strcmp(arg, "--"))
3965 4234 break;
3966 4235 if (!strcmp(arg, "--allow-unsafe-features"))
3967 - allow_unsafe_features = 1;
4236 + state.allow_unsafe_features = 1;
3968 4237 }
3969 4238
3970 - global_argc = argc;
3971 - global_argv = argv;
3972 - global_prefix = prefix;
3973 -
3974 4239 rc_free = mem_pool_alloc(&fi_mem_pool, cmd_save * sizeof(*rc_free));
3975 - for (i = 0; i < (cmd_save - 1); i++)
4240 + for (unsigned int i = 0; i < (cmd_save - 1); i++)
3976 4241 rc_free[i].next = &rc_free[i + 1];
3977 4242 rc_free[cmd_save - 1].next = NULL;
3978 4243
3979 4244 start_packfile();
3980 4245 set_die_routine(die_nicely);
3981 4246 set_checkpoint_signal();
3982 - while (read_next_command() != EOF) {
4247 + while (read_next_command(&state) != EOF) {
3983 4248 const char *v;
3984 4249 if (!strcmp("blob", command_buf.buf))
3985 - parse_new_blob();
4250 + parse_new_blob(&state);
3986 4251 else if (skip_prefix(command_buf.buf, "commit ", &v))
3987 - parse_new_commit(v);
4252 + parse_new_commit(&state, v);
3988 4253 else if (skip_prefix(command_buf.buf, "tag ", &v))
3989 - parse_new_tag(v);
4254 + parse_new_tag(&state, v);
3990 4255 else if (skip_prefix(command_buf.buf, "reset ", &v))
3991 - parse_reset_branch(v);
4256 + parse_reset_branch(&state, v);
3992 4257 else if (skip_prefix(command_buf.buf, "ls ", &v))
3993 - parse_ls(v, NULL);
4258 + parse_ls(&state, v, NULL);
3994 4259 else if (skip_prefix(command_buf.buf, "cat-blob ", &v))
3995 - parse_cat_blob(v);
4260 + parse_cat_blob(&state, v);
3996 4261 else if (skip_prefix(command_buf.buf, "get-mark ", &v))
3997 - parse_get_mark(v);
4262 + parse_get_mark(&state, v);
3998 4263 else if (!strcmp("checkpoint", command_buf.buf))
3999 - parse_checkpoint();
4264 + parse_checkpoint(&state);
4000 4265 else if (!strcmp("done", command_buf.buf))
4001 4266 break;
4002 4267 else if (!strcmp("alias", command_buf.buf))
4003 - parse_alias();
4268 + parse_alias(&state);
4004 4269 else if (starts_with(command_buf.buf, "progress "))
4005 - parse_progress();
4270 + parse_progress(&state);
4006 4271 else if (skip_prefix(command_buf.buf, "feature ", &v))
4007 - parse_feature(v);
4272 + parse_feature(&state, v);
4008 4273 else if (skip_prefix(command_buf.buf, "option git ", &v))
4009 - parse_option(v);
4274 + parse_option(&state, v);
4010 4275 else if (starts_with(command_buf.buf, "option "))
4011 4276 /* ignore non-git options*/;
4012 4277 else
@@ -4017,8 +4282,8 @@ int cmd_fast_import(int argc,
4017 4282 }
4018 4283
4019 4284 /* argv hasn't been parsed yet, do so */
4020 - if (!seen_data_command)
4021 - parse_argv();
4285 + if (!state.seen_data_command)
4286 + parse_argv(&state);
4022 4287
4023 4288 if (require_explicit_termination && feof(stdin))
4024 4289 die(_("stream ends early"));
@@ -4035,9 +4300,9 @@ int cmd_fast_import(int argc,
4035 4300
4036 4301 if (show_stats) {
4037 4302 uintmax_t total_count = 0, duplicate_count = 0;
4038 - for (i = 0; i < ARRAY_SIZE(object_count_by_type); i++)
4303 + for (size_t i = 0; i < ARRAY_SIZE(object_count_by_type); i++)
4039 4304 total_count += object_count_by_type[i];
4040 - for (i = 0; i < ARRAY_SIZE(duplicate_count_by_type); i++)
4305 + for (size_t i = 0; i < ARRAY_SIZE(duplicate_count_by_type); i++)
4041 4306 duplicate_count += duplicate_count_by_type[i];
4042 4307
4043 4308 fprintf(stderr, "%s statistics:\n", argv[0]);
modified builtin/fetch-pack.c
@@ -49,7 +49,7 @@ static void add_sought_entry(struct ref ***sought, int *nr, int *alloc,
49 49 int cmd_fetch_pack(int argc,
50 50 const char **argv,
51 51 const char *prefix UNUSED,
52 - struct repository *repo UNUSED)
52 + struct repository *repo)
53 53 {
54 54 int i, ret;
55 55 struct ref *fetched_refs = NULL, *remote_refs = NULL;
@@ -67,8 +67,6 @@ int cmd_fetch_pack(int argc,
67 67 struct packet_reader reader;
68 68 enum protocol_version version;
69 69
70 - fetch_if_missing = 0;
71 -
72 70 packet_trace_identity("fetch-pack");
73 71
74 72 memset(&args, 0, sizeof(args));
@@ -77,6 +75,8 @@ int cmd_fetch_pack(int argc,
77 75
78 76 show_usage_if_asked(argc, argv, fetch_pack_usage);
79 77
78 + repo->fetch_if_missing = 0;
79 +
80 80 for (i = 1; i < argc && *argv[i] == '-'; i++) {
81 81 const char *arg = argv[i];
82 82
modified builtin/fetch.c
@@ -2681,7 +2681,7 @@ int cmd_fetch(int argc,
2681 2681 int *rs = config.recurse_submodules == RECURSE_SUBMODULES_DEFAULT
2682 2682 ? &config.recurse_submodules : NULL;
2683 2683
2684 - fetch_config_from_gitmodules(sfjc, rs);
2684 + fetch_config_from_gitmodules(the_repository, sfjc, rs);
2685 2685 }
2686 2686
2687 2687
modified builtin/fsck.c
@@ -7,13 +7,11 @@
7 7 #include "blob.h"
8 8 #include "tag.h"
9 9 #include "refs.h"
10 - #include "pack.h"
11 10 #include "cache-tree.h"
12 11 #include "fsck.h"
13 12 #include "parse-options.h"
14 13 #include "progress.h"
15 14 #include "packfile.h"
16 - #include "object-file.h"
17 15 #include "object-name.h"
18 16 #include "odb.h"
19 17 #include "odb/streaming.h"
@@ -24,8 +22,6 @@
24 22 #include "run-command.h"
25 23 #include "sparse-index.h"
26 24 #include "worktree.h"
27 - #include "pack-revindex.h"
28 - #include "pack-bitmap.h"
29 25
30 26 #define REACHABLE 0x0001
31 27 #define SEEN 0x0002
@@ -37,10 +33,8 @@ static int show_root;
37 33 static int show_tags;
38 34 static int show_unreachable;
39 35 static int include_reflogs = 1;
40 - static int check_full = 1;
41 36 static int connectivity_only;
42 37 static int check_strict;
43 - static int keep_cache_objects;
44 38 static struct fsck_options fsck_walk_options;
45 39 static struct fsck_options fsck_obj_options;
46 40 static int errors_found;
@@ -48,17 +42,11 @@ static int write_lost_and_found;
48 42 static int verbose;
49 43 static int show_progress = -1;
50 44 static int show_dangling = 1;
51 - static int name_objects;
52 - static int check_references = 1;
53 45 static timestamp_t now;
54 46 #define ERROR_OBJECT 01
55 47 #define ERROR_REACHABLE 02
56 - #define ERROR_PACK 04
57 48 #define ERROR_REFS 010
58 49 #define ERROR_COMMIT_GRAPH 020
59 - #define ERROR_MULTI_PACK_INDEX 040
60 - #define ERROR_PACK_REV_INDEX 0100
61 - #define ERROR_BITMAP 0200
62 50
63 51 static const char *describe_object(const struct object_id *oid)
64 52 {
@@ -401,14 +389,27 @@ static void check_connectivity(struct repository *repo)
401 389 }
402 390 }
403 391
404 - static int fsck_obj(struct repository *repo,
405 - struct object *obj, void *buffer, unsigned long size)
392 + static int fsck_obj_buffer(const struct object_id *oid, enum object_type type,
393 + unsigned long size, void *buffer, int *eaten, void *cb_data)
406 394 {
395 + struct repository *repo = cb_data;
396 + struct object *obj;
407 397 int err;
408 398
409 - if (obj->flags & SEEN)
410 - return 0;
411 - obj->flags |= SEEN;
399 + /*
400 + * Note, buffer may be NULL if type is OBJ_BLOB. See
401 + * verify_packfile(), data_valid variable for details.
402 + */
403 + obj = parse_object_buffer(repo, oid, type, size, buffer, eaten);
404 + if (!obj) {
405 + errors_found |= ERROR_OBJECT;
406 + err = error(_("%s: object corrupt or missing"),
407 + oid_to_hex(oid));
408 + goto out;
409 + }
410 +
411 + obj->flags &= ~REACHABLE;
412 + obj->flags |= HAS_OBJ | SEEN;
412 413
413 414 if (verbose)
414 415 fprintf_ln(stderr, _("Checking %s %s"),
@@ -417,6 +418,7 @@ static int fsck_obj(struct repository *repo,
417 418
418 419 if (fsck_walk(obj, NULL, &fsck_obj_options))
419 420 objerror(repo, obj, _("broken links"));
421 +
420 422 err = fsck_object(obj, buffer, size, &fsck_obj_options);
421 423 if (err)
422 424 goto out;
@@ -442,32 +444,11 @@ static int fsck_obj(struct repository *repo,
442 444 }
443 445
444 446 out:
445 - if (obj->type == OBJ_TREE)
447 + if (obj && obj->type == OBJ_TREE)
446 448 free_tree_buffer((struct tree *)obj);
447 449 return err;
448 450 }
449 451
450 - static int fsck_obj_buffer(const struct object_id *oid, enum object_type type,
451 - unsigned long size, void *buffer, int *eaten, void *cb_data)
452 - {
453 - struct repository *repo = cb_data;
454 - struct object *obj;
455 -
456 - /*
457 - * Note, buffer may be NULL if type is OBJ_BLOB. See
458 - * verify_packfile(), data_valid variable for details.
459 - */
460 - obj = parse_object_buffer(repo, oid, type, size, buffer, eaten);
461 - if (!obj) {
462 - errors_found |= ERROR_OBJECT;
463 - return error(_("%s: object corrupt or missing"),
464 - oid_to_hex(oid));
465 - }
466 - obj->flags &= ~(REACHABLE | SEEN);
467 - obj->flags |= HAS_OBJ;
468 - return fsck_obj(repo, obj, buffer, size);
469 - }
470 -
471 452 static int default_refs;
472 453
473 454 static void fsck_handle_reflog_oid(struct repository *repo,
@@ -713,103 +694,6 @@ static void process_refs(struct repository *repo, struct snapshot *snap)
713 694 }
714 695 }
715 696
716 - struct for_each_loose_cb {
717 - struct repository *repo;
718 - struct progress *progress;
719 - };
720 -
721 - static int fsck_loose(const struct object_id *oid, const char *path,
722 - void *cb_data)
723 - {
724 - struct for_each_loose_cb *data = cb_data;
725 - struct object *obj;
726 - enum object_type type = OBJ_NONE;
727 - size_t size;
728 - void *contents = NULL;
729 - int eaten;
730 - struct object_info oi = OBJECT_INFO_INIT;
731 - struct object_id real_oid = *null_oid(data->repo->hash_algo);
732 - int err = 0;
733 -
734 - oi.sizep = &size;
735 - oi.typep = &type;
736 -
737 - if (read_loose_object(data->repo, path, oid, &real_oid, &contents, &oi) < 0) {
738 - if (contents && !oideq(&real_oid, oid))
739 - err = error(_("%s: hash-path mismatch, found at: %s"),
740 - oid_to_hex(&real_oid), path);
741 - else
742 - err = error(_("%s: object corrupt or missing: %s"),
743 - oid_to_hex(oid), path);
744 - }
745 - if (err < 0) {
746 - errors_found |= ERROR_OBJECT;
747 - free(contents);
748 - return 0; /* keep checking other objects */
749 - }
750 -
751 - if (!contents && type != OBJ_BLOB)
752 - BUG("read_loose_object streamed a non-blob");
753 -
754 - obj = parse_object_buffer(data->repo, oid, type, size,
755 - contents, &eaten);
756 -
757 - if (!obj) {
758 - errors_found |= ERROR_OBJECT;
759 - error(_("%s: object could not be parsed: %s"),
760 - oid_to_hex(oid), path);
761 - if (!eaten)
762 - free(contents);
763 - return 0; /* keep checking other objects */
764 - }
765 -
766 - obj->flags &= ~(REACHABLE | SEEN);
767 - obj->flags |= HAS_OBJ;
768 - if (fsck_obj(data->repo, obj, contents, size))
769 - errors_found |= ERROR_OBJECT;
770 -
771 - if (!eaten)
772 - free(contents);
773 - return 0; /* keep checking other objects, even if we saw an error */
774 - }
775 -
776 - static int fsck_cruft(const char *basename, const char *path,
777 - void *data UNUSED)
778 - {
779 - if (!starts_with(basename, "tmp_obj_"))
780 - fprintf_ln(stderr, _("bad sha1 file: %s"), path);
781 - return 0;
782 - }
783 -
784 - static int fsck_subdir(unsigned int nr, const char *path UNUSED, void *data)
785 - {
786 - struct for_each_loose_cb *cb_data = data;
787 - struct progress *progress = cb_data->progress;
788 - display_progress(progress, nr + 1);
789 - return 0;
790 - }
791 -
792 - static void fsck_source(struct repository *repo, struct odb_source *source)
793 - {
794 - struct progress *progress = NULL;
795 - struct for_each_loose_cb cb_data = {
796 - .repo = source->odb->repo,
797 - .progress = progress,
798 - };
799 -
800 - if (verbose)
801 - fprintf_ln(stderr, _("Checking object directory"));
802 -
803 - if (show_progress)
804 - progress = start_progress(repo,
805 - _("Checking object directories"), 256);
806 -
807 - for_each_loose_file_in_source(source, fsck_loose,
808 - fsck_cruft, fsck_subdir, &cb_data);
809 - display_progress(progress, 256);
810 - stop_progress(&progress);
811 - }
812 -
813 697 static int fsck_cache_tree(struct repository *repo, struct cache_tree *it, const char *index_path)
814 698 {
815 699 int i;
@@ -918,40 +802,6 @@ static int mark_object_for_connectivity(const struct object_id *oid,
918 802 return 0;
919 803 }
920 804
921 - static int check_pack_rev_indexes(struct repository *r, int show_progress)
922 - {
923 - struct progress *progress = NULL;
924 - struct packed_git *p;
925 - uint32_t pack_count = 0;
926 - int res = 0;
927 -
928 - if (show_progress) {
929 - repo_for_each_pack(r, p)
930 - pack_count++;
931 - progress = start_delayed_progress(r,
932 - "Verifying reverse pack-indexes", pack_count);
933 - pack_count = 0;
934 - }
935 -
936 - repo_for_each_pack(r, p) {
937 - int load_error = load_pack_revindex_from_disk(p);
938 -
939 - if (load_error < 0) {
940 - error(_("unable to load rev-index for pack '%s'"), p->pack_name);
941 - res = ERROR_PACK_REV_INDEX;
942 - } else if (!load_error &&
943 - !load_pack_revindex(r, p) &&
944 - verify_pack_revindex(p)) {
945 - error(_("invalid rev-index for pack '%s'"), p->pack_name);
946 - res = ERROR_PACK_REV_INDEX;
947 - }
948 - display_progress(progress, ++pack_count);
949 - }
950 - stop_progress(&progress);
951 -
952 - return res;
953 - }
954 -
955 805 static void fsck_refs(struct repository *r)
956 806 {
957 807 struct child_process refs_verify = CHILD_PROCESS_INIT;
@@ -986,30 +836,38 @@ static char const * const fsck_usage[] = {
986 836 NULL
987 837 };
988 838
989 - static struct option fsck_opts[] = {
990 - OPT__VERBOSE(&verbose, N_("be verbose")),
991 - OPT_BOOL(0, "unreachable", &show_unreachable, N_("show unreachable objects")),
992 - OPT_BOOL(0, "dangling", &show_dangling, N_("show dangling objects")),
993 - OPT_BOOL(0, "tags", &show_tags, N_("report tags")),
994 - OPT_BOOL(0, "root", &show_root, N_("report root nodes")),
995 - OPT_BOOL(0, "cache", &keep_cache_objects, N_("make index objects head nodes")),
996 - OPT_BOOL(0, "reflogs", &include_reflogs, N_("make reflogs head nodes (default)")),
997 - OPT_BOOL(0, "full", &check_full, N_("also consider packs and alternate objects")),
998 - OPT_BOOL(0, "connectivity-only", &connectivity_only, N_("check only connectivity")),
999 - OPT_BOOL(0, "strict", &check_strict, N_("enable more strict checking")),
1000 - OPT_BOOL(0, "lost-found", &write_lost_and_found,
1001 - N_("write dangling objects in .git/lost-found")),
1002 - OPT_BOOL(0, "progress", &show_progress, N_("show progress")),
1003 - OPT_BOOL(0, "name-objects", &name_objects, N_("show verbose names for reachable objects")),
1004 - OPT_BOOL(0, "references", &check_references, N_("check reference database consistency")),
1005 - OPT_END(),
1006 - };
1007 -
1008 839 int cmd_fsck(int argc,
1009 840 const char **argv,
1010 841 const char *prefix,
1011 842 struct repository *repo)
1012 843 {
844 + struct odb_fsck_options odb_fsck_opts = {
845 + .flags = ODB_FSCK_FULL,
846 + .object_cb = fsck_obj_buffer,
847 + .object_payload = repo,
848 + };
849 + int keep_cache_objects = 0;
850 + int name_objects = 0;
851 + int check_references = 1;
852 + struct option fsck_opts[] = {
853 + OPT__VERBOSE(&verbose, N_("be verbose")),
854 + OPT_BOOL(0, "unreachable", &show_unreachable, N_("show unreachable objects")),
855 + OPT_BOOL(0, "dangling", &show_dangling, N_("show dangling objects")),
856 + OPT_BOOL(0, "tags", &show_tags, N_("report tags")),
857 + OPT_BOOL(0, "root", &show_root, N_("report root nodes")),
858 + OPT_BOOL(0, "cache", &keep_cache_objects, N_("make index objects head nodes")),
859 + OPT_BOOL(0, "reflogs", &include_reflogs, N_("make reflogs head nodes (default)")),
860 + OPT_BIT(0, "full", &odb_fsck_opts.flags,
861 + N_("also consider packs and alternate objects"), ODB_FSCK_FULL),
862 + OPT_BOOL(0, "connectivity-only", &connectivity_only, N_("check only connectivity")),
863 + OPT_BOOL(0, "strict", &check_strict, N_("enable more strict checking")),
864 + OPT_BOOL(0, "lost-found", &write_lost_and_found,
865 + N_("write dangling objects in .git/lost-found")),
866 + OPT_BOOL(0, "progress", &show_progress, N_("show progress")),
867 + OPT_BOOL(0, "name-objects", &name_objects, N_("show verbose names for reachable objects")),
868 + OPT_BOOL(0, "references", &check_references, N_("check reference database consistency")),
869 + OPT_END(),
870 + };
1013 871 struct odb_source *source;
1014 872 struct snapshot snap = {
1015 873 .nr = 0,
@@ -1017,15 +875,15 @@ int cmd_fsck(int argc,
1017 875 .ref = NULL
1018 876 };
1019 877
1020 - /* fsck knows how to handle missing promisor objects */
1021 - fetch_if_missing = 0;
1022 -
1023 878 errors_found = 0;
1024 879 disable_replace_refs();
1025 880 save_commit_buffer = 0;
1026 881
1027 882 argc = parse_options(argc, argv, prefix, fsck_opts, fsck_usage, 0);
1028 883
884 + /* fsck knows how to handle missing promisor objects */
885 + repo->fetch_if_missing = 0;
886 +
1029 887 fsck_options_init(&fsck_walk_options, repo, FSCK_OPTIONS_DEFAULT);
1030 888 fsck_walk_options.walk = mark_object;
1031 889
@@ -1037,11 +895,15 @@ int cmd_fsck(int argc,
1037 895
1038 896 if (show_progress == -1)
1039 897 show_progress = isatty(2);
1040 - if (verbose)
898 + if (verbose) {
1041 899 show_progress = 0;
900 + odb_fsck_opts.flags |= ODB_FSCK_VERBOSE;
901 + }
902 + if (show_progress)
903 + odb_fsck_opts.flags |= ODB_FSCK_PROGRESS;
1042 904
1043 905 if (write_lost_and_found) {
1044 - check_full = 1;
906 + odb_fsck_opts.flags |= ODB_FSCK_FULL;
1045 907 include_reflogs = 0;
1046 908 }
1047 909
@@ -1069,36 +931,8 @@ int cmd_fsck(int argc,
1069 931 odb_for_each_object(repo->objects, NULL,
1070 932 mark_object_for_connectivity, repo, 0);
1071 933 } else {
1072 - odb_prepare_alternates(repo->objects);
1073 - for (source = repo->objects->sources; source; source = source->next)
1074 - fsck_source(repo, source);
1075 -
1076 - if (check_full) {
1077 - struct packed_git *p;
1078 - uint32_t total = 0, count = 0;
1079 - struct progress *progress = NULL;
1080 -
1081 - if (show_progress) {
1082 - repo_for_each_pack(repo, p) {
1083 - if (open_pack_index(p))
1084 - continue;
1085 - total += p->num_objects;
1086 - }
1087 -
1088 - progress = start_progress(repo,
1089 - _("Checking objects"), total);
1090 - }
1091 -
1092 - repo_for_each_pack(repo, p) {
1093 - /* verify gives error messages itself */
1094 - if (verify_pack(repo,
1095 - p, fsck_obj_buffer, repo,
1096 - progress, count))
1097 - errors_found |= ERROR_PACK;
1098 - count += p->num_objects;
1099 - }
1100 - stop_progress(&progress);
1101 - }
934 + if (odb_fsck(repo->objects, &odb_fsck_opts) < 0)
935 + errors_found |= ERROR_OBJECT;
1102 936
1103 937 if (fsck_finish(&fsck_obj_options))
1104 938 errors_found |= ERROR_OBJECT;
@@ -1146,16 +980,11 @@ int cmd_fsck(int argc,
1146 980 free_worktrees(worktrees);
1147 981 }
1148 982
1149 - errors_found |= check_pack_rev_indexes(repo, show_progress);
1150 - if (verify_bitmap_files(repo))
1151 - errors_found |= ERROR_BITMAP;
1152 -
1153 983 check_connectivity(repo);
1154 984
1155 985 if (repo->settings.core_commit_graph) {
1156 986 struct child_process commit_graph_verify = CHILD_PROCESS_INIT;
1157 987
1158 - odb_prepare_alternates(repo->objects);
1159 988 for (source = repo->objects->sources; source; source = source->next) {
1160 989 child_process_init(&commit_graph_verify);
1161 990 commit_graph_verify.git_cmd = 1;
@@ -1170,24 +999,6 @@ int cmd_fsck(int argc,
1170 999 }
1171 1000 }
1172 1001
1173 - if (repo->settings.core_multi_pack_index) {
1174 - struct child_process midx_verify = CHILD_PROCESS_INIT;
1175 -
1176 - odb_prepare_alternates(repo->objects);
1177 - for (source = repo->objects->sources; source; source = source->next) {
1178 - child_process_init(&midx_verify);
1179 - midx_verify.git_cmd = 1;
1180 - strvec_pushl(&midx_verify.args, "multi-pack-index",
1181 - "verify", "--object-dir", source->path, NULL);
1182 - if (show_progress)
1183 - strvec_push(&midx_verify.args, "--progress");
1184 - else
1185 - strvec_push(&midx_verify.args, "--no-progress");
1186 - if (run_command(&midx_verify))
1187 - errors_found |= ERROR_MULTI_PACK_INDEX;
1188 - }
1189 - }
1190 -
1191 1002 free_snapshot_refs(&snap);
1192 1003 return errors_found;
1193 1004 }
modified builtin/gc.c
@@ -30,16 +30,11 @@
30 30 #include "commit-graph.h"
31 31 #include "packfile.h"
32 32 #include "object-file.h"
33 - #include "pack.h"
34 - #include "pack-objects.h"
33 + #include "odb.h"
35 34 #include "path.h"
36 35 #include "reflog.h"
37 - #include "repack.h"
38 36 #include "rerere.h"
39 37 #include "revision.h"
40 - #include "blob.h"
41 - #include "tree.h"
42 - #include "promisor-remote.h"
43 38 #include "refs.h"
44 39 #include "remote.h"
45 40 #include "exec-cmd.h"
@@ -130,22 +125,11 @@ struct gc_config {
130 125 unsigned long max_cruft_size;
131 126 int aggressive_depth;
132 127 int aggressive_window;
133 - int gc_auto_threshold;
134 - int gc_auto_pack_limit;
135 128 int detach_auto;
136 129 char *gc_log_expire;
137 130 char *prune_expire;
138 131 char *prune_worktrees_expire;
139 - char *repack_filter;
140 - char *repack_filter_to;
141 132 char *repack_expire_to;
142 - unsigned long big_pack_threshold;
143 - unsigned long max_delta_cache_size;
144 - /*
145 - * Remove this member from gc_config once repo_settings is passed
146 - * through the callchain.
147 - */
148 - size_t delta_base_cache_limit;
149 133 };
150 134
151 135 #define GC_CONFIG_INIT { \
@@ -154,14 +138,10 @@ struct gc_config {
154 138 .cruft_packs = 1, \
155 139 .aggressive_depth = 50, \
156 140 .aggressive_window = 250, \
157 - .gc_auto_threshold = 6700, \
158 - .gc_auto_pack_limit = 50, \
159 141 .detach_auto = 1, \
160 142 .gc_log_expire = xstrdup("1.day.ago"), \
161 143 .prune_expire = xstrdup("2.weeks.ago"), \
162 144 .prune_worktrees_expire = xstrdup("3.months.ago"), \
163 - .max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE, \
164 - .delta_base_cache_limit = DEFAULT_DELTA_BASE_CACHE_LIMIT, \
165 145 }
166 146
167 147 static void gc_config_release(struct gc_config *cfg)
@@ -169,15 +149,12 @@ static void gc_config_release(struct gc_config *cfg)
169 149 free(cfg->gc_log_expire);
170 150 free(cfg->prune_expire);
171 151 free(cfg->prune_worktrees_expire);
172 - free(cfg->repack_filter);
173 - free(cfg->repack_filter_to);
174 152 }
175 153
176 154 static void gc_config(struct gc_config *cfg)
177 155 {
178 156 const char *value;
179 157 char *owned = NULL;
180 - unsigned long ulongval;
181 158
182 159 if (!repo_config_get_value(the_repository, "gc.packrefs", &value)) {
183 160 if (value && !strcmp(value, "notbare"))
@@ -192,8 +169,6 @@ static void gc_config(struct gc_config *cfg)
192 169
193 170 repo_config_get_int(the_repository, "gc.aggressivewindow", &cfg->aggressive_window);
194 171 repo_config_get_int(the_repository, "gc.aggressivedepth", &cfg->aggressive_depth);
195 - repo_config_get_int(the_repository, "gc.auto", &cfg->gc_auto_threshold);
196 - repo_config_get_int(the_repository, "gc.autopacklimit", &cfg->gc_auto_pack_limit);
197 172 repo_config_get_bool(the_repository, "gc.autodetach", &cfg->detach_auto);
198 173 repo_config_get_bool(the_repository, "gc.cruftpacks", &cfg->cruft_packs);
199 174 repo_config_get_ulong(the_repository, "gc.maxcruftsize", &cfg->max_cruft_size);
@@ -213,22 +188,6 @@ static void gc_config(struct gc_config *cfg)
213 188 cfg->gc_log_expire = owned;
214 189 }
215 190
216 - repo_config_get_ulong(the_repository, "gc.bigpackthreshold", &cfg->big_pack_threshold);
217 - repo_config_get_ulong(the_repository, "pack.deltacachesize", &cfg->max_delta_cache_size);
218 -
219 - if (!repo_config_get_ulong(the_repository, "core.deltabasecachelimit", &ulongval))
220 - cfg->delta_base_cache_limit = ulongval;
221 -
222 - if (!repo_config_get_string(the_repository, "gc.repackfilter", &owned)) {
223 - free(cfg->repack_filter);
224 - cfg->repack_filter = owned;
225 - }
226 -
227 - if (!repo_config_get_string(the_repository, "gc.repackfilterto", &owned)) {
228 - free(cfg->repack_filter_to);
229 - cfg->repack_filter_to = owned;
230 - }
231 -
232 191 repo_config(the_repository, git_default_config, NULL);
233 192 }
234 193
@@ -437,282 +396,24 @@ static int maintenance_task_rerere_gc(struct maintenance_run_opts *opts UNUSED,
437 396
438 397 static int rerere_gc_condition(struct gc_config *cfg UNUSED)
439 398 {
440 - struct strbuf path = STRBUF_INIT;
441 - int should_gc = 0, limit = 1;
442 - DIR *dir = NULL;
399 + int limit = 512;
443 400
444 401 repo_config_get_int(the_repository, "maintenance.rerere-gc.auto", &limit);
445 - if (limit <= 0) {
446 - should_gc = limit < 0;
447 - goto out;
448 - }
449 -
450 - /*
451 - * We skip garbage collection in case we either have no "rr-cache"
452 - * directory or when it doesn't contain at least one entry.
453 - */
454 - repo_git_path_replace(the_repository, &path, "rr-cache");
455 - dir = opendir(path.buf);
456 - if (!dir)
457 - goto out;
458 - should_gc = !!readdir_skip_dot_and_dotdot(dir);
459 -
460 - out:
461 - strbuf_release(&path);
462 - if (dir)
463 - closedir(dir);
464 - return should_gc;
465 - }
466 -
467 - static int too_many_loose_objects(int limit)
468 - {
469 - struct odb_source_files *files = odb_source_files_downcast(the_repository->objects->sources);
470 - /*
471 - * This is weird, but stems from legacy behaviour: the GC auto
472 - * threshold was always essentially interpreted as if it was rounded up
473 - * to the next multiple 256 of, so we retain this behaviour for now.
474 - */
475 - int auto_threshold = DIV_ROUND_UP(limit, 256) * 256;
476 - unsigned long loose_count;
477 -
478 - if (odb_source_count_objects(&files->loose->base, ODB_COUNT_OBJECTS_APPROXIMATE,
479 - &loose_count) < 0)
480 - return 0;
481 -
482 - return loose_count > auto_threshold;
483 - }
484 -
485 - static struct packed_git *find_base_packs(struct string_list *packs,
486 - unsigned long limit)
487 - {
488 - struct packed_git *p, *base = NULL;
489 -
490 - repo_for_each_pack(the_repository, p) {
491 - if (!p->pack_local || p->is_cruft)
492 - continue;
493 - if (limit) {
494 - if (p->pack_size >= limit)
495 - string_list_append(packs, p->pack_name);
496 - } else if (!base || base->pack_size < p->pack_size) {
497 - base = p;
498 - }
499 - }
500 -
501 - if (base)
502 - string_list_append(packs, base->pack_name);
503 -
504 - return base;
505 - }
506 -
507 - static int too_many_packs(struct gc_config *cfg)
508 - {
509 - struct packed_git *p;
510 - int cnt = 0;
511 -
512 - if (cfg->gc_auto_pack_limit <= 0)
513 - return 0;
514 -
515 - repo_for_each_pack(the_repository, p) {
516 - if (!p->pack_local)
517 - continue;
518 - if (p->pack_keep)
519 - continue;
520 - /*
521 - * Perhaps check the size of the pack and count only
522 - * very small ones here?
523 - */
524 - cnt++;
525 - }
526 - return cfg->gc_auto_pack_limit < cnt;
527 - }
528 -
529 - static uint64_t total_ram(void)
530 - {
531 - #if defined(HAVE_SYSINFO)
532 - struct sysinfo si;
533 -
534 - if (!sysinfo(&si)) {
535 - uint64_t total = si.totalram;
536 -
537 - if (si.mem_unit > 1)
538 - total *= (uint64_t)si.mem_unit;
539 - return total;
540 - }
541 - #elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || defined(HW_PHYSMEM) || defined(HW_PHYSMEM64))
542 - uint64_t physical_memory;
543 - int mib[2];
544 - size_t length;
545 -
546 - mib[0] = CTL_HW;
547 - # if defined(HW_MEMSIZE)
548 - mib[1] = HW_MEMSIZE;
549 - # elif defined(HW_PHYSMEM64)
550 - mib[1] = HW_PHYSMEM64;
551 - # else
552 - mib[1] = HW_PHYSMEM;
553 - # endif
554 - length = sizeof(physical_memory);
555 - if (!sysctl(mib, 2, &physical_memory, &length, NULL, 0)) {
556 - if (length == 4) {
557 - uint32_t mem;
558 -
559 - if (!sysctl(mib, 2, &mem, &length, NULL, 0))
560 - physical_memory = mem;
561 - }
562 - return physical_memory;
563 - }
564 - #elif defined(GIT_WINDOWS_NATIVE)
565 - MEMORYSTATUSEX memInfo;
566 -
567 - memInfo.dwLength = sizeof(MEMORYSTATUSEX);
568 - if (GlobalMemoryStatusEx(&memInfo))
569 - return memInfo.ullTotalPhys;
570 - #endif
571 - return 0;
572 - }
573 -
574 - static uint64_t estimate_repack_memory(struct gc_config *cfg,
575 - struct packed_git *pack)
576 - {
577 - unsigned long nr_objects;
578 - size_t os_cache, heap;
579 -
580 - if (odb_count_objects(the_repository->objects,
581 - ODB_COUNT_OBJECTS_APPROXIMATE, &nr_objects) < 0)
582 - return 0;
583 -
584 - if (!pack || !nr_objects)
585 - return 0;
586 -
587 - /*
588 - * First we have to scan through at least one pack.
589 - * Assume enough room in OS file cache to keep the entire pack
590 - * or we may accidentally evict data of other processes from
591 - * the cache.
592 - */
593 - os_cache = pack->pack_size + pack->index_size;
594 - /* then pack-objects needs lots more for book keeping */
595 - heap = sizeof(struct object_entry) * nr_objects;
596 - /*
597 - * internal rev-list --all --objects takes up some memory too,
598 - * let's say half of it is for blobs
599 - */
600 - heap += sizeof(struct blob) * nr_objects / 2;
601 - /*
602 - * and the other half is for trees (commits and tags are
603 - * usually insignificant)
604 - */
605 - heap += sizeof(struct tree) * nr_objects / 2;
606 - /* and then obj_hash[], underestimated in fact */
607 - heap += sizeof(struct object *) * nr_objects;
608 - /* revindex is used also */
609 - heap += (sizeof(off_t) + sizeof(uint32_t)) * nr_objects;
610 - /*
611 - * read_sha1_file() (either at delta calculation phase, or
612 - * writing phase) also fills up the delta base cache
613 - */
614 - heap += cfg->delta_base_cache_limit;
615 - /* and of course pack-objects has its own delta cache */
616 - heap += cfg->max_delta_cache_size;
617 -
618 - return os_cache + heap;
619 - }
620 -
621 - static int keep_one_pack(struct string_list_item *item, void *data)
622 - {
623 - struct strvec *args = data;
624 - strvec_pushf(args, "--keep-pack=%s", basename(item->string));
625 - return 0;
626 - }
627 -
628 - static void add_repack_all_option(struct gc_config *cfg,
629 - struct string_list *keep_pack,
630 - struct strvec *args)
631 - {
632 - if (cfg->prune_expire && !strcmp(cfg->prune_expire, "now")
633 - && !(cfg->cruft_packs && cfg->repack_expire_to))
634 - strvec_push(args, "-a");
635 - else if (cfg->cruft_packs) {
636 - strvec_push(args, "--cruft");
637 - if (cfg->prune_expire)
638 - strvec_pushf(args, "--cruft-expiration=%s", cfg->prune_expire);
639 - if (cfg->max_cruft_size)
640 - strvec_pushf(args, "--max-cruft-size=%lu",
641 - cfg->max_cruft_size);
642 - if (cfg->repack_expire_to)
643 - strvec_pushf(args, "--expire-to=%s", cfg->repack_expire_to);
644 - } else {
645 - strvec_push(args, "-A");
646 - if (cfg->prune_expire)
647 - strvec_pushf(args, "--unpack-unreachable=%s", cfg->prune_expire);
648 - }
649 -
650 - if (keep_pack)
651 - for_each_string_list(keep_pack, keep_one_pack, args);
652 -
653 - if (cfg->repack_filter && *cfg->repack_filter)
654 - strvec_pushf(args, "--filter=%s", cfg->repack_filter);
655 - if (cfg->repack_filter_to && *cfg->repack_filter_to)
656 - strvec_pushf(args, "--filter-to=%s", cfg->repack_filter_to);
657 - }
402 + if (!limit)
403 + return 0; /* never prune */
404 + if (limit < 0)
405 + return 1; /* always prune */
658 406
659 - static void add_repack_incremental_option(struct strvec *args)
660 - {
661 - strvec_push(args, "--no-write-bitmap-index");
407 + return rerere_gc_needed(the_repository, (size_t)limit);
662 408 }
663 409
664 - static int need_to_gc(struct gc_config *cfg, struct strvec *repack_args)
665 - {
666 - /*
667 - * Setting gc.auto to 0 or negative can disable the
668 - * automatic gc.
669 - */
670 - if (cfg->gc_auto_threshold <= 0)
671 - return 0;
672 -
673 - /*
674 - * If there are too many loose objects, but not too many
675 - * packs, we run "repack -d -l". If there are too many packs,
676 - * we run "repack -A -d -l". Otherwise we tell the caller
677 - * there is no need.
678 - */
679 - if (too_many_packs(cfg)) {
680 - struct string_list keep_pack = STRING_LIST_INIT_NODUP;
681 -
682 - if (cfg->big_pack_threshold) {
683 - find_base_packs(&keep_pack, cfg->big_pack_threshold);
684 - if (keep_pack.nr >= cfg->gc_auto_pack_limit) {
685 - cfg->big_pack_threshold = 0;
686 - string_list_clear(&keep_pack, 0);
687 - find_base_packs(&keep_pack, 0);
688 - }
689 - } else {
690 - struct packed_git *p = find_base_packs(&keep_pack, 0);
691 - uint64_t mem_have, mem_want;
692 -
693 - mem_have = total_ram();
694 - mem_want = estimate_repack_memory(cfg, p);
695 -
696 - /*
697 - * Only allow 1/2 of memory for pack-objects, leave
698 - * the rest for the OS and other processes in the
699 - * system.
700 - */
701 - if (!mem_have || mem_want < mem_have / 2)
702 - string_list_clear(&keep_pack, 0);
703 - }
704 -
705 - add_repack_all_option(cfg, &keep_pack, repack_args);
706 - string_list_clear(&keep_pack, 0);
707 - } else if (too_many_loose_objects(cfg->gc_auto_threshold))
708 - add_repack_incremental_option(repack_args);
709 - else
710 - return 0;
711 -
712 - if (run_hooks(the_repository, "pre-auto-gc"))
713 - return 0;
714 - return 1;
715 - }
410 + #define OPTIMIZE_FIELDS_FROM_GC_CONFIG(cfg, aggressive) \
411 + .prune_expire = (cfg)->prune_expire, \
412 + .expire_to = (cfg)->repack_expire_to, \
413 + .cruft_packs = (cfg)->cruft_packs, \
414 + .max_cruft_size = (cfg)->max_cruft_size, \
415 + .window = (aggressive) ? (cfg)->aggressive_window : 0, \
416 + .depth = (aggressive) ? (cfg)->aggressive_depth : 0
716 417
717 418 /* return NULL on success, else hostname running the gc */
718 419 static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
@@ -841,6 +542,27 @@ static int gc_foreground_tasks(struct maintenance_run_opts *opts,
841 542 return 0;
842 543 }
843 544
545 + static int maintenance_task_odb(struct maintenance_run_opts *opts,
546 + struct gc_config *cfg,
547 + int keep_largest_pack,
548 + int aggressive)
549 + {
550 + struct odb_optimize_options odb_opts = {
551 + .strategy = ODB_OPTIMIZE_INCREMENTAL,
552 + .keep_largest_pack = keep_largest_pack,
553 + OPTIMIZE_FIELDS_FROM_GC_CONFIG(cfg, aggressive),
554 + };
555 +
556 + if (opts->auto_flag)
557 + odb_opts.flags |= ODB_OPTIMIZE_AUTO;
558 + if (!opts->quiet)
559 + odb_opts.flags |= ODB_OPTIMIZE_VERBOSE;
560 + if (aggressive)
561 + odb_opts.flags |= ODB_OPTIMIZE_NO_REUSE_DELTAS;
562 +
563 + return odb_optimize(the_repository->objects, &odb_opts);
564 + }
565 +
844 566 int cmd_gc(int argc,
845 567 const char **argv,
846 568 const char *prefix,
@@ -854,7 +576,6 @@ int cmd_gc(int argc,
854 576 int keep_largest_pack = -1;
855 577 int skip_foreground_tasks = 0;
856 578 timestamp_t dummy;
857 - struct strvec repack_args = STRVEC_INIT;
858 579 struct maintenance_run_opts opts = MAINTENANCE_RUN_OPTS_INIT;
859 580 struct gc_config cfg = GC_CONFIG_INIT;
860 581 const char *prune_expire_sentinel = "sentinel";
@@ -894,8 +615,6 @@ int cmd_gc(int argc,
894 615 show_usage_with_options_if_asked(argc, argv,
895 616 builtin_gc_usage, builtin_gc_options);
896 617
897 - strvec_pushl(&repack_args, "repack", "-d", "-l", NULL);
898 -
899 618 gc_config(&cfg);
900 619
901 620 if (parse_expiry_date(cfg.gc_log_expire, &gc_log_expire_time))
@@ -916,24 +635,20 @@ int cmd_gc(int argc,
916 635 if (cfg.prune_expire && parse_expiry_date(cfg.prune_expire, &dummy))
917 636 die(_("failed to parse prune expiry value %s"), cfg.prune_expire);
918 637
919 - if (aggressive) {
920 - strvec_push(&repack_args, "-f");
921 - if (cfg.aggressive_depth > 0)
922 - strvec_pushf(&repack_args, "--depth=%d", cfg.aggressive_depth);
923 - if (cfg.aggressive_window > 0)
924 - strvec_pushf(&repack_args, "--window=%d", cfg.aggressive_window);
925 - }
926 - if (opts.quiet)
927 - strvec_push(&repack_args, "-q");
928 -
929 638 if (opts.auto_flag) {
639 + struct odb_optimize_options optimize_opts = {
640 + .strategy = ODB_OPTIMIZE_INCREMENTAL,
641 + OPTIMIZE_FIELDS_FROM_GC_CONFIG(&cfg, 0),
642 + };
643 +
930 644 if (cfg.detach_auto && opts.detach < 0)
931 645 opts.detach = 1;
932 646
933 647 /*
934 648 * Auto-gc should be least intrusive as possible.
935 649 */
936 - if (!need_to_gc(&cfg, &repack_args)) {
650 + if (!odb_optimize_required(the_repository->objects, &optimize_opts) ||
651 + run_hooks(the_repository, "pre-auto-gc")) {
937 652 ret = 0;
938 653 goto out;
939 654 }
@@ -945,18 +660,6 @@ int cmd_gc(int argc,
945 660 fprintf(stderr, _("Auto packing the repository for optimum performance.\n"));
946 661 fprintf(stderr, _("See \"git help gc\" for manual housekeeping.\n"));
947 662 }
948 - } else {
949 - struct string_list keep_pack = STRING_LIST_INIT_NODUP;
950 -
951 - if (keep_largest_pack != -1) {
952 - if (keep_largest_pack)
953 - find_base_packs(&keep_pack, 0);
954 - } else if (cfg.big_pack_threshold) {
955 - find_base_packs(&keep_pack, cfg.big_pack_threshold);
956 - }
957 -
958 - add_repack_all_option(&cfg, &keep_pack, &repack_args);
959 - string_list_clear(&keep_pack, 0);
960 663 }
961 664
962 665 if (opts.detach > 0) {
@@ -1012,33 +715,6 @@ int cmd_gc(int argc,
1012 715 if (opts.detach <= 0 && !skip_foreground_tasks)
1013 716 gc_foreground_tasks(&opts, &cfg);
1014 717
1015 - if (!the_repository->repository_format_precious_objects) {
1016 - struct child_process repack_cmd = CHILD_PROCESS_INIT;
1017 -
1018 - repack_cmd.git_cmd = 1;
1019 - repack_cmd.odb_to_close = the_repository->objects;
1020 - strvec_pushv(&repack_cmd.args, repack_args.v);
1021 - if (run_command(&repack_cmd))
1022 - die(FAILED_RUN, repack_args.v[0]);
1023 -
1024 - if (cfg.prune_expire) {
1025 - struct child_process prune_cmd = CHILD_PROCESS_INIT;
1026 -
1027 - strvec_pushl(&prune_cmd.args, "prune", "--expire", NULL);
1028 - /* run `git prune` even if using cruft packs */
1029 - strvec_push(&prune_cmd.args, cfg.prune_expire);
1030 - if (opts.quiet)
1031 - strvec_push(&prune_cmd.args, "--no-progress");
1032 - if (repo_has_promisor_remote(the_repository))
1033 - strvec_push(&prune_cmd.args,
1034 - "--exclude-promisor-objects");
1035 - prune_cmd.git_cmd = 1;
1036 -
1037 - if (run_command(&prune_cmd))
1038 - die(FAILED_RUN, prune_cmd.args.v[0]);
1039 - }
1040 - }
1041 -
1042 718 if (cfg.prune_worktrees_expire &&
1043 719 maintenance_task_worktree_prune(&opts, &cfg))
1044 720 die(FAILED_RUN, "worktree");
@@ -1046,6 +722,9 @@ int cmd_gc(int argc,
1046 722 if (maintenance_task_rerere_gc(&opts, &cfg))
1047 723 die(FAILED_RUN, "rerere");
1048 724
725 + if (maintenance_task_odb(&opts, &cfg, keep_largest_pack, aggressive))
726 + die(NULL);
727 +
1049 728 report_garbage = report_pack_garbage;
1050 729 odb_reprepare(the_repository->objects);
1051 730 if (pack_garbage.nr > 0) {
@@ -1058,10 +737,6 @@ int cmd_gc(int argc,
1058 737 !opts.quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0,
1059 738 NULL);
1060 739
1061 - if (opts.auto_flag && too_many_loose_objects(cfg.gc_auto_threshold))
1062 - warning(_("There are too many unreachable loose objects; "
1063 - "run 'git prune' to remove them."));
1064 -
1065 740 if (!daemonized) {
1066 741 char *path = repo_git_path(the_repository, "gc.log");
1067 742 unlink(path);
@@ -1070,7 +745,6 @@ int cmd_gc(int argc,
1070 745
1071 746 out:
1072 747 maintenance_run_opts_release(&opts);
1073 - strvec_clear(&repack_args);
1074 748 gc_config_release(&cfg);
1075 749 return 0;
1076 750 }
@@ -1273,15 +947,11 @@ static int maintenance_task_gc_background(struct maintenance_run_opts *opts,
1273 947
1274 948 static int gc_condition(struct gc_config *cfg)
1275 949 {
1276 - /*
1277 - * Note that it's fine to drop the repack arguments here, as we execute
1278 - * git-gc(1) as a separate child process anyway. So it knows to compute
1279 - * these arguments again.
1280 - */
1281 - struct strvec repack_args = STRVEC_INIT;
1282 - int ret = need_to_gc(cfg, &repack_args);
1283 - strvec_clear(&repack_args);
1284 - return ret;
950 + struct odb_optimize_options opts = {
951 + .strategy = ODB_OPTIMIZE_INCREMENTAL,
952 + OPTIMIZE_FIELDS_FROM_GC_CONFIG(cfg, 0),
953 + };
954 + return odb_optimize_required(the_repository->objects, &opts);
1285 955 }
1286 956
1287 957 static int prune_packed(struct maintenance_run_opts *opts)
@@ -1570,104 +1240,24 @@ static int maintenance_task_incremental_repack(struct maintenance_run_opts *opts
1570 1240 static int maintenance_task_geometric_repack(struct maintenance_run_opts *opts,
1571 1241 struct gc_config *cfg)
1572 1242 {
1573 - struct pack_geometry geometry = {
1574 - .split_factor = 2,
1575 - };
1576 - struct pack_objects_args po_args = {
1577 - .local = 1,
1243 + struct odb_optimize_options odb_opts = {
1244 + .strategy = ODB_OPTIMIZE_GEOMETRIC,
1245 + OPTIMIZE_FIELDS_FROM_GC_CONFIG(cfg, 0),
1578 1246 };
1579 - struct existing_packs existing_packs = EXISTING_PACKS_INIT;
1580 - struct string_list kept_packs = STRING_LIST_INIT_DUP;
1581 - struct child_process child = CHILD_PROCESS_INIT;
1582 - int ret;
1583 -
1584 - repo_config_get_int(the_repository, "maintenance.geometric-repack.splitFactor",
1585 - &geometry.split_factor);
1586 -
1587 - existing_packs.repo = the_repository;
1588 - existing_packs_collect(&existing_packs, &kept_packs);
1589 - pack_geometry_init(&geometry, &existing_packs, &po_args);
1590 - pack_geometry_split(&geometry);
1591 -
1592 - child.git_cmd = 1;
1593 - child.odb_to_close = the_repository->objects;
1594 -
1595 - strvec_pushl(&child.args, "repack", "-d", "-l", NULL);
1596 - if (geometry.split < geometry.pack_nr)
1597 - strvec_pushf(&child.args, "--geometric=%d",
1598 - geometry.split_factor);
1599 - else
1600 - add_repack_all_option(cfg, NULL, &child.args);
1601 - if (opts->quiet)
1602 - strvec_push(&child.args, "--quiet");
1603 - if (the_repository->settings.core_multi_pack_index)
1604 - strvec_push(&child.args, "--write-midx");
1605 -
1606 - if (run_command(&child)) {
1607 - ret = error(_("failed to perform geometric repack"));
1608 - goto out;
1609 - }
1610 1247
1611 - ret = 0;
1248 + if (!opts->quiet)
1249 + odb_opts.flags |= ODB_OPTIMIZE_VERBOSE;
1612 1250
1613 - out:
1614 - existing_packs_release(&existing_packs);
1615 - pack_geometry_release(&geometry);
1616 - return ret;
1251 + return odb_optimize(the_repository->objects, &odb_opts);
1617 1252 }
1618 1253
1619 - static int geometric_repack_auto_condition(struct gc_config *cfg UNUSED)
1254 + static int geometric_repack_auto_condition(struct gc_config *cfg)
1620 1255 {
1621 - struct pack_geometry geometry = {
1622 - .split_factor = 2,
1623 - };
1624 - struct pack_objects_args po_args = {
1625 - .local = 1,
1256 + struct odb_optimize_options opts = {
1257 + .strategy = ODB_OPTIMIZE_GEOMETRIC,
1258 + OPTIMIZE_FIELDS_FROM_GC_CONFIG(cfg, 0),
1626 1259 };
1627 - struct existing_packs existing_packs = EXISTING_PACKS_INIT;
1628 - struct string_list kept_packs = STRING_LIST_INIT_DUP;
1629 - int auto_value = 100;
1630 - int ret;
1631 -
1632 - repo_config_get_int(the_repository, "maintenance.geometric-repack.auto",
1633 - &auto_value);
1634 - if (!auto_value)
1635 - return 0;
1636 - if (auto_value < 0)
1637 - return 1;
1638 -
1639 - repo_config_get_int(the_repository, "maintenance.geometric-repack.splitFactor",
1640 - &geometry.split_factor);
1641 -
1642 - existing_packs.repo = the_repository;
1643 - existing_packs_collect(&existing_packs, &kept_packs);
1644 - pack_geometry_init(&geometry, &existing_packs, &po_args);
1645 - pack_geometry_split(&geometry);
1646 -
1647 - /*
1648 - * When we'd merge at least two packs with one another we always
1649 - * perform the repack.
1650 - */
1651 - if (geometry.split) {
1652 - ret = 1;
1653 - goto out;
1654 - }
1655 -
1656 - /*
1657 - * Otherwise, we estimate the number of loose objects to determine
1658 - * whether we want to create a new packfile or not.
1659 - */
1660 - if (too_many_loose_objects(auto_value)) {
1661 - ret = 1;
1662 - goto out;
1663 - }
1664 -
1665 - ret = 0;
1666 -
1667 - out:
1668 - existing_packs_release(&existing_packs);
1669 - pack_geometry_release(&geometry);
1670 - return ret;
1260 + return odb_optimize_required(the_repository->objects, &opts);
1671 1261 }
1672 1262
1673 1263 typedef int (*maintenance_task_fn)(struct maintenance_run_opts *opts,
@@ -1755,11 +1345,18 @@ enum task_phase {
1755 1345 TASK_PHASE_BACKGROUND,
1756 1346 };
1757 1347
1348 + enum auto_gc_hook_result {
1349 + AUTO_GC_HOOK_UNDECIDED = 0,
1350 + AUTO_GC_HOOK_RUN = 1,
1351 + AUTO_GC_HOOK_SKIP = 2,
1352 + };
1353 +
1758 1354 static int maybe_run_task(const struct maintenance_task *task,
1759 1355 struct repository *repo,
1760 1356 struct maintenance_run_opts *opts,
1761 1357 struct gc_config *cfg,
1762 - enum task_phase phase)
1358 + enum task_phase phase,
1359 + enum auto_gc_hook_result *auto_gc_hook_result)
1763 1360 {
1764 1361 int foreground = (phase == TASK_PHASE_FOREGROUND);
1765 1362 maintenance_task_fn fn = foreground ? task->foreground : task->background;
@@ -1768,9 +1365,19 @@ static int maybe_run_task(const struct maintenance_task *task,
1768 1365
1769 1366 if (!fn)
1770 1367 return 0;
1771 - if (opts->auto_flag &&
1772 - (!task->auto_condition || !task->auto_condition(cfg)))
1773 - return 0;
1368 + if (opts->auto_flag) {
1369 + if (*auto_gc_hook_result == AUTO_GC_HOOK_SKIP)
1370 + return 0;
1371 +
1372 + if (!task->auto_condition || !task->auto_condition(cfg))
1373 + return 0;
1374 +
1375 + if (*auto_gc_hook_result == AUTO_GC_HOOK_UNDECIDED)
1376 + *auto_gc_hook_result = run_hooks(repo, "pre-auto-gc") ?
1377 + AUTO_GC_HOOK_SKIP : AUTO_GC_HOOK_RUN;
1378 + if (*auto_gc_hook_result == AUTO_GC_HOOK_SKIP)
1379 + return 0;
1380 + }
1774 1381
1775 1382 trace2_region_enter(region, task->name, repo);
1776 1383 if (fn(opts, cfg)) {
@@ -1789,6 +1396,7 @@ static int maintenance_run_tasks(struct maintenance_run_opts *opts,
1789 1396 struct lock_file lk;
1790 1397 struct repository *r = the_repository;
1791 1398 char *lock_path = xstrfmt("%s/maintenance", r->objects->sources->path);
1399 + enum auto_gc_hook_result auto_gc_hook_result = AUTO_GC_HOOK_UNDECIDED;
1792 1400
1793 1401 if (repo_hold_lock_file_for_update(r, &lk, lock_path, LOCK_NO_DEREF) < 0) {
1794 1402 /*
@@ -1808,7 +1416,7 @@ static int maintenance_run_tasks(struct maintenance_run_opts *opts,
1808 1416
1809 1417 for (size_t i = 0; i < opts->tasks_nr; i++)
1810 1418 if (maybe_run_task(&tasks[opts->tasks[i]], r, opts, cfg,
1811 - TASK_PHASE_FOREGROUND))
1419 + TASK_PHASE_FOREGROUND, &auto_gc_hook_result))
1812 1420 result = 1;
1813 1421
1814 1422 /* Failure to daemonize is ok, we'll continue in foreground. */
@@ -1820,7 +1428,7 @@ static int maintenance_run_tasks(struct maintenance_run_opts *opts,
1820 1428
1821 1429 for (size_t i = 0; i < opts->tasks_nr; i++)
1822 1430 if (maybe_run_task(&tasks[opts->tasks[i]], r, opts, cfg,
1823 - TASK_PHASE_BACKGROUND))
1431 + TASK_PHASE_BACKGROUND, &auto_gc_hook_result))
1824 1432 result = 1;
1825 1433
1826 1434 rollback_lock_file(&lk);
modified builtin/grep.c
@@ -463,16 +463,6 @@ static int grep_submodule(struct grep_opt *opt,
463 463 ALLOC_GROW(repos_to_free, repos_to_free_nr + 1, repos_to_free_alloc);
464 464 repos_to_free[repos_to_free_nr++] = subrepo;
465 465
466 - /*
467 - * NEEDSWORK: repo_read_gitmodules() might call
468 - * odb_add_to_alternates_memory() via config_from_gitmodules(). This
469 - * operation causes a race condition with concurrent object readings
470 - * performed by the worker threads. That's why we need obj_read_lock()
471 - * here. It should be removed once it's no longer necessary to add the
472 - * subrepo's odbs to the in-memory alternates list.
473 - */
474 - obj_read_lock();
475 -
476 466 /*
477 467 * NEEDSWORK: when reading a submodule, the sparsity settings in the
478 468 * superproject are incorrectly forgotten or misused. For example:
@@ -498,18 +488,14 @@ static int grep_submodule(struct grep_opt *opt,
498 488 * ditto.
499 489 *
500 490 * Note that this list is not exhaustive.
491 + *
492 + * NEEDSWORK: initializing the subrepository is not thread-safe,
493 + * either, as it may cause us to race around `get_main_ref_store()`. We
494 + * thus need to hold the object-read lock to serialize all readers with
495 + * one another.
501 496 */
497 + obj_read_lock();
502 498 repo_read_gitmodules(subrepo, 0);
503 -
504 - /*
505 - * All code paths tested by test code no longer need submodule ODBs to
506 - * be added as alternates, but add it to the list just in case.
507 - * Submodule ODBs added through add_submodule_odb_by_path() will be
508 - * lazily registered as alternates when needed (and except in an
509 - * unexpected code interaction, it won't be needed).
510 - */
511 - odb_add_submodule_source_by_path(the_repository->objects,
512 - subrepo->objects->sources->path);
513 499 obj_read_unlock();
514 500
515 501 memcpy(&subopt, opt, sizeof(subopt));
@@ -897,7 +883,7 @@ static int grep_objects(struct grep_opt *opt, const struct pathspec *pathspec,
897 883 if (recurse_submodules) {
898 884 submodule_free(opt->repo);
899 885 obj_read_lock();
900 - gitmodules_config_oid(&real_obj->oid);
886 + gitmodules_config_oid(the_repository, &real_obj->oid);
901 887 obj_read_unlock();
902 888 }
903 889 if (grep_object(opt, pathspec, real_obj, list->objects[i].name,
modified builtin/history.c
@@ -161,6 +161,7 @@ out:
161 161 free_commit_extra_headers(original_extra_headers);
162 162 strbuf_release(&commit_message);
163 163 free(original_author);
164 + repo_unuse_commit_buffer(repo, commit_with_message, original_message);
164 165 return ret;
165 166 }
166 167
@@ -786,6 +787,10 @@ static int write_ondisk_index(struct repository *repo,
786 787 opts.dst_index = &index;
787 788
788 789 tree = repo_parse_tree_indirect(repo, oid);
790 + if (!tree) {
791 + ret = error(_("unable to parse tree %s"), oid_to_hex(oid));
792 + goto out;
793 + }
789 794 init_tree_desc(&tree_desc, &tree->object.oid, tree->buffer, tree->size);
790 795
791 796 if (unpack_trees(1, &tree_desc, &opts)) {
modified builtin/index-pack.c
@@ -763,7 +763,7 @@ static void find_ref_delta_children(const struct object_id *oid,
763 763
764 764 struct compare_data {
765 765 struct object_entry *entry;
766 - struct odb_read_stream *st;
766 + struct odb_stream *st;
767 767 unsigned char *buf;
768 768 unsigned long buf_size;
769 769 };
@@ -780,7 +780,7 @@ static int compare_objects(const unsigned char *buf, unsigned long size,
780 780 }
781 781
782 782 while (size) {
783 - ssize_t len = odb_read_stream_read(data->st, data->buf, size);
783 + ssize_t len = odb_stream_read(data->st, data->buf, size);
784 784 if (len == 0)
785 785 die(_("SHA1 COLLISION FOUND WITH %s !"),
786 786 oid_to_hex(&data->entry->idx.oid));
@@ -806,14 +806,14 @@ static int check_collison(struct object_entry *entry)
806 806
807 807 memset(&data, 0, sizeof(data));
808 808 data.entry = entry;
809 - data.st = odb_read_stream_open(the_repository->objects, &entry->idx.oid, NULL);
809 + data.st = odb_stream_from_object(the_repository->objects, &entry->idx.oid, NULL);
810 810 if (!data.st)
811 811 return -1;
812 812 if (data.st->size != entry->size || data.st->type != entry->type)
813 813 die(_("SHA1 COLLISION FOUND WITH %s !"),
814 814 oid_to_hex(&entry->idx.oid));
815 815 unpack_data(entry, compare_objects, &data);
816 - odb_read_stream_close(data.st);
816 + odb_stream_close(data.st);
817 817 free(data.buf);
818 818 return 0;
819 819 }
@@ -1886,7 +1886,7 @@ static void repack_local_links(void)
1886 1886 int cmd_index_pack(int argc,
1887 1887 const char **argv,
1888 1888 const char *prefix,
1889 - struct repository *repo UNUSED)
1889 + struct repository *repo)
1890 1890 {
1891 1891 int i, fix_thin_pack = 0, verify = 0, stat_only = 0, rev_index;
1892 1892 const char *curr_index;
@@ -1903,15 +1903,15 @@ int cmd_index_pack(int argc,
1903 1903 int report_end_of_input = 0;
1904 1904 int hash_algo = 0;
1905 1905
1906 + show_usage_if_asked(argc, argv, index_pack_usage);
1907 +
1906 1908 /*
1907 1909 * index-pack never needs to fetch missing objects except when
1908 1910 * REF_DELTA bases are missing (which are explicitly handled). It only
1909 1911 * accesses the repo to do hash collision checks and to check which
1910 1912 * REF_DELTA bases need to be fetched.
1911 1913 */
1912 - fetch_if_missing = 0;
1913 -
1914 - show_usage_if_asked(argc, argv, index_pack_usage);
1914 + (repo ? repo : the_repository)->fetch_if_missing = 0;
1915 1915
1916 1916 disable_replace_refs();
1917 1917
modified builtin/last-modified.c
@@ -290,7 +290,8 @@ static void process_parent(struct last_modified *lm,
290 290 {
291 291 struct bitmap *active_p;
292 292
293 - repo_parse_commit(lm->rev.repo, parent);
293 + if (repo_parse_commit(lm->rev.repo, parent))
294 + return;
294 295 active_p = active_paths_for(lm, parent);
295 296
296 297 /*
@@ -414,12 +415,14 @@ static int last_modified_run(struct last_modified *lm)
414 415 * Otherwise, make sure that 'c' isn't reachable from anything
415 416 * in the '--not' queue.
416 417 */
417 - repo_parse_commit(lm->rev.repo, c);
418 + if (repo_parse_commit(lm->rev.repo, c))
419 + goto cleanup;
418 420
419 421 while ((n = prio_queue_get(&not_queue))) {
420 422 struct commit_list *np;
421 423
422 - repo_parse_commit(lm->rev.repo, n);
424 + if (repo_parse_commit(lm->rev.repo, n))
425 + continue;
423 426
424 427 for (np = n->parents; np; np = np->next) {
425 428 if (!(np->item->object.flags & PARENT2)) {
modified builtin/merge.c
@@ -1373,7 +1373,7 @@ int cmd_merge(int argc,
1373 1373 struct commit_list *common = NULL;
1374 1374 const char *best_strategy = NULL, *wt_strategy = NULL;
1375 1375 struct commit_list *remoteheads = NULL, *p;
1376 - void *branch_to_free;
1376 + void *branch_to_free, *argv_to_free = NULL;
1377 1377 int orig_argc = argc;
1378 1378 int merge_log_config = -1;
1379 1379
@@ -1517,8 +1517,10 @@ int cmd_merge(int argc,
1517 1517 option_commit = 1;
1518 1518
1519 1519 if (!argc) {
1520 - if (default_to_upstream)
1520 + if (default_to_upstream) {
1521 1521 argc = setup_with_upstream(&argv);
1522 + argv_to_free = argv;
1523 + }
1522 1524 else
1523 1525 die(_("No commit specified and merge.defaultToUpstream not set."));
1524 1526 } else if (argc == 1 && !strcmp(argv[0], "-")) {
@@ -1880,6 +1882,7 @@ done:
1880 1882 }
1881 1883 strbuf_release(&buf);
1882 1884 free(branch_to_free);
1885 + free(argv_to_free);
1883 1886 free(pull_twohead);
1884 1887 free(pull_octopus);
1885 1888 discard_index(the_repository->index);
modified builtin/mktree.c
@@ -125,7 +125,6 @@ static void mktree_line(struct repository *repo, char *buf, int nul_term_line, i
125 125 oi.typep = &obj_type;
126 126 if (odb_read_object_info_extended(repo->objects, &oid, &oi,
127 127 OBJECT_INFO_LOOKUP_REPLACE |
128 - OBJECT_INFO_QUICK |
129 128 OBJECT_INFO_SKIP_FETCH_OBJECT) < 0)
130 129 obj_type = -1;
131 130
@@ -200,8 +199,11 @@ int cmd_mktree(int ac,
200 199 puts(oid_to_hex(&oid));
201 200 fflush(stdout);
202 201 }
202 + for (int i = 0; i < used; i++)
203 + free(entries[i]);
203 204 used=0; /* reset tree entry buffer for re-use in batch mode */
204 205 }
206 + free(entries);
205 207 strbuf_release(&sb);
206 208
207 209 return 0;
modified builtin/multi-pack-index.c
@@ -90,7 +90,8 @@ static struct odb_source_files *handle_object_dir_option(struct repository *repo
90 90 {
91 91 struct odb_source *source = odb_find_source(repo->objects, opts.object_dir);
92 92 if (!source)
93 - source = odb_add_to_alternates_memory(repo->objects, opts.object_dir);
93 + die(_("object directory is not an alternate of the current repository: '%s'"),
94 + opts.object_dir);
94 95 return odb_source_files_downcast(source);
95 96 }
96 97
modified builtin/mv.c
@@ -22,6 +22,7 @@
22 22 #include "string-list.h"
23 23 #include "parse-options.h"
24 24 #include "read-cache-ll.h"
25 + #include "symlinks.h"
25 26
26 27 #include "setup.h"
27 28 #include "strvec.h"
@@ -48,6 +49,12 @@ enum update_mode {
48 49 MOVE_VIA_PARENT_DIR = (1 << 5),
49 50 };
50 51
52 + static int needs_worktree_rename(enum update_mode mode, enum update_mode dst_mode)
53 + {
54 + return !(mode & (INDEX | SPARSE | SKIP_WORKTREE_DIR)) &&
55 + !(dst_mode & (SKIP_WORKTREE_DIR | SPARSE));
56 + }
57 +
51 58 #define DUP_BASENAME 1
52 59 #define KEEP_TRAILING_SLASH 2
53 60
@@ -443,6 +450,41 @@ dir_check:
443 450 bad = _("destination directory does not exist");
444 451 goto act_on_entry;
445 452 }
453 + if (has_symlink_leading_path(dst, strlen(dst))) {
454 + bad = _("destination is beyond a symbolic link");
455 + goto act_on_entry;
456 + }
457 +
458 + /*
459 + * If we are going to move SRC to DST on disk, DST's leading
460 + * directories must already exist.
461 + */
462 + if (needs_worktree_rename(modes[i], dst_mode)) {
463 + const char *slash_ = strrchr(dst, '/');
464 +
465 + if (slash_) {
466 + struct stat dir_st;
467 + char *dst_dir = xstrdup(dst);
468 + char *slash = &dst_dir[slash_ - dst];
469 +
470 + *slash = '\0';
471 + if (lstat(dst_dir, &dir_st) < 0) {
472 + /*
473 + * other errors fall through to rename(),
474 + * which reports them
475 + */
476 + if (errno == ENOENT || errno == ENOTDIR)
477 + bad = _("destination directory does not exist");
478 + } else if (!S_ISDIR(dir_st.st_mode)) {
479 + bad = _("destination is not a directory");
480 + }
481 +
482 + free(dst_dir);
483 + }
484 +
485 + if (bad)
486 + goto act_on_entry;
487 + }
446 488
447 489 if (ignore_sparse &&
448 490 (dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
@@ -544,12 +586,11 @@ remove_entry:
544 586 printf(_("Renaming %s to %s\n"), src, dst);
545 587 if (show_only)
546 588 continue;
547 - if (!(mode & (INDEX | SPARSE | SKIP_WORKTREE_DIR)) &&
548 - !(dst_mode & (SKIP_WORKTREE_DIR | SPARSE)) &&
589 + if (needs_worktree_rename(mode, dst_mode) &&
549 590 rename(src, dst) < 0) {
550 591 if (ignore_errors)
551 592 continue;
552 - die_errno(_("renaming '%s' failed"), src);
593 + die_errno(_("renaming '%s' to '%s' failed"), src, dst);
553 594 }
554 595 if (submodule_gitfiles[i]) {
555 596 if (!update_path_in_gitmodules(src, dst))
modified builtin/pack-objects.c
@@ -261,8 +261,8 @@ static int exclude_promisor_objects_best_effort;
261 261
262 262 static int use_delta_islands;
263 263
264 - static unsigned long delta_cache_size = 0;
265 - static unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
264 + static size_t delta_cache_size = 0;
265 + static size_t max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
266 266 static unsigned long cache_max_small_delta_size = 1000;
267 267
268 268 static unsigned long window_memory_limit = 0;
@@ -354,7 +354,8 @@ static void index_commit_for_bitmap(struct commit *commit)
354 354
355 355 static void *get_delta(struct object_entry *entry)
356 356 {
357 - unsigned long size, base_size, delta_size;
357 + unsigned long size, base_size;
358 + size_t delta_size;
358 359 void *buf, *base_buf, *delta_buf;
359 360 enum object_type type;
360 361 size_t size_st = 0, base_size_st = 0;
@@ -411,7 +412,7 @@ static unsigned long do_compress(void **pptr, unsigned long size)
411 412 return stream.total_out;
412 413 }
413 414
414 - static unsigned long write_large_blob_data(struct odb_read_stream *st, struct hashfile *f,
415 + static unsigned long write_large_blob_data(struct odb_stream *st, struct hashfile *f,
415 416 const struct object_id *oid)
416 417 {
417 418 git_zstream stream;
@@ -425,7 +426,7 @@ static unsigned long write_large_blob_data(struct odb_read_stream *st, struct ha
425 426 for (;;) {
426 427 ssize_t readlen;
427 428 int zret = Z_OK;
428 - readlen = odb_read_stream_read(st, ibuf, sizeof(ibuf));
429 + readlen = odb_stream_read(st, ibuf, sizeof(ibuf));
429 430 if (readlen == -1)
430 431 die(_("unable to read %s"), oid_to_hex(oid));
431 432
@@ -488,7 +489,7 @@ static void copy_pack_data(struct hashfile *f,
488 489 off_t len)
489 490 {
490 491 unsigned char *in;
491 - unsigned long avail;
492 + size_t avail;
492 493
493 494 while (len) {
494 495 in = use_pack(p, w_curs, offset, &avail);
@@ -521,15 +522,15 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
521 522 unsigned hdrlen;
522 523 enum object_type type;
523 524 void *buf;
524 - struct odb_read_stream *st = NULL;
525 + struct odb_stream *st = NULL;
525 526 const unsigned hashsz = the_hash_algo->rawsz;
526 527
527 528 if (!usable_delta) {
528 529 if (oe_type(entry) == OBJ_BLOB &&
529 530 oe_size_greater_than(&to_pack, entry,
530 531 repo_settings_get_big_file_threshold(the_repository)) &&
531 - (st = odb_read_stream_open(the_repository->objects, &entry->idx.oid,
532 - NULL)) != NULL) {
532 + (st = odb_stream_from_object(the_repository->objects, &entry->idx.oid,
533 + NULL)) != NULL) {
533 534 buf = NULL;
534 535 type = st->type;
535 536 size = st->size;
@@ -589,7 +590,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
589 590 dheader[--pos] = 128 | (--ofs & 127);
590 591 if (limit && hdrlen + sizeof(dheader) - pos + datalen + hashsz >= limit) {
591 592 if (st)
592 - odb_read_stream_close(st);
593 + odb_stream_close(st);
593 594 free(buf);
594 595 return 0;
595 596 }
@@ -603,7 +604,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
603 604 */
604 605 if (limit && hdrlen + hashsz + datalen + hashsz >= limit) {
605 606 if (st)
606 - odb_read_stream_close(st);
607 + odb_stream_close(st);
607 608 free(buf);
608 609 return 0;
609 610 }
@@ -613,7 +614,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
613 614 } else {
614 615 if (limit && hdrlen + datalen + hashsz >= limit) {
615 616 if (st)
616 - odb_read_stream_close(st);
617 + odb_stream_close(st);
617 618 free(buf);
618 619 return 0;
619 620 }
@@ -621,7 +622,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
621 622 }
622 623 if (st) {
623 624 datalen = write_large_blob_data(st, f, &entry->idx.oid);
624 - odb_read_stream_close(st);
625 + odb_stream_close(st);
625 626 } else {
626 627 hashwrite(f, buf, datalen);
627 628 free(buf);
@@ -1337,6 +1338,7 @@ static void write_pack_file(void)
1337 1338 uint32_t nr_remaining = nr_result;
1338 1339 time_t last_mtime = 0;
1339 1340 struct object_entry **write_order;
1341 + off_t bytes_written = 0;
1340 1342
1341 1343 if (progress > pack_to_stdout)
1342 1344 progress_state = start_progress(the_repository,
@@ -1389,6 +1391,8 @@ static void write_pack_file(void)
1389 1391 display_progress(progress_state, written);
1390 1392 }
1391 1393
1394 + bytes_written += hashfile_total(f) +
1395 + the_repository->hash_algo->rawsz;
1392 1396 if (pack_to_stdout) {
1393 1397 /*
1394 1398 * We never fsync when writing to stdout since we may
@@ -1510,6 +1514,8 @@ static void write_pack_file(void)
1510 1514 written, nr_result);
1511 1515 trace2_data_intmax("pack-objects", the_repository,
1512 1516 "write_pack_file/wrote", nr_result);
1517 + trace2_data_intmax("pack-objects", the_repository,
1518 + "write_pack_file/wrote_bytes", bytes_written);
1513 1519 }
1514 1520
1515 1521 static int no_try_delta(const char *path)
@@ -1759,7 +1765,7 @@ static int want_object_in_pack_mtime(const struct object_id *oid,
1759 1765 struct odb_source *source = the_repository->objects->sources->next;
1760 1766 for (; source; source = source->next) {
1761 1767 struct odb_source_files *files = odb_source_files_downcast(source);
1762 - if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0))
1768 + if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0, NULL))
1763 1769 return 0;
1764 1770 }
1765 1771 }
@@ -1779,14 +1785,12 @@ static int want_object_in_pack_mtime(const struct object_id *oid,
1779 1785 *found_offset = 0;
1780 1786 }
1781 1787
1782 - odb_prepare_alternates(the_repository->objects);
1783 -
1784 1788 for (source = the_repository->objects->sources; source; source = source->next) {
1785 1789 struct odb_source_files *files = odb_source_files_downcast(source);
1786 1790 struct multi_pack_index *m = get_multi_pack_index(files->packed);
1787 1791 struct pack_entry e;
1788 1792
1789 - if (m && fill_midx_entry(m, oid, &e)) {
1793 + if (m && midx_fill_entry(m, oid, &e, NULL) == MIDX_FILL_HIT) {
1790 1794 want = want_object_in_pack_one(e.p, oid, exclude, found_pack, found_offset, found_mtime);
1791 1795 if (want != -1)
1792 1796 return want;
@@ -2259,8 +2263,7 @@ static void check_object(struct object_entry *entry, uint32_t object_index)
2259 2263 int have_base = 0;
2260 2264 struct object_id base_ref;
2261 2265 struct object_entry *base_entry;
2262 - unsigned long used, used_0;
2263 - unsigned long avail;
2266 + size_t used, used_0, avail;
2264 2267 off_t ofs;
2265 2268 unsigned char *buf, c;
2266 2269 enum object_type type;
@@ -2688,8 +2691,8 @@ struct unpacked {
2688 2691 unsigned depth;
2689 2692 };
2690 2693
2691 - static int delta_cacheable(unsigned long src_size, unsigned long trg_size,
2692 - unsigned long delta_size)
2694 + static int delta_cacheable(size_t src_size, size_t trg_size,
2695 + size_t delta_size)
2693 2696 {
2694 2697 if (max_delta_cache_size && delta_cache_size + delta_size > max_delta_cache_size)
2695 2698 return 0;
@@ -2772,8 +2775,7 @@ size_t oe_get_size_slow(struct packing_data *pack,
2772 2775 struct pack_window *w_curs;
2773 2776 unsigned char *buf;
2774 2777 enum object_type type;
2775 - unsigned long used, avail;
2776 - size_t size;
2778 + size_t used, avail, size;
2777 2779
2778 2780 if (e->type_ != OBJ_OFS_DELTA && e->type_ != OBJ_REF_DELTA) {
2779 2781 size_t sz;
@@ -2804,11 +2806,12 @@ size_t oe_get_size_slow(struct packing_data *pack,
2804 2806 }
2805 2807
2806 2808 static int try_delta(struct unpacked *trg, struct unpacked *src,
2807 - unsigned max_depth, unsigned long *mem_usage)
2809 + unsigned max_depth, size_t *mem_usage)
2808 2810 {
2809 2811 struct object_entry *trg_entry = trg->entry;
2810 2812 struct object_entry *src_entry = src->entry;
2811 - unsigned long trg_size, src_size, delta_size, sizediff, max_size, sz;
2813 + unsigned long trg_size, src_size, sizediff, max_size, sz;
2814 + size_t delta_size;
2812 2815 unsigned ref_depth;
2813 2816 enum object_type type;
2814 2817 void *delta_buf;
@@ -2972,9 +2975,9 @@ static unsigned int check_delta_limit(struct object_entry *me, unsigned int n)
2972 2975 return m;
2973 2976 }
2974 2977
2975 - static unsigned long free_unpacked(struct unpacked *n)
2978 + static size_t free_unpacked(struct unpacked *n)
2976 2979 {
2977 - unsigned long freed_mem = sizeof_delta_index(n->index);
2980 + size_t freed_mem = sizeof_delta_index(n->index);
2978 2981 free_delta_index(n->index);
2979 2982 n->index = NULL;
2980 2983 if (n->data) {
@@ -2991,7 +2994,7 @@ static void find_deltas(struct object_entry **list, unsigned *list_size,
2991 2994 {
2992 2995 uint32_t i, idx = 0, count = 0;
2993 2996 struct unpacked *array;
2994 - unsigned long mem_usage = 0;
2997 + size_t mem_usage = 0;
2995 2998
2996 2999 CALLOC_ARRAY(array, window);
2997 3000
@@ -3701,7 +3704,7 @@ static int git_pack_config(const char *k, const char *v,
3701 3704 return 0;
3702 3705 }
3703 3706 if (!strcmp(k, "pack.deltacachesize")) {
3704 - max_delta_cache_size = git_config_int(k, v, ctx->kvi);
3707 + max_delta_cache_size = git_config_size_t(k, v, ctx->kvi);
3705 3708 return 0;
3706 3709 }
3707 3710 if (!strcmp(k, "pack.deltacachelimit")) {
@@ -4087,9 +4090,10 @@ static void stdin_packs_read_input(struct rev_info *revs,
4087 4090
4088 4091 static void add_unreachable_loose_objects(struct rev_info *revs);
4089 4092
4090 - static void read_stdin_packs(enum stdin_packs_mode mode, int rev_list_unpacked)
4093 + static void read_stdin_packs(struct repository *repo,
4094 + enum stdin_packs_mode mode, int rev_list_unpacked)
4091 4095 {
4092 - int prev_fetch_if_missing = fetch_if_missing;
4096 + int prev_fetch_if_missing = repo->fetch_if_missing;
4093 4097 struct rev_info revs;
4094 4098
4095 4099 /*
@@ -4097,9 +4101,9 @@ static void read_stdin_packs(enum stdin_packs_mode mode, int rev_list_unpacked)
4097 4101 * walk is best-effort though we don't want to perform backfill fetches
4098 4102 * for them.
4099 4103 */
4100 - fetch_if_missing = 0;
4104 + repo->fetch_if_missing = 0;
4101 4105
4102 - repo_init_revisions(the_repository, &revs, NULL);
4106 + repo_init_revisions(repo, &revs, NULL);
4103 4107 /*
4104 4108 * Use a revision walk to fill in the namehash of objects in the include
4105 4109 * packs. To save time, we'll avoid traversing through objects that are
@@ -4145,7 +4149,7 @@ static void read_stdin_packs(enum stdin_packs_mode mode, int rev_list_unpacked)
4145 4149 trace2_data_intmax("pack-objects", the_repository, "stdin_packs_hints",
4146 4150 stdin_packs_hints_nr);
4147 4151
4148 - fetch_if_missing = prev_fetch_if_missing;
4152 + repo->fetch_if_missing = prev_fetch_if_missing;
4149 4153 }
4150 4154
4151 4155 static void add_cruft_object_entry(const struct object_id *oid, enum object_type type,
@@ -4171,7 +4175,7 @@ static void add_cruft_object_entry(const struct object_id *oid, enum object_type
4171 4175
4172 4176 for (; !found && source; source = source->next) {
4173 4177 struct odb_source_files *files = odb_source_files_downcast(source);
4174 - if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0))
4178 + if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0, NULL))
4175 4179 found = 1;
4176 4180 }
4177 4181
@@ -4455,9 +4459,11 @@ static void show_object__ma_allow_promisor(struct object *obj, const char *name,
4455 4459 show_object(obj, name, data);
4456 4460 }
4457 4461
4458 - static int option_parse_missing_action(const struct option *opt UNUSED,
4462 + static int option_parse_missing_action(const struct option *opt,
4459 4463 const char *arg, int unset)
4460 4464 {
4465 + struct repository *repo = opt->value;
4466 +
4461 4467 assert(arg);
4462 4468 assert(!unset);
4463 4469
@@ -4469,14 +4475,14 @@ static int option_parse_missing_action(const struct option *opt UNUSED,
4469 4475
4470 4476 if (!strcmp(arg, "allow-any")) {
4471 4477 arg_missing_action = MA_ALLOW_ANY;
4472 - fetch_if_missing = 0;
4478 + repo->fetch_if_missing = 0;
4473 4479 fn_show_object = show_object__ma_allow_any;
4474 4480 return 0;
4475 4481 }
4476 4482
4477 4483 if (!strcmp(arg, "allow-promisor")) {
4478 4484 arg_missing_action = MA_ALLOW_PROMISOR;
4479 - fetch_if_missing = 0;
4485 + repo->fetch_if_missing = 0;
4480 4486 fn_show_object = show_object__ma_allow_promisor;
4481 4487 return 0;
4482 4488 }
@@ -4520,7 +4526,6 @@ static void add_objects_in_unpacked_packs(void)
4520 4526 .source_infop = &source_info,
4521 4527 };
4522 4528
4523 - odb_prepare_alternates(to_pack.repo->objects);
4524 4529 for (source = to_pack.repo->objects->sources; source; source = source->next) {
4525 4530 struct odb_source_files *files = odb_source_files_downcast(source);
4526 4531
@@ -4637,7 +4642,7 @@ static int force_object_loose(struct odb_source *source,
4637 4642
4638 4643 for (struct odb_source *s = source->odb->sources; s; s = s->next) {
4639 4644 struct odb_source_files *files = odb_source_files_downcast(s);
4640 - if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0))
4645 + if (!odb_source_read_object_info(&files->loose->base, oid, NULL, 0, NULL))
4641 4646 return 0;
4642 4647 }
4643 4648
@@ -5118,7 +5123,7 @@ static int parse_stdin_packs_mode(const struct option *opt, const char *arg,
5118 5123 int cmd_pack_objects(int argc,
5119 5124 const char **argv,
5120 5125 const char *prefix,
5121 - struct repository *repo UNUSED)
5126 + struct repository *repo)
5122 5127 {
5123 5128 int use_internal_rev_list = 0;
5124 5129 int all_progress_implied = 0;
@@ -5225,7 +5230,7 @@ int cmd_pack_objects(int argc,
5225 5230 N_("write a bitmap index if possible"),
5226 5231 WRITE_BITMAP_QUIET, PARSE_OPT_HIDDEN),
5227 5232 OPT_PARSE_LIST_OBJECTS_FILTER(&filter_options),
5228 - OPT_CALLBACK_F(0, "missing", NULL, N_("action"),
5233 + OPT_CALLBACK_F(0, "missing", repo, N_("action"),
5229 5234 N_("handling for missing objects"), PARSE_OPT_NONEG,
5230 5235 option_parse_missing_action),
5231 5236 OPT_BOOL(0, "exclude-promisor-objects", &exclude_promisor_objects,
@@ -5345,7 +5350,7 @@ int cmd_pack_objects(int argc,
5345 5350 exclude_promisor_objects_best_effort,
5346 5351 "--exclude-promisor-objects-best-effort");
5347 5352 if (exclude_promisor_objects) {
5348 - fetch_if_missing = 0;
5353 + repo->fetch_if_missing = 0;
5349 5354
5350 5355 /* --stdin-packs handles promisor objects separately. */
5351 5356 if (!stdin_packs) {
@@ -5354,8 +5359,9 @@ int cmd_pack_objects(int argc,
5354 5359 }
5355 5360 } else if (exclude_promisor_objects_best_effort) {
5356 5361 use_internal_rev_list = 1;
5357 - fetch_if_missing = 0;
5358 - option_parse_missing_action(NULL, "allow-any", 0);
5362 + arg_missing_action = MA_ALLOW_ANY;
5363 + repo->fetch_if_missing = 0;
5364 + fn_show_object = show_object__ma_allow_any;
5359 5365 /* revs configured below */
5360 5366 }
5361 5367 if (unpack_unreachable || keep_unreachable || pack_loose_unreachable)
@@ -5471,7 +5477,7 @@ int cmd_pack_objects(int argc,
5471 5477 progress_state = start_progress(the_repository,
5472 5478 _("Enumerating objects"), 0);
5473 5479 if (stdin_packs) {
5474 - read_stdin_packs(stdin_packs, rev_list_unpacked);
5480 + read_stdin_packs(repo, stdin_packs, rev_list_unpacked);
5475 5481 } else if (cruft) {
5476 5482 read_cruft_objects();
5477 5483 } else if (!use_internal_rev_list) {
modified builtin/prune.c
@@ -194,7 +194,7 @@ int cmd_prune(int argc,
194 194 if (show_progress == -1)
195 195 show_progress = isatty(2);
196 196 if (exclude_promisor_objects) {
197 - fetch_if_missing = 0;
197 + repo->fetch_if_missing = 0;
198 198 revs.exclude_promisor_objects = 1;
199 199 }
200 200
modified builtin/receive-pack.c
@@ -15,7 +15,6 @@
15 15 #include "gpg-interface.h"
16 16 #include "hex.h"
17 17 #include "hook.h"
18 - #include "lockfile.h"
19 18 #include "object.h"
20 19 #include "object-file.h"
21 20 #include "object-name.h"
@@ -23,7 +22,6 @@
23 22 #include "oid-array.h"
24 23 #include "oidset.h"
25 24 #include "pack.h"
26 - #include "packfile.h"
27 25 #include "parse-options.h"
28 26 #include "pkt-line.h"
29 27 #include "protocol.h"
@@ -62,12 +60,9 @@ static enum deny_action deny_delete_current = DENY_UNCONFIGURED;
62 60 static int receive_fsck_objects = -1;
63 61 static int transfer_fsck_objects = -1;
64 62 static struct strbuf fsck_msg_types = STRBUF_INIT;
65 - static int receive_unpack_limit = -1;
66 - static int transfer_unpack_limit = -1;
67 63 static int advertise_atomic_push = 1;
68 64 static int advertise_push_options;
69 65 static int advertise_sid;
70 - static int unpack_limit = 100;
71 66 static off_t max_input_size;
72 67 static int report_status;
73 68 static int report_status_v2;
@@ -86,7 +81,6 @@ static const char *head_name;
86 81 static void *head_name_to_free;
87 82 static int sent_capabilities;
88 83 static int shallow_update;
89 - static const char *alt_shallow_file;
90 84 static struct strbuf push_cert = STRBUF_INIT;
91 85 static struct object_id push_cert_oid;
92 86 static struct signature_check sigcheck;
@@ -158,16 +152,6 @@ static int receive_pack_config(const char *var, const char *value,
158 152 return 0;
159 153 }
160 154
161 - if (strcmp(var, "receive.unpacklimit") == 0) {
162 - receive_unpack_limit = git_config_int(var, value, ctx->kvi);
163 - return 0;
164 - }
165 -
166 - if (strcmp(var, "transfer.unpacklimit") == 0) {
167 - transfer_unpack_limit = git_config_int(var, value, ctx->kvi);
168 - return 0;
169 - }
170 -
171 155 if (strcmp(var, "receive.fsck.skiplist") == 0) {
172 156 char *path;
173 157
@@ -2029,7 +2013,7 @@ cleanup:
2029 2013 }
2030 2014
2031 2015 static void execute_commands(struct command *commands,
2032 - const char *unpacker_error,
2016 + int unpacker_error,
2033 2017 struct shallow_info *si,
2034 2018 struct odb_transaction *transaction,
2035 2019 const struct string_list *push_options)
@@ -2306,150 +2290,44 @@ static void read_push_options(struct packet_reader *reader,
2306 2290 }
2307 2291 }
2308 2292
2309 - static const char *parse_pack_header(struct pack_header *hdr)
2310 - {
2311 - switch (read_pack_header(0, hdr)) {
2312 - case PH_ERROR_EOF:
2313 - return "eof before pack header was fully read";
2314 -
2315 - case PH_ERROR_PACK_SIGNATURE:
2316 - return "protocol error (pack signature mismatch detected)";
2317 -
2318 - case PH_ERROR_PROTOCOL:
2319 - return "protocol error (pack version unsupported)";
2320 -
2321 - default:
2322 - return "unknown error in parse_pack_header";
2323 -
2324 - case 0:
2325 - return NULL;
2326 - }
2327 - }
2328 -
2329 - static struct tempfile *pack_lockfile;
2330 -
2331 - static void push_header_arg(struct strvec *args, struct pack_header *hdr)
2332 - {
2333 - strvec_pushf(args, "--pack_header=%"PRIu32",%"PRIu32,
2334 - ntohl(hdr->hdr_version), ntohl(hdr->hdr_entries));
2335 - }
2336 -
2337 - static const char *unpack(int err_fd, struct shallow_info *si,
2338 - struct odb_transaction *transaction)
2339 - {
2340 - struct pack_header hdr;
2341 - const char *hdr_err;
2342 - int status;
2343 - struct child_process child = CHILD_PROCESS_INIT;
2344 - int fsck_objects = (receive_fsck_objects >= 0
2345 - ? receive_fsck_objects
2346 - : transfer_fsck_objects >= 0
2347 - ? transfer_fsck_objects
2348 - : 0);
2349 -
2350 - hdr_err = parse_pack_header(&hdr);
2351 - if (hdr_err) {
2352 - if (err_fd > 0)
2353 - close(err_fd);
2354 - return hdr_err;
2355 - }
2356 -
2357 - if (si->nr_ours || si->nr_theirs) {
2358 - alt_shallow_file = setup_temporary_shallow(si->shallow);
2359 - strvec_push(&child.args, "--shallow-file");
2360 - strvec_push(&child.args, alt_shallow_file);
2361 - }
2362 -
2363 - odb_transaction_env(transaction, &child.env);
2364 -
2365 - if (ntohl(hdr.hdr_entries) < unpack_limit) {
2366 - strvec_push(&child.args, "unpack-objects");
2367 - push_header_arg(&child.args, &hdr);
2368 - if (quiet)
2369 - strvec_push(&child.args, "-q");
2370 - if (fsck_objects)
2371 - strvec_pushf(&child.args, "--strict%s",
2372 - fsck_msg_types.buf);
2373 - if (max_input_size)
2374 - strvec_pushf(&child.args, "--max-input-size=%"PRIuMAX,
2375 - (uintmax_t)max_input_size);
2376 - child.no_stdout = 1;
2377 - child.err = err_fd;
2378 - child.git_cmd = 1;
2379 - status = run_command(&child);
2380 - if (status)
2381 - return "unpack-objects abnormal exit";
2382 - } else {
2383 - char hostname[HOST_NAME_MAX + 1];
2384 - char *lockfile;
2385 -
2386 - strvec_pushl(&child.args, "index-pack", "--stdin", NULL);
2387 - push_header_arg(&child.args, &hdr);
2388 -
2389 - if (xgethostname(hostname, sizeof(hostname)))
2390 - xsnprintf(hostname, sizeof(hostname), "localhost");
2391 - strvec_pushf(&child.args,
2392 - "--keep=receive-pack %"PRIuMAX" on %s",
2393 - (uintmax_t)getpid(),
2394 - hostname);
2395 -
2396 - if (!quiet && err_fd)
2397 - strvec_push(&child.args, "--show-resolving-progress");
2398 - if (use_sideband)
2399 - strvec_push(&child.args, "--report-end-of-input");
2400 - if (fsck_objects)
2401 - strvec_pushf(&child.args, "--strict%s",
2402 - fsck_msg_types.buf);
2403 - if (!reject_thin)
2404 - strvec_push(&child.args, "--fix-thin");
2405 - if (max_input_size)
2406 - strvec_pushf(&child.args, "--max-input-size=%"PRIuMAX,
2407 - (uintmax_t)max_input_size);
2408 - child.out = -1;
2409 - child.err = err_fd;
2410 - child.git_cmd = 1;
2411 - status = start_command(&child);
2412 - if (status)
2413 - return "index-pack fork failed";
2414 -
2415 - lockfile = index_pack_lockfile(the_repository, child.out, NULL);
2416 - if (lockfile) {
2417 - pack_lockfile = register_tempfile(lockfile);
2418 - free(lockfile);
2419 - }
2420 - close(child.out);
2421 -
2422 - status = finish_command(&child);
2423 - if (status)
2424 - return "index-pack abnormal exit";
2425 - odb_reprepare(the_repository->objects);
2426 - }
2427 - return NULL;
2428 - }
2429 -
2430 - static const char *unpack_with_sideband(struct shallow_info *si,
2431 - struct odb_transaction *transaction)
2293 + static int unpack_with_sideband(struct odb_transaction *transaction,
2294 + const char *shallow_file,
2295 + struct strbuf *err_msg)
2432 2296 {
2297 + struct odb_transaction_write_pack_opts opts = {
2298 + .fsck_objects = (receive_fsck_objects >= 0
2299 + ? receive_fsck_objects
2300 + : transfer_fsck_objects >= 0
2301 + ? transfer_fsck_objects
2302 + : 0),
2303 + .fsck_msg_types = fsck_msg_types.buf,
2304 + .max_input_size = max_input_size,
2305 + .shallow_file = shallow_file,
2306 + .reject_thin = reject_thin,
2307 + .quiet = quiet,
2308 + };
2433 2309 struct async muxer;
2434 - const char *ret;
2310 + int ret;
2435 2311
2436 2312 if (!use_sideband)
2437 - return unpack(0, si, transaction);
2313 + return odb_transaction_write_pack(transaction, 0, err_msg, &opts);
2438 2314
2439 2315 use_keepalive = KEEPALIVE_AFTER_NUL;
2440 2316 memset(&muxer, 0, sizeof(muxer));
2441 2317 muxer.proc = copy_to_sideband;
2442 2318 muxer.in = -1;
2443 2319 if (start_async(&muxer))
2444 - return NULL;
2320 + return 0;
2445 2321
2446 - ret = unpack(muxer.in, si, transaction);
2322 + opts.err_fd = muxer.in;
2323 + ret = odb_transaction_write_pack(transaction, 0, err_msg, &opts);
2447 2324
2448 2325 finish_async(&muxer);
2449 2326 return ret;
2450 2327 }
2451 2328
2452 - static void prepare_shallow_update(struct shallow_info *si)
2329 + static void prepare_shallow_update(struct shallow_info *si,
2330 + const char *shallow_file)
2453 2331 {
2454 2332 int i, j, k, bitmap_size = DIV_ROUND_UP(si->ref->nr, 32);
2455 2333
@@ -2489,12 +2367,13 @@ static void prepare_shallow_update(struct shallow_info *si)
2489 2367 * command. check_connected() will be done with
2490 2368 * true .git/shallow though.
2491 2369 */
2492 - setenv(GIT_SHALLOW_FILE_ENVIRONMENT, alt_shallow_file, 1);
2370 + setenv(GIT_SHALLOW_FILE_ENVIRONMENT, shallow_file, 1);
2493 2371 }
2494 2372
2495 2373 static void update_shallow_info(struct command *commands,
2496 2374 struct shallow_info *si,
2497 - struct oid_array *ref)
2375 + struct oid_array *ref,
2376 + const char *shallow_file)
2498 2377 {
2499 2378 struct command *cmd;
2500 2379 int *ref_status;
@@ -2513,7 +2392,7 @@ static void update_shallow_info(struct command *commands,
2513 2392 si->ref = ref;
2514 2393
2515 2394 if (shallow_update) {
2516 - prepare_shallow_update(si);
2395 + prepare_shallow_update(si, shallow_file);
2517 2396 return;
2518 2397 }
2519 2398
@@ -2530,13 +2409,13 @@ static void update_shallow_info(struct command *commands,
2530 2409 free(ref_status);
2531 2410 }
2532 2411
2533 - static void report(struct command *commands, const char *unpack_status)
2412 + static void report(struct command *commands, const struct strbuf *unpack_status)
2534 2413 {
2535 2414 struct command *cmd;
2536 2415 struct strbuf buf = STRBUF_INIT;
2537 2416
2538 2417 packet_buf_write(&buf, "unpack %s\n",
2539 - unpack_status ? unpack_status : "ok");
2418 + unpack_status->len ? unpack_status->buf : "ok");
2540 2419 for (cmd = commands; cmd; cmd = cmd->next) {
2541 2420 if (!cmd->error_string)
2542 2421 packet_buf_write(&buf, "ok %s\n",
@@ -2554,14 +2433,14 @@ static void report(struct command *commands, const char *unpack_status)
2554 2433 strbuf_release(&buf);
2555 2434 }
2556 2435
2557 - static void report_v2(struct command *commands, const char *unpack_status)
2436 + static void report_v2(struct command *commands, const struct strbuf *unpack_status)
2558 2437 {
2559 2438 struct command *cmd;
2560 2439 struct strbuf buf = STRBUF_INIT;
2561 2440 struct ref_push_report *report;
2562 2441
2563 2442 packet_buf_write(&buf, "unpack %s\n",
2564 - unpack_status ? unpack_status : "ok");
2443 + unpack_status->len ? unpack_status->buf : "ok");
2565 2444 for (cmd = commands; cmd; cmd = cmd->next) {
2566 2445 int count = 0;
2567 2446
@@ -2652,11 +2531,6 @@ int cmd_receive_pack(int argc,
2652 2531 if (cert_nonce_seed)
2653 2532 push_cert_nonce = prepare_push_cert_nonce(service_dir, time(NULL));
2654 2533
2655 - if (0 <= receive_unpack_limit)
2656 - unpack_limit = receive_unpack_limit;
2657 - else if (0 <= transfer_unpack_limit)
2658 - unpack_limit = transfer_unpack_limit;
2659 -
2660 2534 switch (determine_protocol_version_server()) {
2661 2535 case protocol_v2:
2662 2536 /*
@@ -2690,8 +2564,8 @@ int cmd_receive_pack(int argc,
2690 2564 PACKET_READ_DIE_ON_ERR_PACKET);
2691 2565
2692 2566 if ((commands = read_head_info(&reader, &shallow))) {
2693 - const char *unpack_status = NULL;
2694 2567 struct string_list push_options = STRING_LIST_INIT_DUP;
2568 + struct strbuf unpack_status = STRBUF_INIT;
2695 2569
2696 2570 if (use_push_options)
2697 2571 read_push_options(&reader, &push_options);
@@ -2705,21 +2579,27 @@ int cmd_receive_pack(int argc,
2705 2579 if (!si.nr_ours && !si.nr_theirs)
2706 2580 shallow_update = 0;
2707 2581 if (!delete_only(commands)) {
2582 + const char *alt_shallow_file = NULL;
2583 +
2584 + if (si.nr_ours || si.nr_theirs)
2585 + alt_shallow_file = setup_temporary_shallow(si.shallow);
2586 +
2708 2587 if (odb_transaction_begin(the_repository->objects, &transaction, ODB_TRANSACTION_RECEIVE))
2709 - unpack_status = "unable to start object transaction";
2588 + strbuf_addstr(&unpack_status, "unable to start object transaction");
2710 2589 else
2711 - unpack_status = unpack_with_sideband(&si, transaction);
2712 - update_shallow_info(commands, &si, &ref);
2590 + unpack_with_sideband(transaction, alt_shallow_file, &unpack_status);
2591 +
2592 + update_shallow_info(commands, &si, &ref, alt_shallow_file);
2713 2593 }
2714 2594 use_keepalive = KEEPALIVE_ALWAYS;
2715 - execute_commands(commands, unpack_status, &si, transaction,
2595 + execute_commands(commands, !!unpack_status.len, &si, transaction,
2716 2596 &push_options);
2717 - delete_tempfile(&pack_lockfile);
2597 + odb_transaction_finalize(transaction);
2718 2598 sigchain_push(SIGPIPE, SIG_IGN);
2719 2599 if (report_status_v2)
2720 - report_v2(commands, unpack_status);
2600 + report_v2(commands, &unpack_status);
2721 2601 else if (report_status)
2722 - report(commands, unpack_status);
2602 + report(commands, &unpack_status);
2723 2603 sigchain_pop(SIGPIPE);
2724 2604 run_receive_hook(commands, "post-receive", 1, NULL,
2725 2605 &push_options);
@@ -2744,6 +2624,7 @@ int cmd_receive_pack(int argc,
2744 2624 if (auto_update_server_info)
2745 2625 update_server_info(the_repository, 0);
2746 2626 clear_shallow_info(&si);
2627 + strbuf_release(&unpack_status);
2747 2628 }
2748 2629 if (use_sideband)
2749 2630 packet_flush(1);
modified builtin/repack.c
@@ -14,6 +14,11 @@
14 14 #include "promisor-remote.h"
15 15 #include "repack.h"
16 16 #include "shallow.h"
17 + #include "list-objects-filter-options.h"
18 + #include "oidset.h"
19 + #include "hex.h"
20 + #include "wt-status.h"
21 + #include "read-cache-ll.h"
17 22
18 23 #define ALL_INTO_ONE 1
19 24 #define LOOSEN_UNREACHABLE 2
@@ -28,11 +33,15 @@ static int use_delta_islands;
28 33 static int run_update_server_info = 1;
29 34 static char *packdir, *packtmp_name, *packtmp;
30 35 static int midx_must_contain_cruft = 1;
36 + static int drop_filtered;
37 + static int dry_run;
38 + static int write_bitmaps_given;
31 39
32 40 static const char *const git_repack_usage[] = {
33 41 N_("git repack [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [-b] [-m]\n"
34 42 "[--window=<n>] [--depth=<n>] [--threads=<n>] [--keep-pack=<pack-name>]\n"
35 - "[--write-midx[=<mode>]] [--name-hash-version=<n>] [--path-walk]"),
43 + "[--write-midx[=<mode>]] [--name-hash-version=<n>] [--path-walk]\n"
44 + "[--filter=<filter-spec>] [--drop-filtered [--dry-run]]"),
36 45 NULL
37 46 };
38 47
@@ -111,6 +120,21 @@ static int repack_config(const char *var, const char *value,
111 120 return git_default_config(var, value, ctx, cb);
112 121 }
113 122
123 + static int option_parse_write_bitmaps(const struct option *opt, const char *arg,
124 + int unset)
125 + {
126 + int *value = opt->value;
127 +
128 + BUG_ON_OPT_ARG(arg);
129 + if (unset)
130 + *value = 0;
131 + else
132 + *value = 1;
133 +
134 + write_bitmaps_given = 1;
135 + return 0;
136 + }
137 +
114 138 static int option_parse_write_midx(const struct option *opt, const char *arg,
115 139 int unset)
116 140 {
@@ -140,6 +164,7 @@ int cmd_repack(int argc,
140 164 struct string_list_item *item;
141 165 struct string_list names = STRING_LIST_INIT_DUP;
142 166 struct existing_packs existing = EXISTING_PACKS_INIT;
167 + struct oidset drop_oids = OIDSET_INIT;
143 168 struct pack_geometry geometry = { 0 };
144 169 struct tempfile *refs_snapshot = NULL;
145 170 int i, ret;
@@ -194,8 +219,9 @@ int cmd_repack(int argc,
194 219 OPT__QUIET(&po_args.quiet, N_("be quiet")),
195 220 OPT_BOOL('l', "local", &po_args.local,
196 221 N_("pass --local to git-pack-objects")),
197 - OPT_BOOL('b', "write-bitmap-index", &write_bitmaps,
198 - N_("write bitmap index")),
222 + OPT_CALLBACK_F('b', "write-bitmap-index", &write_bitmaps, NULL,
223 + N_("write bitmap index"),
224 + PARSE_OPT_NOARG, option_parse_write_bitmaps),
199 225 OPT_BOOL('i', "delta-islands", &use_delta_islands,
200 226 N_("pass --delta-islands to git-pack-objects")),
201 227 OPT_STRING(0, "unpack-unreachable", &unpack_unreachable, N_("approxidate"),
@@ -231,6 +257,10 @@ int cmd_repack(int argc,
231 257 N_("pack prefix to store a pack containing pruned objects")),
232 258 OPT_STRING(0, "filter-to", &filter_to, N_("dir"),
233 259 N_("pack prefix to store a pack containing filtered out objects")),
260 + OPT_BOOL(0, "drop-filtered", &drop_filtered,
261 + N_("delete filtered out objects (requires --filter)")),
262 + OPT_BOOL(0, "dry-run", &dry_run,
263 + N_("only show which objects would be dropped")),
234 264 OPT_END()
235 265 };
236 266
@@ -252,6 +282,118 @@ int cmd_repack(int argc,
252 282 po_args.depth = xstrdup_or_null(opt_depth);
253 283 po_args.threads = xstrdup_or_null(opt_threads);
254 284
285 + die_for_incompatible_opt2(drop_filtered, "--drop-filtered",
286 + !!filter_to, "--filter-to");
287 +
288 + if (dry_run && !drop_filtered)
289 + die(_("--dry-run only takes effect with --drop-filtered"));
290 +
291 + if (drop_filtered) {
292 + if (!po_args.filter_options.choice)
293 + die(_("--drop-filtered requires --filter"));
294 +
295 + if (!(pack_everything & ALL_INTO_ONE))
296 + die(_("--drop-filtered requires -a"));
297 +
298 + /*
299 + * Only blob:limit=<n> is supported for now. Reject other
300 + * filter choices early, before walking the object database.
301 + */
302 + if (po_args.filter_options.choice != LOFC_BLOB_LIMIT)
303 + die(_("--drop-filtered only supports --filter=blob:limit=<n> for now"));
304 +
305 + /*
306 + * An explicit -b on the command line is a conflict we have to
307 + * report; a bitmap setting from config is silently overridden
308 + * for the duration of the command.
309 + */
310 + if (write_bitmaps_given && write_bitmaps > 0)
311 + die(_("options '%s' and '%s' cannot be used together"),
312 + "--drop-filtered", "--write-bitmap-index");
313 +
314 + /*
315 + * Without a promisor remote there is nowhere to re-fetch the
316 + * dropped objects from, so dropping them would be permanent
317 + * data loss.
318 + */
319 + if (!repo_has_promisor_remote(repo))
320 + die(_("--drop-filtered requires a promisor remote"));
321 +
322 + /*
323 + * Refuse to run while another operation is in progress. A
324 + * dropped object would just be lazily re-fetched when the
325 + * operation resumes, but triggering a network fetch in the
326 + * middle of a half-finished
327 + * merge/rebase/cherry-pick/revert/bisect is a poor
328 + * experience, so this is a UX convenience rather than a
329 + * safety measure. Bare repositories have no such state, so
330 + * the check is skipped there.
331 + */
332 + if (!is_bare_repository(repo)) {
333 + struct wt_status_state state = { 0 };
334 +
335 + wt_status_get_state(repo, &state, 0);
336 + if (state.merge_in_progress || state.revert_in_progress ||
337 + state.rebase_in_progress || state.bisect_in_progress ||
338 + state.cherry_pick_in_progress || state.am_in_progress ||
339 + state.rebase_interactive_in_progress) {
340 + wt_status_state_free_buffers(&state);
341 + die(_("--drop-filtered cannot be used while "
342 + "another operation (merge, rebase, am, "
343 + "cherry-pick, revert, or bisect) is in "
344 + "progress"));
345 + }
346 + wt_status_state_free_buffers(&state);
347 + }
348 +
349 + write_bitmaps = 0;
350 +
351 + /*
352 + * Dropping objects means rebuilding the promisor packs
353 + * without them and then removing the old packs, so the
354 + * redundant packs must be deleted. Imply -d on a real run.
355 + */
356 + if (!dry_run)
357 + delete_redundant = 1;
358 +
359 + ret = enumerate_promisor_blobs(repo, &po_args.filter_options, &drop_oids);
360 +
361 + if (ret)
362 + goto cleanup;
363 +
364 + /*
365 + * Refuse to drop blobs that the current index references.
366 + * Such a blob would only be lazily re-fetched by the next
367 + * command that touches the worktree, so dropping it reclaims
368 + * nothing. This guard just avoids that churn. Bare
369 + * repositories have no index, so the check is skipped there.
370 + */
371 + if (!is_bare_repository(repo) && oidset_size(&drop_oids)) {
372 + struct index_state *istate = repo->index;
373 + unsigned int i;
374 +
375 + if (repo_read_index(repo) < 0)
376 + die(_("could not read the index"));
377 +
378 + for (i = 0; i < istate->cache_nr; i++) {
379 + const struct cache_entry *ce = istate->cache[i];
380 +
381 + if (oidset_contains(&drop_oids, &ce->oid))
382 + die(_("cannot drop '%s' (%s): it is referenced by the current index"),
383 + ce->name, oid_to_hex(&ce->oid));
384 + }
385 + }
386 +
387 + if (dry_run) {
388 + struct oidset_iter iter;
389 + const struct object_id *oid;
390 +
391 + oidset_iter_init(&drop_oids, &iter);
392 + while ((oid = oidset_iter_next(&iter)))
393 + printf("%s\n", oid_to_hex(oid));
394 + }
395 + }
396 +
255 397 if (delete_redundant && repo->repository_format_precious_objects)
256 398 die(_("cannot delete packs in a precious-objects repo"));
257 399
@@ -362,7 +504,8 @@ int cmd_repack(int argc,
362 504 strvec_push(&cmd.args, "--delta-islands");
363 505
364 506 if (pack_everything & ALL_INTO_ONE) {
365 - repack_promisor_objects(repo, &po_args, &names, packtmp);
507 + repack_promisor_objects(repo, &po_args, &names, packtmp,
508 + (drop_filtered && !dry_run) ? &drop_oids : NULL);
366 509
367 510 if (existing_packs_has_non_kept(&existing) &&
368 511 delete_redundant &&
@@ -545,7 +688,7 @@ int cmd_repack(int argc,
545 688 }
546 689 }
547 690
548 - if (po_args.filter_options.choice) {
691 + if (po_args.filter_options.choice && !drop_filtered) {
549 692 struct write_pack_opts opts = {
550 693 .po_args = &po_args,
551 694 .destination = filter_to,
@@ -638,6 +781,7 @@ int cmd_repack(int argc,
638 781 cleanup:
639 782 string_list_clear(&keep_pack_list, 0);
640 783 string_list_clear(&names, 1);
784 + oidset_clear(&drop_oids);
641 785 existing_packs_release(&existing);
642 786 pack_geometry_release(&geometry);
643 787 pack_objects_args_release(&po_args);
modified builtin/replay.c
@@ -85,7 +85,7 @@ int cmd_replay(int argc,
85 85 const char *const replay_usage[] = {
86 86 N_("(EXPERIMENTAL!) git replay "
87 87 "([--contained] --onto=<newbase> | --advance=<branch> | --revert=<branch>)\n"
88 - "[--ref=<ref>] [--ref-action=<mode>] <revision-range>"),
88 + "[--ref=<ref>] [--ref-action=<mode>] [--linearize] <revision-range>"),
89 89 NULL
90 90 };
91 91 struct option replay_options[] = {
@@ -111,6 +111,8 @@ int cmd_replay(int argc,
111 111 N_("mode"),
112 112 N_("control ref update behavior (update|print)"),
113 113 PARSE_OPT_NONEG),
114 + OPT_BOOL(0, "linearize", &opts.linearize,
115 + N_("drop merge commits, replaying only non-merge commits")),
114 116 OPT_END()
115 117 };
116 118
@@ -132,6 +134,8 @@ int cmd_replay(int argc,
132 134 opts.contained, "--contained");
133 135 die_for_incompatible_opt2(!!opts.ref, "--ref",
134 136 !!opts.contained, "--contained");
137 + die_for_incompatible_opt2(opts.linearize, "--linearize",
138 + !!opts.contained, "--contained");
135 139
136 140 /* Parse ref action mode from command line or config */
137 141 ref_mode = get_ref_action_mode(repo, ref_action);
modified builtin/rev-list.c
@@ -111,6 +111,13 @@ enum missing_action {
111 111 MA_ALLOW_PROMISOR, /* silently allow all missing PROMISOR objects */
112 112 };
113 113 static enum missing_action arg_missing_action;
114 + static int arg_missing_only;
115 +
116 + static inline int should_collect_missing(void)
117 + {
118 + return arg_missing_action == MA_PRINT ||
119 + arg_missing_action == MA_PRINT_INFO;
120 + }
114 121
115 122 /* display only the oid of each object encountered */
116 123 static int arg_show_object_names = 1;
@@ -156,7 +163,14 @@ static void print_missing_object(struct missing_objects_map_entry *entry,
156 163 {
157 164 struct strbuf sb = STRBUF_INIT;
158 165
159 - if (line_term)
166 + /*
167 + * --missing-only filters present objects out of the walk output.
168 + * It still uses the selected --missing= format for missing ones,
169 + * except the human "?" prefix is omitted (script-friendly OIDs).
170 + */
171 + if (arg_missing_only && line_term)
172 + printf("%s", oid_to_hex(&entry->entry.oid));
173 + else if (line_term)
160 174 printf("?%s", oid_to_hex(&entry->entry.oid));
161 175 else
162 176 printf("%s%cmissing=yes", oid_to_hex(&entry->entry.oid),
@@ -246,6 +260,11 @@ static void show_commit(struct commit *commit, void *data)
246 260 return;
247 261 }
248 262
263 + if (arg_missing_only) {
264 + finish_commit(commit);
265 + return;
266 + }
267 +
249 268 if (show_disk_usage)
250 269 total_disk_usage += get_object_disk_usage(&commit->object);
251 270
@@ -384,6 +403,8 @@ static void show_object(struct object *obj, const char *name, void *cb_data)
384 403 if (finish_object(obj, name, cb_data))
385 404 return;
386 405 display_progress(progress, ++progress_counter);
406 + if (arg_missing_only)
407 + return;
387 408 if (show_disk_usage)
388 409 total_disk_usage += get_object_disk_usage(obj);
389 410 if (info->flags & REV_LIST_QUIET)
@@ -500,7 +521,8 @@ static void print_disk_usage(off_t size)
500 521 strbuf_release(&sb);
501 522 }
502 523
503 - static inline int parse_missing_action_value(const char *value)
524 + static inline int parse_missing_action_value(struct repository *repo,
525 + const char *value)
504 526 {
505 527 if (!strcmp(value, "error")) {
506 528 arg_missing_action = MA_ERROR;
@@ -509,25 +531,25 @@ static inline int parse_missing_action_value(const char *value)
509 531
510 532 if (!strcmp(value, "allow-any")) {
511 533 arg_missing_action = MA_ALLOW_ANY;
512 - fetch_if_missing = 0;
534 + repo->fetch_if_missing = 0;
513 535 return 1;
514 536 }
515 537
516 538 if (!strcmp(value, "print")) {
517 539 arg_missing_action = MA_PRINT;
518 - fetch_if_missing = 0;
540 + repo->fetch_if_missing = 0;
519 541 return 1;
520 542 }
521 543
522 544 if (!strcmp(value, "print-info")) {
523 545 arg_missing_action = MA_PRINT_INFO;
524 - fetch_if_missing = 0;
546 + repo->fetch_if_missing = 0;
525 547 return 1;
526 548 }
527 549
528 550 if (!strcmp(value, "allow-promisor")) {
529 551 arg_missing_action = MA_ALLOW_PROMISOR;
530 - fetch_if_missing = 0;
552 + repo->fetch_if_missing = 0;
531 553 return 1;
532 554 }
533 555
@@ -692,7 +714,7 @@ static void prepare_maximal_independent(struct rev_info *revs)
692 714 int cmd_rev_list(int argc,
693 715 const char **argv,
694 716 const char *prefix,
695 - struct repository *repo UNUSED)
717 + struct repository *repo)
696 718 {
697 719 struct rev_info revs;
698 720 struct rev_list_info info;
@@ -745,16 +767,21 @@ int cmd_rev_list(int argc,
745 767 for (i = 1; i < argc; i++) {
746 768 const char *arg = argv[i];
747 769 if (!strcmp(arg, "--exclude-promisor-objects")) {
748 - fetch_if_missing = 0;
770 + repo->fetch_if_missing = 0;
749 771 revs.exclude_promisor_objects = 1;
750 772 } else if (skip_prefix(arg, "--missing=", &arg)) {
751 - parse_missing_action_value(arg);
773 + parse_missing_action_value(repo, arg);
774 + } else if (!strcmp(arg, "--missing-only")) {
775 + arg_missing_only = 1;
752 776 } else if (!strcmp(arg, "-z")) {
753 777 line_term = '\0';
754 778 info_term = '\0';
755 779 }
756 780 }
757 781
782 + if (arg_missing_only && !should_collect_missing())
783 + die(_("--missing-only requires --missing=print or --missing=print-info"));
784 +
758 785 die_for_incompatible_opt2(revs.exclude_promisor_objects,
759 786 "--exclude_promisor_objects",
760 787 arg_missing_action, "--missing");
@@ -864,6 +891,9 @@ int cmd_rev_list(int argc,
864 891 continue;
865 892 }
866 893
894 + if (!strcmp(arg, "--missing-only"))
895 + continue;
896 +
867 897 usage(rev_list_usage);
868 898
869 899 }
@@ -910,6 +940,11 @@ int cmd_rev_list(int argc,
910 940 (revs.left_right || revs.cherry_mark))
911 941 die(_("marked counting and '%s' cannot be used together"), "--objects");
912 942
943 + die_for_incompatible_opt2(arg_missing_only, "--missing-only",
944 + revs.count, "--count");
945 + die_for_incompatible_opt2(arg_missing_only, "--missing-only",
946 + show_disk_usage, "--disk-usage");
947 +
913 948 save_commit_buffer = (revs.verbose_header ||
914 949 revs.grep_filter.pattern_list ||
915 950 revs.grep_filter.header_list);
@@ -967,8 +1002,7 @@ int cmd_rev_list(int argc,
967 1002
968 1003 if (arg_print_omitted)
969 1004 oidset_init(&omitted_objects, DEFAULT_OIDSET_SIZE);
970 - if (arg_missing_action == MA_PRINT ||
971 - arg_missing_action == MA_PRINT_INFO) {
1005 + if (should_collect_missing()) {
972 1006 struct oidset_iter iter;
973 1007 struct object_id *oid;
974 1008
@@ -994,8 +1028,7 @@ int cmd_rev_list(int argc,
994 1028 printf("~%s\n", oid_to_hex(oid));
995 1029 oidset_clear(&omitted_objects);
996 1030 }
997 - if (arg_missing_action == MA_PRINT ||
998 - arg_missing_action == MA_PRINT_INFO) {
1031 + if (should_collect_missing()) {
999 1032 struct missing_objects_map_entry *entry;
1000 1033 struct oidmap_iter iter;
1001 1034
modified builtin/stash.c
@@ -10,6 +10,7 @@
10 10 #include "object-name.h"
11 11 #include "parse-options.h"
12 12 #include "refs.h"
13 + #include "stash.h"
13 14 #include "lockfile.h"
14 15 #include "cache-tree.h"
15 16 #include "unpack-trees.h"
@@ -640,10 +641,12 @@ static void unstage_changes_unless_new(struct object_id *orig_tree)
640 641 die(_("could not write index"));
641 642 }
642 643
643 - static int do_apply_stash(const char *prefix, struct stash_info *info,
644 - int index, int quiet,
645 - const char *label_ours, const char *label_theirs,
646 - const char *label_base)
644 + static enum stash_apply_result do_apply_stash(const char *prefix,
645 + struct stash_info *info,
646 + int index, int quiet,
647 + const char *label_ours,
648 + const char *label_theirs,
649 + const char *label_base)
647 650 {
648 651 int clean, ret;
649 652 int has_index = index;
@@ -717,8 +720,8 @@ static int do_apply_stash(const char *prefix, struct stash_info *info,
717 720
718 721 /*
719 722 * If 'clean' >= 0, reverse the value for 'ret' so 'ret' is 0 when the
720 - * merge was clean, and nonzero if the merge was unclean or encountered
721 - * an error.
723 + * merge was clean, and 1 if the merge was unclean or a negative value
724 + * if it encountered an error.
722 725 */
723 726 ret = clean >= 0 ? !clean : clean;
724 727
@@ -2492,10 +2495,22 @@ int cmd_stash(int argc,
2492 2495 strbuf_addf(&stash_index_path, "%s.stash.%" PRIuMAX, index_file,
2493 2496 (uintmax_t)pid);
2494 2497
2495 - if (fn)
2496 - return !!fn(argc, argv, prefix, repo);
2497 - else if (!argc)
2498 + if (fn) {
2499 + ret = fn(argc, argv, prefix, repo);
2500 +
2501 + /*
2502 + * The subcommand implementations return 0 on success, a
2503 + * negative value on failure, and STASH_APPLY_CONFLICT
2504 + * when applying a stash entry resulted in conflicts.
2505 + * Map failures to 128, the status die() uses, so that
2506 + * exit status 1 unambiguously indicates conflicts.
2507 + */
2508 + if (ret < 0)
2509 + return 128;
2510 + return ret;
2511 + } else if (!argc) {
2498 2512 return !!push_stash_unassumed(0, NULL, prefix, repo);
2513 + }
2499 2514
2500 2515 /* Assume 'stash push' */
2501 2516 strvec_push(&args, "push");
modified builtin/submodule--helper.c
@@ -80,6 +80,7 @@ static int get_default_remote_submodule(const char *module_path, char **default_
80 80 struct repository subrepo;
81 81 const char *remote_name = NULL;
82 82 char *url = NULL;
83 + int ret = 0;
83 84
84 85 sub = submodule_from_path(the_repository, null_oid(the_hash_algo), module_path);
85 86 if (sub && sub->url) {
@@ -96,9 +97,11 @@ static int get_default_remote_submodule(const char *module_path, char **default_
96 97 }
97 98
98 99 if (repo_submodule_init(&subrepo, the_repository, module_path,
99 - null_oid(the_hash_algo)) < 0)
100 - return die_message(_("could not get a repository handle for submodule '%s'"),
100 + null_oid(the_hash_algo)) < 0) {
101 + ret = die_message(_("could not get a repository handle for submodule '%s'"),
101 102 module_path);
103 + goto out;
104 + }
102 105
103 106 /* Look up by URL first */
104 107 if (url)
@@ -108,10 +111,11 @@ static int get_default_remote_submodule(const char *module_path, char **default_
108 111
109 112 *default_remote = xstrdup(remote_name);
110 113
114 + out:
111 115 repo_clear(&subrepo);
112 116 free(url);
113 117
114 - return 0;
118 + return ret;
115 119 }
116 120
117 121 static int module_get_default_remote(int argc, const char **argv, const char *prefix,
@@ -3041,7 +3045,7 @@ static int module_update(int argc, const char **argv, const char *prefix,
3041 3045 NULL
3042 3046 };
3043 3047
3044 - update_clone_config_from_gitmodules(&opt.max_jobs);
3048 + update_clone_config_from_gitmodules(the_repository, &opt.max_jobs);
3045 3049 repo_config(the_repository, git_update_clone_config, &opt.max_jobs);
3046 3050
3047 3051 argc = parse_options(argc, argv, prefix, module_update_options,
@@ -3255,7 +3259,7 @@ static int module_set_url(int argc, const char **argv, const char *prefix,
3255 3259 path);
3256 3260
3257 3261 config_name = xstrfmt("submodule.%s.url", sub->name);
3258 - ret = config_set_in_gitmodules_file_gently(config_name, newurl);
3262 + ret = config_set_in_gitmodules_file_gently(the_repository, config_name, newurl);
3259 3263
3260 3264 if (!ret) {
3261 3265 repo_read_gitmodules(the_repository, 0);
@@ -3311,7 +3315,7 @@ static int module_set_branch(int argc, const char **argv, const char *prefix,
3311 3315 path);
3312 3316
3313 3317 config_name = xstrfmt("submodule.%s.branch", sub->name);
3314 - ret = config_set_in_gitmodules_file_gently(config_name, opt_branch);
3318 + ret = config_set_in_gitmodules_file_gently(the_repository, config_name, opt_branch);
3315 3319
3316 3320 free(config_name);
3317 3321 return !!ret;
@@ -3510,7 +3514,7 @@ static int config_submodule_in_gitmodules(const char *name, const char *var, con
3510 3514 die(_("please make sure that the .gitmodules file is in the working tree"));
3511 3515
3512 3516 key = xstrfmt("submodule.%s.%s", name, var);
3513 - ret = config_set_in_gitmodules_file_gently(key, value);
3517 + ret = config_set_in_gitmodules_file_gently(the_repository, key, value);
3514 3518 free(key);
3515 3519
3516 3520 return ret;
modified builtin/unpack-objects.c
@@ -358,51 +358,55 @@ static void unpack_non_delta_entry(enum object_type type, unsigned long size,
358 358 write_object(nr, type, buf, size);
359 359 }
360 360
361 - struct input_zstream_data {
361 + struct zlib_stream {
362 + struct odb_stream base;
362 363 git_zstream *zstream;
363 364 int status;
364 365 };
365 366
366 - static ssize_t feed_input_zstream(struct odb_write_stream *in_stream,
367 - unsigned char *buf, size_t buf_len)
367 + static ssize_t zlib_stream_read(struct odb_stream *in_stream,
368 + char *buf, size_t buf_len)
368 369 {
369 - struct input_zstream_data *data = in_stream->data;
370 + struct zlib_stream *data = container_of(in_stream, struct zlib_stream, base);
370 371 git_zstream *zstream = data->zstream;
371 - void *in = fill(1);
372 372
373 - if (in_stream->is_finished)
373 + if (data->status != Z_OK)
374 374 return 0;
375 375
376 - zstream->next_out = buf;
376 + zstream->next_out = (unsigned char *) buf;
377 377 zstream->avail_out = buf_len;
378 - zstream->next_in = in;
379 - zstream->avail_in = len;
380 378
381 - data->status = git_inflate(zstream, 0);
379 + while (data->status == Z_OK && zstream->avail_out == buf_len) {
380 + zstream->next_in = fill(1);
381 + zstream->avail_in = len;
382 + data->status = git_inflate(zstream, 0);
383 + use(len - zstream->avail_in);
384 + }
382 385
383 - in_stream->is_finished = data->status != Z_OK;
384 - use(len - zstream->avail_in);
385 386 return buf_len - zstream->avail_out;
386 387 }
387 388
388 389 static void stream_blob(unsigned long size, unsigned nr)
389 390 {
390 391 git_zstream zstream = { 0 };
391 - struct input_zstream_data data = { 0 };
392 - struct odb_write_stream in_stream = {
393 - .read = feed_input_zstream,
394 - .data = &data,
392 + struct zlib_stream in_stream = {
393 + .base = {
394 + .read = zlib_stream_read,
395 + .size = size,
396 + .type = OBJ_BLOB,
397 + },
398 + .zstream = &zstream,
399 + .status = Z_OK,
395 400 };
396 401 struct obj_info *info = &obj_list[nr];
397 402
398 - data.zstream = &zstream;
399 403 git_inflate_init(&zstream);
400 404
401 - if (odb_write_object_stream(the_repository->objects, &in_stream, size, &info->oid))
405 + if (odb_write_object_stream(the_repository->objects, &in_stream.base, &info->oid))
402 406 die(_("failed to write object in stream"));
403 407
404 - if (data.status != Z_STREAM_END)
405 - die(_("inflate returned (%d)"), data.status);
408 + if (in_stream.status != Z_STREAM_END)
409 + die(_("inflate returned (%d)"), in_stream.status);
406 410 git_inflate_end(&zstream);
407 411
408 412 if (strict) {
@@ -603,7 +607,7 @@ static void unpack_all(void)
603 607 unpack_one(i);
604 608 display_progress(progress, i + 1);
605 609 }
606 - odb_transaction_commit(transaction);
610 + odb_transaction_commit_and_finalize_or_die(transaction);
607 611 stop_progress(&progress);
608 612
609 613 if (delta_list)
modified builtin/update-index.c
@@ -1156,7 +1156,7 @@ int cmd_update_index(int argc,
1156 1156 * a transaction.
1157 1157 */
1158 1158 if (transaction && verbose) {
1159 - odb_transaction_commit(transaction);
1159 + odb_transaction_commit_and_finalize_or_die(transaction);
1160 1160 transaction = NULL;
1161 1161 }
1162 1162
@@ -1224,7 +1224,7 @@ int cmd_update_index(int argc,
1224 1224 /*
1225 1225 * By now we have added all of the new objects
1226 1226 */
1227 - odb_transaction_commit(transaction);
1227 + odb_transaction_commit_and_finalize_or_die(transaction);
1228 1228
1229 1229 if (split_index > 0) {
1230 1230 if (repo_config_get_split_index(the_repository) == 0)
modified builtin/worktree.c
@@ -294,7 +294,7 @@ static void remove_junk_on_signal(int signo)
294 294 raise(signo);
295 295 }
296 296
297 - static const char *worktree_basename(const char *path, int *olen)
297 + static char *worktree_basename_dup(const char *path)
298 298 {
299 299 const char *name;
300 300 int len;
@@ -303,14 +303,11 @@ static const char *worktree_basename(const char *path, int *olen)
303 303 while (len && is_dir_sep(path[len - 1]))
304 304 len--;
305 305
306 - for (name = path + len - 1; name > path; name--)
307 - if (is_dir_sep(*name)) {
308 - name++;
309 - break;
310 - }
306 + name = path + len;
307 + while (name > path && !is_dir_sep(name[-1]))
308 + name--;
311 309
312 - *olen = len;
313 - return name;
310 + return xmemdupz(name, path + len - name);
314 311 }
315 312
316 313 /* check that path is viable location for worktree */
@@ -464,6 +461,7 @@ static int add_worktree(const char *path, const char *refname,
464 461 struct strbuf sb_git = STRBUF_INIT, sb_repo = STRBUF_INIT;
465 462 struct strbuf sb = STRBUF_INIT;
466 463 const char *name;
464 + char *name_to_free = NULL;
467 465 struct strvec child_env = STRVEC_INIT;
468 466 unsigned int counter = 0;
469 467 int len, ret;
@@ -491,12 +489,12 @@ static int add_worktree(const char *path, const char *refname,
491 489 if (!commit && !opts->orphan)
492 490 die(_("invalid reference: %s"), refname);
493 491
494 - name = worktree_basename(path, &len);
495 - strbuf_add(&sb, name, path + len - name);
496 - sanitize_refname_component(sb.buf, &sb_name);
492 + name = name_to_free = worktree_basename_dup(path);
493 + if (!*name)
494 + die(_("invalid path '%s'"), path);
495 + sanitize_refname_component(name, &sb_name);
497 496 if (!sb_name.len)
498 - BUG("How come '%s' becomes empty after sanitization?", sb.buf);
499 - strbuf_reset(&sb);
497 + BUG("How come '%s' becomes empty after sanitization?", name);
500 498 name = sb_name.buf;
501 499 repo_git_path_replace(the_repository, &sb_repo, "worktrees/%s", name);
502 500 len = sb_repo.len;
@@ -630,6 +628,7 @@ done:
630 628 strbuf_release(&sb_git);
631 629 strbuf_release(&sb_name);
632 630 free_worktree(wt);
631 + free(name_to_free);
633 632 return ret;
634 633 }
635 634
@@ -764,12 +763,29 @@ static int dwim_orphan(const struct add_opts *opts, int opt_track, int remote)
764 763 return 1;
765 764 }
766 765
767 - static char *dwim_branch(const char *path, char **new_branch)
766 + static void advise_disambiguating_remotes(const char *path, const char *branch,
767 + const struct string_list *matched_remote_names)
768 + {
769 + struct string_list_item *item;
770 +
771 + advise(_("Branch name '%s' appears in multiple remotes:"), branch);
772 + for_each_string_list_item(item, matched_remote_names) {
773 + advise(_(" %s"), item->string);
774 + }
775 + advise(_("If you meant to create a worktree from a remote tracking branch on\n"
776 + "<remote>, you can do so by:\n"
777 + "\n"
778 + " git worktree add -b %s %s <remote>/%s\n"
779 + "\n"
780 + "If you'd like to always prefer some remote, e.g. 'origin',\n"
781 + "consider setting checkout.defaultRemote=origin in your config."),
782 + branch, path, branch);
783 + }
784 +
785 + static char *dwim_branch(const struct add_opts *opts, const char *path, char **new_branch)
768 786 {
769 - int n;
770 787 int branch_exists;
771 - const char *s = worktree_basename(path, &n);
772 - char *branchname = xstrndup(s, n);
788 + char *branchname = worktree_basename_dup(path);
773 789 struct strbuf ref = STRBUF_INIT;
774 790
775 791 branch_exists = !check_branch_ref(the_repository, &ref, branchname) &&
@@ -782,7 +798,21 @@ static char *dwim_branch(const char *path, char **new_branch)
782 798 *new_branch = branchname;
783 799 if (guess_remote) {
784 800 struct object_id oid;
785 - char *remote = unique_tracking_name(*new_branch, &oid, NULL);
801 + char *remote;
802 + int num_matches = 0;
803 + struct string_list matched_remote_names = STRING_LIST_INIT_DUP;
804 +
805 + remote = unique_tracking_name(*new_branch, &oid, &num_matches,
806 + &matched_remote_names);
807 + if (!remote && num_matches > 1) {
808 + if (!opts->quiet &&
809 + advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME))
810 + advise_disambiguating_remotes(path, *new_branch,
811 + &matched_remote_names);
812 + die(_("'%s' matched multiple (%d) remote tracking branches"),
813 + *new_branch, num_matches);
814 + }
815 + string_list_clear(&matched_remote_names, 0);
786 816 return remote;
787 817 }
788 818 return NULL;
@@ -876,9 +906,7 @@ static int add(int ac, const char **av, const char *prefix,
876 906 }
877 907
878 908 if (opts.orphan && !new_branch) {
879 - int n;
880 - const char *s = worktree_basename(path, &n);
881 - new_branch = new_branch_to_free = xstrndup(s, n);
909 + new_branch = new_branch_to_free = worktree_basename_dup(path);
882 910 } else if (opts.orphan) {
883 911 ; /* no-op */
884 912 } else if (opts.detach) {
@@ -890,25 +918,40 @@ static int add(int ac, const char **av, const char *prefix,
890 918 opts.orphan = dwim_orphan(&opts, !!opt_track, 0);
891 919 } else if (ac < 2) {
892 920 /* DWIM: Guess branch name from path. */
893 - char *s = dwim_branch(path, &new_branch_to_free);
921 + char *s = dwim_branch(&opts, path, &new_branch_to_free);
894 922 if (s)
895 923 branch = branch_to_free = s;
896 924 new_branch = new_branch_to_free;
897 925
898 926 /* DWIM: Infer --orphan when repo has no refs. */
899 927 opts.orphan = (!s) && dwim_orphan(&opts, !!opt_track, 1);
928 + } else if (ac == 2 && new_branch) {
929 + if (!strcmp(branch, "HEAD"))
930 + can_use_local_refs(&opts);
900 931 } else if (ac == 2) {
901 - struct object_id oid;
902 932 struct commit *commit;
903 - char *remote;
904 933
905 934 commit = lookup_commit_reference_by_name(branch);
906 935 if (!commit) {
907 - remote = unique_tracking_name(branch, &oid, NULL);
936 + struct object_id oid;
937 + char *remote;
938 + int num_matches = 0;
939 + struct string_list matched_remote_names = STRING_LIST_INIT_DUP;
940 +
941 + remote = unique_tracking_name(branch, &oid, &num_matches,
942 + &matched_remote_names);
908 943 if (remote) {
909 944 new_branch = branch;
910 945 branch = new_branch_to_free = remote;
946 + } else if (num_matches > 1) {
947 + if (!opts.quiet &&
948 + advice_enabled(ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME))
949 + advise_disambiguating_remotes(path, branch,
950 + &matched_remote_names);
951 + die(_("'%s' matched multiple (%d) remote tracking branches"),
952 + branch, num_matches);
911 953 }
954 + string_list_clear(&matched_remote_names, 0);
912 955 }
913 956
914 957 if (!strcmp(branch, "HEAD"))
modified bundle.c
@@ -1,4 +1,3 @@
1 - #define USE_THE_REPOSITORY_VARIABLE
2 1 #define DISABLE_SIGN_COMPARE_WARNINGS
3 2
4 3 #include "git-compat-util.h"
@@ -21,6 +20,13 @@
21 20 #include "connected.h"
22 21 #include "write-or-die.h"
23 22
23 + /*
24 + * NEEDSWORK: this function implicitly depends on `the_repository` and is not
25 + * available because we dropped USE_THE_REPOSITORY_VARIABLE. We can remove the
26 + * declaration once it's accessible via `repo_config_values`.
27 + */
28 + extern const char *get_log_output_encoding(void);
29 +
24 30 static const char v2_bundle_signature[] = "# v2 git bundle\n";
25 31 static const char v3_bundle_signature[] = "# v3 git bundle\n";
26 32 static struct {
@@ -294,7 +300,8 @@ int list_bundle_refs(struct bundle_header *header, int argc, const char **argv)
294 300 return list_refs(&header->references, argc, argv);
295 301 }
296 302
297 - static int is_tag_in_date_range(struct object *tag, struct rev_info *revs)
303 + static int is_tag_in_date_range(struct repository *repo,
304 + struct object *tag, struct rev_info *revs)
298 305 {
299 306 size_t size;
300 307 enum object_type type;
@@ -305,7 +312,7 @@ static int is_tag_in_date_range(struct object *tag, struct rev_info *revs)
305 312 if (revs->max_age == -1 && revs->min_age == -1)
306 313 goto out;
307 314
308 - buf = odb_read_object(the_repository->objects, &tag->oid, &type, &size);
315 + buf = odb_read_object(repo->objects, &tag->oid, &type, &size);
309 316 if (!buf)
310 317 goto out;
311 318 line = memmem(buf, size, "\ntagger ", 8);
@@ -325,50 +332,52 @@ out:
325 332
326 333
327 334 /* Write the pack data to bundle_fd */
328 - static int write_pack_data(int bundle_fd, struct rev_info *revs, struct strvec *pack_options)
335 + static int write_pack_data(int bundle_fd, struct rev_info *revs, int progress)
329 336 {
330 - struct child_process pack_objects = CHILD_PROCESS_INIT;
337 + struct odb_generate_pack_options opts = ODB_GENERATE_PACK_OPTIONS_INIT;
338 + struct odb_pack_generator *generator;
339 + int ret = 0;
331 340 int i;
332 341
333 - strvec_pushl(&pack_objects.args,
334 - "pack-objects",
335 - "--stdout", "--thin", "--delta-base-offset",
336 - NULL);
337 - strvec_pushv(&pack_objects.args, pack_options->v);
342 + opts.thin = 1;
343 + opts.ofs_delta = 1;
344 + if (progress)
345 + opts.progress = ODB_GENERATE_PACK_PROGRESS_VERBOSE;
338 346 if (revs->filter.choice)
339 - strvec_pushf(&pack_objects.args, "--filter=%s",
340 - list_objects_filter_spec(&revs->filter));
341 - pack_objects.in = -1;
342 - pack_objects.out = bundle_fd;
343 - pack_objects.git_cmd = 1;
347 + opts.filter_spec = list_objects_filter_spec(&revs->filter);
344 348
345 349 /*
346 - * start_command() will close our descriptor if it's >1. Duplicate it
347 - * to avoid surprising the caller.
350 + * The pack generator will consume our descriptor if it's >1.
351 + * Duplicate it to avoid surprising the caller.
348 352 */
349 - if (pack_objects.out > 1) {
350 - pack_objects.out = dup(pack_objects.out);
351 - if (pack_objects.out < 0) {
352 - error_errno(_("unable to dup bundle descriptor"));
353 - child_process_clear(&pack_objects);
354 - return -1;
355 - }
353 + opts.pack_fd = bundle_fd;
354 + if (opts.pack_fd > 1) {
355 + opts.pack_fd = dup(bundle_fd);
356 + if (opts.pack_fd < 0)
357 + return error_errno(_("unable to dup bundle descriptor"));
356 358 }
357 359
358 - if (start_command(&pack_objects))
359 - return error(_("Could not spawn pack-objects"));
360 -
361 360 for (i = 0; i < revs->pending.nr; i++) {
362 361 struct object *object = revs->pending.objects[i].item;
363 362 if (object->flags & UNINTERESTING)
364 - write_or_die(pack_objects.in, "^", 1);
365 - write_or_die(pack_objects.in, oid_to_hex(&object->oid), the_hash_algo->hexsz);
366 - write_or_die(pack_objects.in, "\n", 1);
363 + oid_array_append(&opts.haves, &object->oid);
364 + else
365 + oid_array_append(&opts.wants, &object->oid);
367 366 }
368 - close(pack_objects.in);
369 - if (finish_command(&pack_objects))
370 - return error(_("pack-objects died"));
371 - return 0;
367 +
368 + if (odb_generate_pack(revs->repo->objects, &generator, &opts)) {
369 + ret = error(_("Could not spawn pack-objects"));
370 + goto out;
371 + }
372 +
373 + if (odb_pack_generator_finish(generator)) {
374 + ret = error(_("pack-objects died"));
375 + goto out;
376 + }
377 +
378 + out:
379 + odb_generate_pack_options_release(&opts);
380 + return ret;
372 381 }
373 382
374 383 /*
@@ -395,10 +404,10 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
395 404
396 405 if (e->item->flags & UNINTERESTING)
397 406 continue;
398 - if (repo_dwim_ref(the_repository, e->name, strlen(e->name),
407 + if (repo_dwim_ref(revs->repo, e->name, strlen(e->name),
399 408 &oid, &ref, 0) != 1)
400 409 goto skip_write_ref;
401 - if (refs_read_ref_full(get_main_ref_store(the_repository), e->name, RESOLVE_REF_READING, &oid, &flag))
410 + if (refs_read_ref_full(get_main_ref_store(revs->repo), e->name, RESOLVE_REF_READING, &oid, &flag))
402 411 flag = 0;
403 412 display_ref = (flag & REF_ISSYMREF) ? e->name : ref;
404 413
@@ -406,7 +415,7 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
406 415 goto skip_write_ref;
407 416
408 417 if (e->item->type == OBJ_TAG &&
409 - !is_tag_in_date_range(e->item, revs)) {
418 + !is_tag_in_date_range(revs->repo, e->item, revs)) {
410 419 e->item->flags |= UNINTERESTING;
411 420 goto skip_write_ref;
412 421 }
@@ -428,7 +437,8 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
428 437
429 438 ref_count++;
430 439 strset_add(&objects, display_ref);
431 - write_or_die(bundle_fd, oid_to_hex(&e->item->oid), the_hash_algo->hexsz);
440 + write_or_die(bundle_fd, oid_to_hex(&e->item->oid),
441 + revs->repo->hash_algo->hexsz);
432 442 write_or_die(bundle_fd, " ", 1);
433 443 write_or_die(bundle_fd, display_ref, strlen(display_ref));
434 444 write_or_die(bundle_fd, "\n", 1);
@@ -476,7 +486,7 @@ static void write_bundle_prerequisites(struct commit *commit, void *data)
476 486 }
477 487
478 488 int create_bundle(struct repository *r, const char *path,
479 - int argc, const char **argv, struct strvec *pack_options, int version)
489 + int argc, const char **argv, int version, int progress)
480 490 {
481 491 struct lock_file lock = LOCK_INIT;
482 492 int bundle_fd = -1;
@@ -507,7 +517,7 @@ int create_bundle(struct repository *r, const char *path,
507 517 * SHA1.
508 518 * 2. @filter is required because we parsed an object filter.
509 519 */
510 - if (the_hash_algo != &hash_algos[GIT_HASH_SHA1_LEGACY] || revs.filter.choice)
520 + if (r->hash_algo != &hash_algos[GIT_HASH_SHA1_LEGACY] || revs.filter.choice)
511 521 min_version = 3;
512 522
513 523 if (argc > 1) {
@@ -528,14 +538,15 @@ int create_bundle(struct repository *r, const char *path,
528 538 if (version < 2 || version > 3) {
529 539 die(_("unsupported bundle version %d"), version);
530 540 } else if (version < min_version) {
531 - die(_("cannot write bundle version %d with algorithm %s"), version, the_hash_algo->name);
541 + die(_("cannot write bundle version %d with algorithm %s"), version,
542 + r->hash_algo->name);
532 543 } else if (version == 2) {
533 544 write_or_die(bundle_fd, v2_bundle_signature, strlen(v2_bundle_signature));
534 545 } else {
535 546 const char *capability = "@object-format=";
536 547 write_or_die(bundle_fd, v3_bundle_signature, strlen(v3_bundle_signature));
537 548 write_or_die(bundle_fd, capability, strlen(capability));
538 - write_or_die(bundle_fd, the_hash_algo->name, strlen(the_hash_algo->name));
549 + write_or_die(bundle_fd, r->hash_algo->name, strlen(r->hash_algo->name));
539 550 write_or_die(bundle_fd, "\n", 1);
540 551
541 552 if (revs.filter.choice) {
@@ -584,7 +595,7 @@ int create_bundle(struct repository *r, const char *path,
584 595 }
585 596
586 597 /* write pack */
587 - if (write_pack_data(bundle_fd, &revs_copy, pack_options)) {
598 + if (write_pack_data(bundle_fd, &revs_copy, progress)) {
588 599 ret = -1;
589 600 goto out;
590 601 }
modified bundle.h
@@ -27,8 +27,7 @@ int read_bundle_header(const char *path, struct bundle_header *header);
27 27 int read_bundle_header_fd(int fd, struct bundle_header *header,
28 28 const char *report_path);
29 29 int create_bundle(struct repository *r, const char *path,
30 - int argc, const char **argv, struct strvec *pack_options,
31 - int version);
30 + int argc, const char **argv, int version, int progress);
32 31
33 32 enum verify_bundle_flags {
34 33 VERIFY_BUNDLE_VERBOSE = (1 << 0),
modified cache-tree.c
@@ -1,4 +1,3 @@
1 - #define USE_THE_REPOSITORY_VARIABLE
2 1 #define DISABLE_SIGN_COMPARE_WARNINGS
3 2
4 3 #include "git-compat-util.h"
@@ -275,28 +274,37 @@ static void discard_unused_subtrees(struct cache_tree *it)
275 274 }
276 275 }
277 276
278 - int cache_tree_fully_valid(struct cache_tree *it)
277 + static int cache_tree_fully_valid_recursive(struct object_database *odb,
278 + struct cache_tree *it)
279 279 {
280 280 int i;
281 281 if (!it)
282 282 return 0;
283 283 if (it->entry_count < 0 ||
284 - !odb_has_object(the_repository->objects, &it->oid,
284 + !odb_has_object(odb, &it->oid,
285 285 ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR))
286 286 return 0;
287 287 for (i = 0; i < it->subtree_nr; i++) {
288 - if (!cache_tree_fully_valid(it->down[i]->cache_tree))
288 + if (!cache_tree_fully_valid_recursive(odb, it->down[i]->cache_tree))
289 289 return 0;
290 290 }
291 291 return 1;
292 292 }
293 293
294 - static int must_check_existence(const struct cache_entry *ce)
294 + int cache_tree_fully_valid(struct index_state *istate)
295 295 {
296 - return !(repo_has_promisor_remote(the_repository) && ce_skip_worktree(ce));
296 + return cache_tree_fully_valid_recursive(istate->repo->objects,
297 + istate->cache_tree);
297 298 }
298 299
299 - static int update_one(struct cache_tree *it,
300 + static int must_check_existence(const struct cache_entry *ce, void *cb_data)
301 + {
302 + struct repository *repo = cb_data;
303 + return !(repo_has_promisor_remote(repo) && ce_skip_worktree(ce));
304 + }
305 +
306 + static int update_one(struct repository *repo,
307 + struct cache_tree *it,
300 308 struct cache_entry **cache,
301 309 int entries,
302 310 const char *base,
@@ -334,7 +342,7 @@ static int update_one(struct cache_tree *it,
334 342 }
335 343
336 344 if (0 <= it->entry_count &&
337 - odb_has_object(the_repository->objects, &it->oid,
345 + odb_has_object(repo->objects, &it->oid,
338 346 ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR))
339 347 return it->entry_count;
340 348
@@ -375,7 +383,8 @@ static int update_one(struct cache_tree *it,
375 383 sub = find_subtree(it, path + baselen, sublen, 1);
376 384 if (!sub->cache_tree)
377 385 sub->cache_tree = cache_tree();
378 - subcnt = update_one(sub->cache_tree,
386 + subcnt = update_one(repo,
387 + sub->cache_tree,
379 388 cache + i, entries - i,
380 389 path,
381 390 baselen + sublen + 1,
@@ -439,10 +448,10 @@ static int update_one(struct cache_tree *it,
439 448 }
440 449
441 450 ce_missing_ok = mode == S_IFGITLINK || missing_ok ||
442 - !must_check_existence(ce);
451 + !must_check_existence(ce, repo);
443 452 if (is_null_oid(oid) ||
444 453 (!ce_missing_ok &&
445 - !odb_has_object(the_repository->objects, oid,
454 + !odb_has_object(repo->objects, oid,
446 455 ODB_HAS_OBJECT_RECHECK_PACKED | ODB_HAS_OBJECT_FETCH_PROMISOR))) {
447 456 strbuf_release(&buffer);
448 457 if (expected_missing)
@@ -474,12 +483,12 @@ static int update_one(struct cache_tree *it,
474 483 /*
475 484 * "sub" can be an empty tree if all subentries are i-t-a.
476 485 */
477 - if (contains_ita && is_empty_tree_oid(oid, the_repository->hash_algo))
486 + if (contains_ita && is_empty_tree_oid(oid, repo->hash_algo))
478 487 continue;
479 488
480 489 strbuf_grow(&buffer, entlen + 100);
481 490 strbuf_addf(&buffer, "%o %.*s%c", mode, entlen, path + baselen, '\0');
482 - strbuf_add(&buffer, oid->hash, the_hash_algo->rawsz);
491 + strbuf_add(&buffer, oid->hash, repo->hash_algo->rawsz);
483 492
484 493 #if DEBUG_CACHE_TREE
485 494 fprintf(stderr, "cache-tree update-one %o %.*s\n",
@@ -489,16 +498,16 @@ static int update_one(struct cache_tree *it,
489 498
490 499 if (repair) {
491 500 struct object_id oid;
492 - hash_object_file(the_hash_algo, buffer.buf, buffer.len,
501 + hash_object_file(repo->hash_algo, buffer.buf, buffer.len,
493 502 OBJ_TREE, &oid);
494 - if (odb_has_object(the_repository->objects, &oid, ODB_HAS_OBJECT_RECHECK_PACKED))
503 + if (odb_has_object(repo->objects, &oid, ODB_HAS_OBJECT_RECHECK_PACKED))
495 504 oidcpy(&it->oid, &oid);
496 505 else
497 506 to_invalidate = 1;
498 507 } else if (dryrun) {
499 - hash_object_file(the_hash_algo, buffer.buf, buffer.len,
508 + hash_object_file(repo->hash_algo, buffer.buf, buffer.len,
500 509 OBJ_TREE, &it->oid);
501 - } else if (odb_write_object_ext(the_repository->objects, buffer.buf, buffer.len, OBJ_TREE,
510 + } else if (odb_write_object_ext(repo->objects, buffer.buf, buffer.len, OBJ_TREE,
502 511 &it->oid, NULL, flags & WRITE_TREE_SILENT ? ODB_WRITE_OBJECT_SILENT : 0)) {
503 512 strbuf_release(&buffer);
504 513 return -1;
@@ -516,7 +525,7 @@ static int update_one(struct cache_tree *it,
516 525
517 526 int cache_tree_update(struct index_state *istate, int flags)
518 527 {
519 - int inflight = !!the_repository->objects->transaction;
528 + int inflight = !!istate->repo->objects->transaction;
520 529 struct odb_transaction *transaction;
521 530 int skip, i;
522 531
@@ -528,17 +537,17 @@ int cache_tree_update(struct index_state *istate, int flags)
528 537 if (!istate->cache_tree)
529 538 istate->cache_tree = cache_tree();
530 539
531 - if (!(flags & WRITE_TREE_MISSING_OK) && repo_has_promisor_remote(the_repository))
532 - prefetch_cache_entries(istate, must_check_existence);
540 + if (!(flags & WRITE_TREE_MISSING_OK) && repo_has_promisor_remote(istate->repo))
541 + prefetch_cache_entries(istate, must_check_existence, istate->repo);
533 542
534 543 trace_performance_enter();
535 544 trace2_region_enter("cache_tree", "update", istate->repo);
536 545 if (!inflight)
537 - odb_transaction_begin_or_die(the_repository->objects, &transaction, 0);
538 - i = update_one(istate->cache_tree, istate->cache, istate->cache_nr,
546 + odb_transaction_begin_or_die(istate->repo->objects, &transaction, 0);
547 + i = update_one(istate->repo, istate->cache_tree, istate->cache, istate->cache_nr,
539 548 "", 0, &skip, flags);
540 549 if (!inflight)
541 - odb_transaction_commit(transaction);
550 + odb_transaction_commit_and_finalize_or_die(transaction);
542 551 trace2_region_leave("cache_tree", "update", istate->repo);
543 552 trace_performance_leave("cache_tree_update");
544 553 if (i < 0)
@@ -547,7 +556,8 @@ int cache_tree_update(struct index_state *istate, int flags)
547 556 return 0;
548 557 }
549 558
550 - static void write_one(struct strbuf *buffer, struct cache_tree *it,
559 + static void write_one(struct repository *repo,
560 + struct strbuf *buffer, struct cache_tree *it,
551 561 const char *path, int pathlen)
552 562 {
553 563 int i;
@@ -573,7 +583,7 @@ static void write_one(struct strbuf *buffer, struct cache_tree *it,
573 583 #endif
574 584
575 585 if (0 <= it->entry_count) {
576 - strbuf_add(buffer, it->oid.hash, the_hash_algo->rawsz);
586 + strbuf_add(buffer, it->oid.hash, repo->hash_algo->rawsz);
577 587 }
578 588 for (i = 0; i < it->subtree_nr; i++) {
579 589 struct cache_tree_sub *down = it->down[i];
@@ -583,15 +593,16 @@ static void write_one(struct strbuf *buffer, struct cache_tree *it,
583 593 prev->name, prev->namelen) <= 0)
584 594 die("fatal - unsorted cache subtree");
585 595 }
586 - write_one(buffer, down->cache_tree, down->name, down->namelen);
596 + write_one(repo, buffer, down->cache_tree, down->name, down->namelen);
587 597 }
588 598 }
589 599
590 - void cache_tree_write(struct strbuf *sb, struct cache_tree *root)
600 + void cache_tree_write(struct repository *repo,
601 + struct strbuf *sb, struct cache_tree *root)
591 602 {
592 - trace2_region_enter("cache_tree", "write", the_repository);
593 - write_one(sb, root, "", 0);
594 - trace2_region_leave("cache_tree", "write", the_repository);
603 + trace2_region_enter("cache_tree", "write", repo);
604 + write_one(repo, sb, root, "", 0);
605 + trace2_region_leave("cache_tree", "write", repo);
595 606 }
596 607
597 608 static int parse_int(const char **ptr, unsigned long *len_p, int *out)
@@ -625,13 +636,14 @@ static int parse_int(const char **ptr, unsigned long *len_p, int *out)
625 636 return 0;
626 637 }
627 638
628 - static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
639 + static struct cache_tree *read_one(struct repository *repo,
640 + const char **buffer, unsigned long *size_p)
629 641 {
630 642 const char *buf = *buffer;
631 643 unsigned long size = *size_p;
632 644 struct cache_tree *it;
633 645 int i, subtree_nr;
634 - const unsigned rawsz = the_hash_algo->rawsz;
646 + const unsigned rawsz = repo->hash_algo->rawsz;
635 647
636 648 it = NULL;
637 649 /* skip name, but make sure name exists */
@@ -658,7 +670,7 @@ static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
658 670 if (size < rawsz)
659 671 goto free_return;
660 672 oidread(&it->oid, (const unsigned char *)buf,
661 - the_repository->hash_algo);
673 + repo->hash_algo);
662 674 buf += rawsz;
663 675 size -= rawsz;
664 676 }
@@ -686,7 +698,7 @@ static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
686 698 struct cache_tree_sub *subtree;
687 699 const char *name = buf;
688 700
689 - sub = read_one(&buf, &size);
701 + sub = read_one(repo, &buf, &size);
690 702 if (!sub)
691 703 goto free_return;
692 704 subtree = cache_tree_sub(it, name);
@@ -703,16 +715,17 @@ static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
703 715 return NULL;
704 716 }
705 717
706 - struct cache_tree *cache_tree_read(const char *buffer, unsigned long size)
718 + struct cache_tree *cache_tree_read(struct repository *repo,
719 + const char *buffer, unsigned long size)
707 720 {
708 721 struct cache_tree *result;
709 722
710 723 if (buffer[0])
711 724 return NULL; /* not the whole tree */
712 725
713 - trace2_region_enter("cache_tree", "read", the_repository);
714 - result = read_one(&buffer, &size);
715 - trace2_region_leave("cache_tree", "read", the_repository);
726 + trace2_region_enter("cache_tree", "read", repo);
727 + result = read_one(repo, &buffer, &size);
728 + trace2_region_leave("cache_tree", "read", repo);
716 729
717 730 return result;
718 731 }
@@ -775,7 +788,7 @@ struct tree *write_in_core_index_as_tree(struct repository *repo,
775 788 int was_valid, ret;
776 789
777 790 was_valid = index_state->cache_tree &&
778 - cache_tree_fully_valid(index_state->cache_tree);
791 + cache_tree_fully_valid(index_state);
779 792
780 793 ret = write_index_as_tree_internal(&o, index_state, was_valid, 0, NULL);
781 794 if (ret == WRITE_TREE_UNMERGED_INDEX) {
@@ -803,7 +816,7 @@ int write_index_as_tree(struct object_id *oid, struct index_state *index_state,
803 816 hold_lock_file_for_update(&lock_file, index_path, LOCK_DIE_ON_ERROR);
804 817
805 818 entries = read_index_from(index_state, index_path,
806 - repo_get_git_dir(the_repository));
819 + repo_get_git_dir(index_state->repo));
807 820 if (entries < 0) {
808 821 ret = WRITE_TREE_UNREADABLE_INDEX;
809 822 goto out;
@@ -811,7 +824,7 @@ int write_index_as_tree(struct object_id *oid, struct index_state *index_state,
811 824
812 825 was_valid = !(flags & WRITE_TREE_IGNORE_CACHE_TREE) &&
813 826 index_state->cache_tree &&
814 - cache_tree_fully_valid(index_state->cache_tree);
827 + cache_tree_fully_valid(index_state);
815 828
816 829 ret = write_index_as_tree_internal(oid, index_state, was_valid, flags,
817 830 prefix);
@@ -859,7 +872,7 @@ static void prime_cache_tree_rec(struct repository *r,
859 872 struct cache_tree_sub *sub;
860 873 struct tree *subtree = lookup_tree(r, &entry.oid);
861 874
862 - if (repo_parse_tree(the_repository, subtree) < 0)
875 + if (repo_parse_tree(r, subtree) < 0)
863 876 exit(128);
864 877 sub = cache_tree_sub(it, entry.path);
865 878 sub->cache_tree = cache_tree();
modified cache-tree.h
@@ -28,10 +28,11 @@ struct cache_tree_sub *cache_tree_sub(struct cache_tree *, const char *);
28 28
29 29 int cache_tree_subtree_pos(struct cache_tree *it, const char *path, int pathlen);
30 30
31 - void cache_tree_write(struct strbuf *, struct cache_tree *root);
32 - struct cache_tree *cache_tree_read(const char *buffer, unsigned long size);
31 + void cache_tree_write(struct repository *repo, struct strbuf *, struct cache_tree *root);
32 + struct cache_tree *cache_tree_read(struct repository *repo,
33 + const char *buffer, unsigned long size);
33 34
34 - int cache_tree_fully_valid(struct cache_tree *);
35 + int cache_tree_fully_valid(struct index_state *);
35 36 int cache_tree_update(struct index_state *, int);
36 37 int cache_tree_verify(struct repository *, struct index_state *);
37 38
modified chdir-notify.c
@@ -7,25 +7,22 @@
7 7 #include "trace.h"
8 8
9 9 struct chdir_notify_entry {
10 - const char *name;
11 10 chdir_notify_callback cb;
12 11 void *data;
13 12 struct list_head list;
14 13 };
15 14 static LIST_HEAD(chdir_notify_entries);
16 15
17 - void chdir_notify_register(const char *name,
18 - chdir_notify_callback cb,
16 + void chdir_notify_register(chdir_notify_callback cb,
19 17 void *data)
20 18 {
21 19 struct chdir_notify_entry *e = xmalloc(sizeof(*e));
22 - e->name = name;
23 20 e->cb = cb;
24 21 e->data = data;
25 22 list_add_tail(&e->list, &chdir_notify_entries);
26 23 }
27 24
28 - void chdir_notify_unregister(const char *name, chdir_notify_callback cb,
25 + void chdir_notify_unregister(chdir_notify_callback cb,
29 26 void *data)
30 27 {
31 28 struct list_head *pos, *p;
@@ -34,8 +31,7 @@ void chdir_notify_unregister(const char *name, chdir_notify_callback cb,
34 31 struct chdir_notify_entry *e =
35 32 list_entry(pos, struct chdir_notify_entry, list);
36 33
37 - if (e->cb != cb || e->data != data || !e->name != !name ||
38 - (e->name && strcmp(e->name, name)))
34 + if (e->cb != cb || e->data != data)
39 35 continue;
40 36
41 37 list_del(pos);
@@ -64,7 +60,7 @@ int chdir_notify(const char *new_cwd)
64 60 list_for_each(pos, &chdir_notify_entries) {
65 61 struct chdir_notify_entry *e =
66 62 list_entry(pos, struct chdir_notify_entry, list);
67 - e->cb(e->name, old_cwd.buf, new_cwd, e->data);
63 + e->cb(old_cwd.buf, new_cwd, e->data);
68 64 }
69 65
70 66 strbuf_release(&old_cwd);
modified chdir-notify.h
@@ -33,13 +33,11 @@
33 33 * $GIT_TRACE_SETUP. It may be NULL, but if non-NULL should point to
34 34 * storage which lasts as long as the registration is active.
35 35 */
36 - typedef void (*chdir_notify_callback)(const char *name,
37 - const char *old_cwd,
36 + typedef void (*chdir_notify_callback)(const char *old_cwd,
38 37 const char *new_cwd,
39 38 void *data);
40 - void chdir_notify_register(const char *name, chdir_notify_callback cb, void *data);
41 - void chdir_notify_unregister(const char *name, chdir_notify_callback cb,
42 - void *data);
39 + void chdir_notify_register(chdir_notify_callback cb, void *data);
40 + void chdir_notify_unregister(chdir_notify_callback cb, void *data);
43 41
44 42 /*
45 43 *
modified checkout.c
@@ -8,6 +8,7 @@
8 8 #include "checkout.h"
9 9 #include "config.h"
10 10 #include "strbuf.h"
11 + #include "string-list.h"
11 12
12 13 struct tracking_name_data {
13 14 /* const */ char *src_ref;
@@ -17,6 +18,7 @@ struct tracking_name_data {
17 18 const char *default_remote;
18 19 char *default_dst_ref;
19 20 struct object_id *default_dst_oid;
21 + struct string_list *remote_names;
20 22 };
21 23
22 24 #define TRACKING_NAME_DATA_INIT { 0 }
@@ -39,6 +41,8 @@ static int check_tracking_name(struct remote *remote, void *cb_data)
39 41 oidcpy(dst, cb->dst_oid);
40 42 cb->default_dst_oid = dst;
41 43 }
44 + if (cb->remote_names)
45 + string_list_append(cb->remote_names, remote->name);
42 46 if (cb->dst_ref) {
43 47 free(query.dst);
44 48 return 0;
@@ -48,14 +52,19 @@ static int check_tracking_name(struct remote *remote, void *cb_data)
48 52 }
49 53
50 54 char *unique_tracking_name(const char *name, struct object_id *oid,
51 - int *dwim_remotes_matched)
55 + int *dwim_remotes_matched,
56 + struct string_list *dwim_remote_names)
52 57 {
53 58 struct tracking_name_data cb_data = TRACKING_NAME_DATA_INIT;
54 59 const char *default_remote = NULL;
55 - if (!repo_config_get_string_tmp(the_repository, "checkout.defaultremote", &default_remote))
60 +
61 + if (!repo_config_get_string_tmp(the_repository,
62 + "checkout.defaultremote",
63 + &default_remote))
56 64 cb_data.default_remote = default_remote;
57 65 cb_data.src_ref = xstrfmt("refs/heads/%s", name);
58 66 cb_data.dst_oid = oid;
67 + cb_data.remote_names = dwim_remote_names;
59 68 for_each_remote(check_tracking_name, &cb_data);
60 69 if (dwim_remotes_matched)
61 70 *dwim_remotes_matched = cb_data.num_matches;
modified checkout.h
@@ -3,6 +3,8 @@
3 3
4 4 #include "hash.h"
5 5
6 + struct string_list;
7 +
6 8 /*
7 9 * Check if the branch name uniquely matches a branch name on a remote
8 10 * tracking branch. Return the name of the remote if such a branch
@@ -10,6 +12,7 @@
10 12 */
11 13 char *unique_tracking_name(const char *name,
12 14 struct object_id *oid,
13 - int *dwim_remotes_matched);
15 + int *dwim_remotes_matched,
16 + struct string_list *dwim_remote_names);
14 17
15 18 #endif /* CHECKOUT_H */
modified ci/install-dependencies.sh
@@ -164,10 +164,9 @@ sparse)
164 164 libexpat-dev gettext zlib1g-dev sparse
165 165 ;;
166 166 Documentation)
167 - sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make
167 + sudo apt-get -q -y install asciidoc xmlto docbook-xsl-ns make ruby \
168 + asciidoctor
168 169
169 - test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
170 - sudo gem install --version 1.5.8 asciidoctor
171 170 sudo gem install concurrent-ruby
172 171 ;;
173 172 esac
modified ci/lib.sh
@@ -391,9 +391,6 @@ linux-asan-ubsan)
391 391 osx-meson)
392 392 MESONFLAGS="$MESONFLAGS -Dcredential_helpers=osxkeychain"
393 393 ;;
394 - windows-*)
395 - export NO_RUST=UnfortunatelyYes
396 - ;;
397 394 esac
398 395
399 396 MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
modified command-list.txt
@@ -217,6 +217,7 @@ gitcli userinterfaces
217 217 gitcore-tutorial guide
218 218 gitcredentials guide
219 219 gitcvs-migration guide
220 + gitdatamodel guide
220 221 gitdiffcore guide
221 222 giteveryday guide
222 223 gitfaq guide
modified commit-graph.c
@@ -651,8 +651,6 @@ struct commit_graph *load_commit_graph_chain_fd_st(struct object_database *odb,
651 651 count = st->st_size / (odb->repo->hash_algo->hexsz + 1);
652 652 CALLOC_ARRAY(oids, count);
653 653
654 - odb_prepare_alternates(odb);
655 -
656 654 for (i = 0; i < count; i++) {
657 655 struct odb_source *source;
658 656
@@ -768,7 +766,6 @@ static struct commit_graph *prepare_commit_graph(struct repository *r)
768 766 if (!commit_graph_compatible(r))
769 767 return NULL;
770 768
771 - odb_prepare_alternates(r->objects);
772 769 for (source = r->objects->sources; source; source = source->next) {
773 770 r->objects->commit_graph = read_commit_graph_one(source);
774 771 if (r->objects->commit_graph)
@@ -2018,7 +2015,6 @@ static void fill_oids_from_all_packs(struct write_commit_graph_context *ctx)
2018 2015 _("Finding commits for commit graph among packed objects"),
2019 2016 ctx->approx_nr_objects);
2020 2017
2021 - odb_prepare_alternates(ctx->r->objects);
2022 2018 for (source = ctx->r->objects->sources; source; source = source->next) {
2023 2019 struct odb_source_files *files = odb_source_files_downcast(source);
2024 2020 odb_source_for_each_object(&files->packed->base, &oi, add_packed_commits_oi,
modified commit-reach.c
@@ -11,6 +11,7 @@
11 11 #include "tag.h"
12 12 #include "commit-reach.h"
13 13 #include "ewah/ewok.h"
14 + #include "trace2.h"
14 15
15 16 /* Remember to update object flag allocation in object.h */
16 17 #define PARENT1 (1u<<16)
@@ -78,25 +79,111 @@ static void clear_nonstale_queue(struct nonstale_queue *queue)
78 79 queue->max_nonstale = NULL;
79 80 }
80 81
81 - static void nonstale_queue_put_dedup(struct nonstale_queue *queue,
82 - struct commit *c)
82 + /*
83 + * Priority queue with per-side commit counters for paint_down_to_common().
84 + * Each non-stale queued commit occupies exactly one bucket: PARENT1-only,
85 + * PARENT2-only, or both (a pending merge-base candidate).
86 + */
87 + struct paint_state {
88 + struct prio_queue queue;
89 + size_t parent1_count;
90 + size_t parent2_count;
91 + size_t mb_candidate_count;
92 + timestamp_t min_generation;
93 + timestamp_t last_gen;
94 + timestamp_t topo_ceiling;
95 + };
96 +
97 + static void paint_count_update(struct paint_state *state,
98 + unsigned flags, int delta)
83 99 {
84 - if (c->object.flags & ENQUEUED)
85 - return;
86 - c->object.flags |= ENQUEUED;
87 - nonstale_queue_put(queue, c);
100 + switch (flags & (PARENT1 | PARENT2 | STALE)) {
101 + case PARENT1:
102 + state->parent1_count += delta;
103 + break;
104 +
105 + case PARENT2:
106 + state->parent2_count += delta;
107 + break;
108 +
109 + case PARENT1 | PARENT2:
110 + state->mb_candidate_count += delta;
111 + break;
112 +
113 + case PARENT1 | PARENT2 | STALE:
114 + break;
115 +
116 + default:
117 + BUG("unexpected paint state");
118 + }
88 119 }
89 120
90 - static struct commit *nonstale_queue_get_dedup(struct nonstale_queue *queue)
121 + static void paint_queue_put(struct paint_state *state,
122 + struct commit *c, unsigned add_flags)
91 123 {
92 - struct commit *commit = nonstale_queue_get(queue);
124 + unsigned old_flags = c->object.flags;
125 + c->object.flags |= add_flags;
126 +
127 + if (old_flags & ENQUEUED) {
128 + paint_count_update(state, old_flags, -1);
129 + paint_count_update(state, c->object.flags, 1);
130 + } else {
131 + c->object.flags |= ENQUEUED;
132 + prio_queue_put(&state->queue, c);
133 + paint_count_update(state, c->object.flags, 1);
134 + }
135 + }
136 +
137 + /*
138 + * Dequeue the next commit for the paint walk, or return NULL when
139 + * no more merge bases can be discovered.
140 + */
141 + static struct commit *paint_queue_get(struct paint_state *state)
142 + {
143 + struct commit *commit = prio_queue_get(&state->queue);
144 + timestamp_t generation;
145 +
146 + if (!commit)
147 + return NULL;
148 +
149 + commit->object.flags &= ~ENQUEUED;
150 + generation = commit_graph_generation(commit);
93 151
94 - if (commit)
95 - commit->object.flags &= ~ENQUEUED;
152 + if (state->min_generation && generation > state->last_gen)
153 + BUG("bad generation skip %"PRItime" > %"PRItime" at %s",
154 + generation, state->last_gen,
155 + oid_to_hex(&commit->object.oid));
156 + state->last_gen = generation;
157 +
158 + /* generation cutoff */
159 + if (generation < state->min_generation)
160 + return NULL;
161 +
162 + /*
163 + * Check exit condition before decrementing: the counters
164 + * still include this commit, so the last non-stale commit
165 + * sees a non-zero count and is returned for processing.
166 + */
167 + if (!state->mb_candidate_count) {
168 + /* only stale entries remain */
169 + if (!state->parent1_count && !state->parent2_count)
170 + return NULL;
171 +
172 + /* one side is exhausted */
173 + if ((!state->parent1_count || !state->parent2_count) &&
174 + generation < state->topo_ceiling)
175 + return NULL;
176 + }
177 +
178 + paint_count_update(state, commit->object.flags, -1);
96 179 return commit;
97 180 }
98 181
99 - /* all input commits in one and twos[] must have been parsed! */
182 + /*
183 + * See Documentation/technical/paint-down-to-common.adoc
184 + *
185 + * All input commits in one and twos[] must have been parsed!
186 + */
100 187 static int paint_down_to_common(struct repository *r,
101 188 struct commit *one, int n,
102 189 struct commit **twos,
@@ -104,45 +191,40 @@ static int paint_down_to_common(struct repository *r,
104 191 enum merge_base_flags mb_flags,
105 192 struct commit_list **result)
106 193 {
107 - struct nonstale_queue queue = {
108 - { compare_commits_by_gen_then_commit_date }
194 + /*
195 + * Generation ordering is required for the side-exhaustion and
196 + * single-result early exits, which rely on topological traversal
197 + * order (children visited before parents) in the ordered region.
198 + */
199 + struct paint_state state = {
200 + .queue = { compare_commits_by_gen_then_commit_date }
109 201 };
202 + struct commit *commit;
110 203 int i;
111 - int gen_ordered = 1;
112 - timestamp_t last_gen = GENERATION_NUMBER_INFINITY;
204 + int steps = 0;
113 205 struct commit_list **tail = result;
114 206
115 - if (!min_generation && !corrected_commit_dates_enabled(r)) {
116 - queue.pq.compare = compare_commits_by_commit_date;
117 - gen_ordered = 0;
118 - }
207 + state.min_generation = min_generation;
208 + state.last_gen = GENERATION_NUMBER_INFINITY;
209 + state.topo_ceiling = corrected_commit_dates_enabled(r)
210 + ? GENERATION_NUMBER_INFINITY
211 + : GENERATION_NUMBER_V1_MAX;
212 +
119 213
120 214 one->object.flags |= PARENT1;
121 215 if (!n) {
122 216 commit_list_append(one, result);
123 217 return 0;
124 218 }
125 - nonstale_queue_put_dedup(&queue, one);
219 + paint_queue_put(&state, one, 0);
126 220
127 - for (i = 0; i < n; i++) {
128 - twos[i]->object.flags |= PARENT2;
129 - nonstale_queue_put_dedup(&queue, twos[i]);
130 - }
221 + for (i = 0; i < n; i++)
222 + paint_queue_put(&state, twos[i], PARENT2);
131 223
132 - while (queue.max_nonstale) {
133 - struct commit *commit = nonstale_queue_get_dedup(&queue);
224 + while ((commit = paint_queue_get(&state))) {
134 225 struct commit_list *parents;
135 226 int flags;
136 - timestamp_t generation = commit_graph_generation(commit);
137 -
138 - if (min_generation && generation > last_gen)
139 - BUG("bad generation skip %"PRItime" > %"PRItime" at %s",
140 - generation, last_gen,
141 - oid_to_hex(&commit->object.oid));
142 - last_gen = generation;
143 -
144 - if (generation < min_generation)
145 - break;
227 + steps++;
146 228
147 229 flags = commit->object.flags & (PARENT1 | PARENT2 | STALE);
148 230 if (flags == (PARENT1 | PARENT2)) {
@@ -155,8 +237,7 @@ static int paint_down_to_common(struct repository *r,
155 237 * descendant of this one.
156 238 */
157 239 if (!(mb_flags & MERGE_BASE_FIND_ALL) &&
158 - gen_ordered &&
159 - generation < GENERATION_NUMBER_INFINITY)
240 + state.last_gen < state.topo_ceiling)
160 241 break;
161 242 }
162 243 /* Mark parents of a found merge stale */
@@ -169,7 +250,7 @@ static int paint_down_to_common(struct repository *r,
169 250 if ((p->object.flags & flags) == flags)
170 251 continue;
171 252 if (repo_parse_commit(r, p)) {
172 - clear_nonstale_queue(&queue);
253 + clear_prio_queue(&state.queue);
173 254 commit_list_free(*result);
174 255 *result = NULL;
175 256 /*
@@ -184,12 +265,13 @@ static int paint_down_to_common(struct repository *r,
184 265 return error(_("could not parse commit %s"),
185 266 oid_to_hex(&p->object.oid));
186 267 }
187 - p->object.flags |= flags;
188 - nonstale_queue_put_dedup(&queue, p);
268 + paint_queue_put(&state, p, flags);
189 269 }
190 270 }
191 271
192 - clear_nonstale_queue(&queue);
272 + clear_prio_queue(&state.queue);
273 + trace2_data_intmax("paint_down_to_common", r,
274 + "steps", steps);
193 275 commit_list_sort_by_date(result);
194 276 return 0;
195 277 }
modified common-init.c
@@ -47,7 +47,7 @@ static void setup_environment(void)
47 47 update_ref_namespace(NAMESPACE_REPLACE, git_replace_ref_base);
48 48
49 49 if (git_env_bool(NO_LAZY_FETCH_ENVIRONMENT, 0))
50 - fetch_if_missing = 0;
50 + the_repository->fetch_if_missing = 0;
51 51 }
52 52
53 53 void init_git(const char **argv)
modified compat/mingw.c
@@ -353,6 +353,29 @@ process_phantom_symlink(const wchar_t *wtarget, const wchar_t *wlink)
353 353 wchar_t relative[MAX_PATH];
354 354 const wchar_t *rel;
355 355
356 + /*
357 + * Do not follow symlinks to network shares, to avoid NTLM credential
358 + * leak from crafted repositories (e.g. \\attacker-server\share).
359 + * Since paths come in all kind of enterprising shapes and forms (in
360 + * addition to the canonical `\\host\share` form, there's also
361 + * `\??\UNC\host\share`, `\GLOBAL??\UNC\host\share` and also
362 + * `\Device\Mup\host\share`, just to name a few), we simply avoid
363 + * following every symlink target that starts with a slash.
364 + *
365 + * This also catches drive-less absolute paths, of course. These are
366 + * uncommon in practice (and also fragile because they are relative to
367 + * the current working directory's drive). The only "harm" this does
368 + * is that it now requires users to specify via the Git attributes if
369 + * they have such an uncommon symbolic link and need it to be a
370 + * directory type link.
371 + */
372 + if (is_wdir_sep(wtarget[0])) {
373 + warning("created file symlink '%ls' pointing to '%ls';\n"
374 + "set the `symlink` gitattribute to `dir` if a "
375 + "directory symlink is required", wlink, wtarget);
376 + return PHANTOM_SYMLINK_DONE;
377 + }
378 +
356 379 /* check that wlink is still a file symlink */
357 380 if ((GetFileAttributesW(wlink)
358 381 & (FILE_ATTRIBUTE_REPARSE_POINT | FILE_ATTRIBUTE_DIRECTORY))
@@ -3134,6 +3157,45 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen)
3134 3157 return -1;
3135 3158 }
3136 3159
3160 + #ifdef ENSURE_MSYSTEM_IS_SET
3161 + #if !defined(RUNTIME_PREFIX) || !defined(HAVE_WPGMPTR) || !defined(MINGW_PREFIX)
3162 + static size_t append_system_bin_dirs(char *path UNUSED, size_t size UNUSED)
3163 + {
3164 + return 0;
3165 + }
3166 + #else
3167 + static size_t append_system_bin_dirs(char *path, size_t size)
3168 + {
3169 + char prefix[32768];
3170 + const char *slash;
3171 + size_t len = xwcstoutf(prefix, _wpgmptr, sizeof(prefix)), off = 0;
3172 +
3173 + if (len == 0 || len >= sizeof(prefix) ||
3174 + !(slash = find_last_dir_sep(prefix)))
3175 + return 0;
3176 + /* strip trailing `git.exe` */
3177 + len = slash - prefix;
3178 +
3179 + /* strip trailing `cmd` or `<mingw-prefix>\bin` or `bin` or `libexec\git-core` */
3180 + if (strip_suffix_mem(prefix, &len, "\\" MINGW_PREFIX "\\libexec\\git-core") ||
3181 + strip_suffix_mem(prefix, &len, "\\" MINGW_PREFIX "\\bin"))
3182 + off += xsnprintf(path + off, size - off,
3183 + "%.*s\\" MINGW_PREFIX "\\bin;", (int)len, prefix);
3184 + else if (strip_suffix_mem(prefix, &len, "\\cmd") ||
3185 + strip_suffix_mem(prefix, &len, "\\bin") ||
3186 + strip_suffix_mem(prefix, &len, "\\libexec\\git-core"))
3187 + off += xsnprintf(path + off, size - off,
3188 + "%.*s\\" MINGW_PREFIX "\\bin;", (int)len, prefix);
3189 + else
3190 + return 0;
3191 +
3192 + off += xsnprintf(path + off, size - off,
3193 + "%.*s\\usr\\bin;", (int)len, prefix);
3194 + return off;
3195 + }
3196 + #endif
3197 + #endif
3198 +
3137 3199 static void setup_windows_environment(void)
3138 3200 {
3139 3201 char *tmp = getenv("TMPDIR");
@@ -3186,6 +3248,32 @@ static void setup_windows_environment(void)
3186 3248 setenv("HOME", tmp, 1);
3187 3249 }
3188 3250
3251 + if (!getenv("PLINK_PROTOCOL"))
3252 + setenv("PLINK_PROTOCOL", "ssh", 0);
3253 +
3254 + #ifdef ENSURE_MSYSTEM_IS_SET
3255 + if (!(tmp = getenv("MSYSTEM")) || !tmp[0]) {
3256 + const char *home = getenv("HOME"), *path = getenv("PATH");
3257 + char buf[32768];
3258 + size_t off = 0;
3259 +
3260 + setenv("MSYSTEM", ENSURE_MSYSTEM_IS_SET, 1);
3261 +
3262 + if (home)
3263 + off += xsnprintf(buf + off, sizeof(buf) - off,
3264 + "%s\\bin;", home);
3265 + off += append_system_bin_dirs(buf + off, sizeof(buf) - off);
3266 + if (path)
3267 + off += xsnprintf(buf + off, sizeof(buf) - off,
3268 + "%s", path);
3269 + else if (off > 0)
3270 + buf[off - 1] = '\0';
3271 + else
3272 + buf[0] = '\0';
3273 + setenv("PATH", buf, 1);
3274 + }
3275 + #endif
3276 +
3189 3277 if (!getenv("LC_ALL") && !getenv("LC_CTYPE") && !getenv("LANG"))
3190 3278 setenv("LC_CTYPE", "C.UTF-8", 1);
3191 3279 }
modified compat/posix.h
@@ -148,6 +148,9 @@
148 148 #include <sys/socket.h>
149 149 #include <sys/ioctl.h>
150 150 #include <sys/statvfs.h>
151 + #ifndef NO_WRITEV
152 + #include <sys/uio.h>
153 + #endif
151 154 #include <termios.h>
152 155 #ifndef NO_SYS_SELECT_H
153 156 #include <sys/select.h>
@@ -334,6 +337,17 @@ int git_lstat(const char *, struct stat *);
334 337 ssize_t git_pread(int fd, void *buf, size_t count, off_t offset);
335 338 #endif
336 339
340 + #ifdef NO_WRITEV
341 + #define writev git_writev
342 + #define iovec git_iovec
343 + struct git_iovec {
344 + void *iov_base;
345 + size_t iov_len;
346 + };
347 +
348 + ssize_t git_writev(int fd, const struct iovec *iov, int iovcnt);
349 + #endif
350 +
337 351 #ifdef NO_SETENV
338 352 #define setenv gitsetenv
339 353 int gitsetenv(const char *, const char *, int);
modified compat/pread.c
@@ -7,6 +7,8 @@ ssize_t git_pread(int fd, void *buf, size_t count, off_t offset)
7 7 ssize_t rc;
8 8
9 9 current_offset = lseek(fd, 0, SEEK_CUR);
10 + if (current_offset < 0)
11 + return -1;
10 12
11 13 if (lseek(fd, offset, SEEK_SET) < 0)
12 14 return -1;
added compat/writev.c mode 100644
@@ -0,0 +1,41 @@
1 + #include "../git-compat-util.h"
2 + #include "../wrapper.h"
3 +
4 + ssize_t git_writev(int fd, const struct iovec *iov, int iovcnt)
5 + {
6 + size_t sum = 0;
7 +
8 + if (iovcnt <= 0) {
9 + errno = EINVAL;
10 + return -1;
11 + }
12 +
13 + /*
14 + * According to writev(3p), the syscall shall error with EINVAL in case
15 + * the sum of `iov_len` overflows `ssize_t`.
16 + */
17 + for (int i = 0; i < iovcnt; i++) {
18 + if (iov[i].iov_len > maximum_signed_value_of_type(ssize_t) ||
19 + unsigned_add_overflows(iov[i].iov_len, sum) ||
20 + iov[i].iov_len + sum > maximum_signed_value_of_type(ssize_t)) {
21 + errno = EINVAL;
22 + return -1;
23 + }
24 +
25 + sum += iov[i].iov_len;
26 + }
27 +
28 + /*
29 + * We only ever write the first non-empty vector so that we can
30 + * guarantee the call to be non-interleaving as guaranteed by POSIX.
31 + * This works just fine as callers have to loop around writev anyway.
32 + */
33 + for (int i = 0; i < iovcnt; i++) {
34 + if (!iov[i].iov_len)
35 + continue;
36 + return xwrite(fd, iov[i].iov_base, iov[i].iov_len);
37 + }
38 +
39 + /* When all iovec members were zero we ought to return 0 according to POSIX. */
40 + return 0;
41 + }
modified config.c
@@ -1271,6 +1271,15 @@ ssize_t git_config_ssize_t(const char *name, const char *value,
1271 1271 return ret;
1272 1272 }
1273 1273
1274 + size_t git_config_size_t(const char *name, const char *value,
1275 + const struct key_value_info *kvi)
1276 + {
1277 + size_t ret;
1278 + if (!git_parse_size_t(value, &ret))
1279 + die_bad_number(name, value, kvi);
1280 + return ret;
1281 + }
1282 +
1274 1283 double git_config_double(const char *name, const char *value,
1275 1284 const struct key_value_info *kvi)
1276 1285 {
modified config.h
@@ -282,6 +282,9 @@ unsigned long git_config_ulong(const char *, const char *,
282 282 ssize_t git_config_ssize_t(const char *, const char *,
283 283 const struct key_value_info *);
284 284
285 + size_t git_config_size_t(const char *, const char *,
286 + const struct key_value_info *);
287 +
285 288 /**
286 289 * Identically to `git_config_double`, but for double-precision floating point
287 290 * values.
modified config.mak.uname
@@ -477,6 +477,7 @@ ifeq ($(uname_S),Windows)
477 477 SANE_TOOL_PATH ?= $(msvc_bin_dir_msys)
478 478 HAVE_ALLOCA_H = YesPlease
479 479 NO_PREAD = YesPlease
480 + NO_WRITEV = YesPlease
480 481 NEEDS_CRYPTO_WITH_SSL = YesPlease
481 482 NO_LIBGEN_H = YesPlease
482 483 NO_POLL = YesPlease
@@ -535,7 +536,9 @@ endif
535 536 compat/win32/pthread.o compat/win32/syslog.o \
536 537 compat/win32/trace2_win32_process_info.o \
537 538 compat/win32/dirent.o
538 - COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DDETECT_MSYS_TTY -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
539 + COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DDETECT_MSYS_TTY \
540 + -DENSURE_MSYSTEM_IS_SET="\"$(MSYSTEM)\"" -DMINGW_PREFIX="\"$(patsubst /%,%,$(MINGW_PREFIX))\"" \
541 + -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
539 542 BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -ENTRY:wmainCRTStartup -SUBSYSTEM:CONSOLE
540 543 # invalidcontinue.obj allows Git's source code to close the same file
541 544 # handle twice, or to access the osfhandle of an already-closed stdout
@@ -692,6 +695,7 @@ ifeq ($(uname_S),MINGW)
692 695 pathsep = ;
693 696 HAVE_ALLOCA_H = YesPlease
694 697 NO_PREAD = YesPlease
698 + NO_WRITEV = YesPlease
695 699 NEEDS_CRYPTO_WITH_SSL = YesPlease
696 700 NO_LIBGEN_H = YesPlease
697 701 NO_POLL = YesPlease
@@ -756,9 +760,34 @@ ifeq ($(uname_S),MINGW)
756 760 MINGW_PREFIX := /$(shell echo '$(MSYSTEM)' | tr A-Z a-z)
757 761 endif
758 762 prefix = $(MINGW_PREFIX)
759 - HOST_CPU = $(patsubst %-w64-mingw32,%,$(MINGW_CHOST))
763 +
764 + # A rustup-managed Rust on Windows defaults to the MSVC ABI and
765 + # produces a `gitcore.lib` that the MinGW `ld.exe` cannot link.
766 + # Pick a GCC-compatible Rust target triple matching the MSYS2
767 + # subsystem instead: `*-pc-windows-gnullvm` for the Clang/LLVM
768 + # subsystems (which on Windows is also the only choice for
769 + # ARM64, where no MinGW-GCC port exists) and `*-pc-windows-gnu`
770 + # for the MSVCRT-based MinGW subsystems. For a `staticlib`
771 + # crate-type Cargo does not invoke an external linker, so
772 + # `rustup target add <triple>` is sufficient.
773 + ifneq (,$(filter %ARM64, $(MSYSTEM)))
774 + HOST_CPU = aarch64
775 + else ifneq (,$(filter %32, $(MSYSTEM)))
776 + HOST_CPU = i686
777 + else
778 + HOST_CPU = x86_64
779 + endif
780 + ifneq (,$(filter CLANG%, $(MSYSTEM)))
781 + CARGO_BUILD_TARGET = $(HOST_CPU)-pc-windows-gnullvm
782 + else
783 + CARGO_BUILD_TARGET = $(HOST_CPU)-pc-windows-gnu
784 + endif
785 + export CARGO_BUILD_TARGET
786 +
760 787 BASIC_LDFLAGS += -Wl,--pic-executable
761 - COMPAT_CFLAGS += -DDETECT_MSYS_TTY
788 + COMPAT_CFLAGS += -DDETECT_MSYS_TTY \
789 + -DENSURE_MSYSTEM_IS_SET="\"$(MSYSTEM)\"" \
790 + -DMINGW_PREFIX="\"$(patsubst /%,%,$(MINGW_PREFIX))\""
762 791 ifeq (MINGW32,$(MSYSTEM))
763 792 BASIC_LDFLAGS += -Wl,--large-address-aware
764 793 endif
modified contrib/buildsystems/CMakeLists.txt
@@ -256,7 +256,14 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
256 256 _CONSOLE DETECT_MSYS_TTY STRIP_EXTENSION=".exe" NO_SYMLINK_HEAD UNRELIABLE_FSTAT
257 257 NOGDI OBJECT_CREATION_MODE=1 __USE_MINGW_ANSI_STDIO=0
258 258 OVERRIDE_STRDUP MMAP_PREVENTS_DELETE USE_WIN32_MMAP
259 - HAVE_WPGMPTR ENSURE_MSYSTEM_IS_SET HAVE_RTLGENRANDOM)
259 + HAVE_WPGMPTR HAVE_RTLGENRANDOM)
260 + if(CMAKE_GENERATOR_PLATFORM STREQUAL "x64")
261 + add_compile_definitions(ENSURE_MSYSTEM_IS_SET="UCRT64" MINGW_PREFIX="ucrt64")
262 + elseif(CMAKE_GENERATOR_PLATFORM STREQUAL "arm64")
263 + add_compile_definitions(ENSURE_MSYSTEM_IS_SET="CLANGARM64" MINGW_PREFIX="clangarm64")
264 + elseif(CMAKE_GENERATOR_PLATFORM STREQUAL "x86")
265 + add_compile_definitions(ENSURE_MSYSTEM_IS_SET="MINGW32" MINGW_PREFIX="mingw32")
266 + endif()
260 267 list(APPEND compat_SOURCES
261 268 compat/mingw.c
262 269 compat/winansi.c
@@ -378,7 +385,7 @@ endif()
378 385 #function checks
379 386 set(function_checks
380 387 strcasestr memmem strlcpy strtoimax strtoumax strtoull
381 - setenv mkdtemp poll pread memmem)
388 + setenv mkdtemp poll pread memmem writev)
382 389
383 390 #unsetenv,hstrerror are incompatible with windows build
384 391 if(NOT WIN32)
@@ -423,6 +430,10 @@ if(NOT HAVE_MEMMEM)
423 430 list(APPEND compat_SOURCES compat/memmem.c)
424 431 endif()
425 432
433 + if(NOT HAVE_WRITEV)
434 + list(APPEND compat_SOURCES compat/writev.c)
435 + endif()
436 +
426 437 if(NOT WIN32)
427 438 if(NOT HAVE_UNSETENV)
428 439 list(APPEND compat_SOURCES compat/unsetenv.c)
modified contrib/completion/git-completion.bash
@@ -1735,49 +1735,59 @@ __git_checkout_default_dwim_mode ()
1735 1735
1736 1736 _git_checkout ()
1737 1737 {
1738 - __git_has_doubledash && return
1738 + if ! __git_has_doubledash; then
1739 + local dwim_opt="$(__git_checkout_default_dwim_mode)"
1739 1740
1740 - local dwim_opt="$(__git_checkout_default_dwim_mode)"
1741 + case "$prev" in
1742 + -b|-B|--orphan)
1743 + # Complete local branches (and DWIM branch
1744 + # remote branch names) for an option argument
1745 + # specifying a new branch name. This is for
1746 + # convenience, assuming new branches are
1747 + # possibly based on pre-existing branch names.
1748 + __git_complete_refs $dwim_opt --mode="heads"
1749 + return
1750 + ;;
1751 + *)
1752 + ;;
1753 + esac
1741 1754
1742 - case "$prev" in
1743 - -b|-B|--orphan)
1744 - # Complete local branches (and DWIM branch
1745 - # remote branch names) for an option argument
1746 - # specifying a new branch name. This is for
1747 - # convenience, assuming new branches are
1748 - # possibly based on pre-existing branch names.
1749 - __git_complete_refs $dwim_opt --mode="heads"
1750 - return
1751 - ;;
1752 - *)
1753 - ;;
1754 - esac
1755 + case "$cur" in
1756 + --conflict=*)
1757 + __gitcomp "diff3 merge zdiff3" "" "${cur##--conflict=}"
1758 + return
1759 + ;;
1760 + --*)
1761 + __gitcomp_builtin checkout
1762 + return
1763 + ;;
1764 + *)
1765 + # At this point, we've already handled special completion for
1766 + # the arguments to -b/-B, and --orphan. There are 3 main
1767 + # things left we can possibly complete:
1768 + # 1) a start-point for -b/-B, -d/--detach, or --orphan
1769 + # 2) a remote head, for --track
1770 + # 3) an arbitrary reference, possibly including DWIM names
1771 + #
1772 +
1773 + if [ -n "$(__git_find_on_cmdline "-b -B -d --detach --orphan")" ]; then
1774 + __git_complete_refs --mode="refs"
1775 + elif [ -n "$(__git_find_on_cmdline "-t --track")" ]; then
1776 + __git_complete_refs --mode="remote-heads"
1777 + else
1778 + __git_complete_refs $dwim_opt --mode="refs"
1779 + fi
1780 + ;;
1781 + esac
1782 + fi
1755 1783
1756 - case "$cur" in
1757 - --conflict=*)
1758 - __gitcomp "diff3 merge zdiff3" "" "${cur##--conflict=}"
1759 - ;;
1760 - --*)
1761 - __gitcomp_builtin checkout
1762 - ;;
1763 - *)
1764 - # At this point, we've already handled special completion for
1765 - # the arguments to -b/-B, and --orphan. There are 3 main
1766 - # things left we can possibly complete:
1767 - # 1) a start-point for -b/-B, -d/--detach, or --orphan
1768 - # 2) a remote head, for --track
1769 - # 3) an arbitrary reference, possibly including DWIM names
1770 - #
1784 + if [ ${#COMPREPLY[@]} -eq 0 ]; then
1785 + __git_complete_index_file ""
1786 + fi
1771 1787
1772 - if [ -n "$(__git_find_on_cmdline "-b -B -d --detach --orphan")" ]; then
1773 - __git_complete_refs --mode="refs"
1774 - elif [ -n "$(__git_find_on_cmdline "-t --track")" ]; then
1775 - __git_complete_refs --mode="remote-heads"
1776 - else
1777 - __git_complete_refs $dwim_opt --mode="refs"
1778 - fi
1779 - ;;
1780 - esac
1788 + if [ ${#COMPREPLY[@]} -eq 0 ]; then
1789 + __git_complete_index_file "--others --directory"
1790 + fi
1781 1791 }
1782 1792
1783 1793 __git_sequencer_inprogress_options="--continue --quit --abort --skip"
@@ -1947,35 +1957,48 @@ __git_diff_difftool_options="--cached --staged
1947 1957
1948 1958 _git_diff ()
1949 1959 {
1950 - __git_has_doubledash && return
1960 + if ! __git_has_doubledash; then
1961 + case "$cur" in
1962 + --diff-algorithm=*)
1963 + __gitcomp "$__git_diff_algorithms" \
1964 + "" "${cur##--diff-algorithm=}"
1965 + return
1966 + ;;
1967 + --submodule=*)
1968 + __gitcomp "$__git_diff_submodule_formats" \
1969 + "" "${cur##--submodule=}"
1970 + return
1971 + ;;
1972 + --color-moved=*)
1973 + __gitcomp "$__git_color_moved_opts" \
1974 + "" "${cur##--color-moved=}"
1975 + return
1976 + ;;
1977 + --color-moved-ws=*)
1978 + __gitcomp "$__git_color_moved_ws_opts" \
1979 + "" "${cur##--color-moved-ws=}"
1980 + return
1981 + ;;
1982 + --ws-error-highlight=*)
1983 + __gitcomp "$__git_ws_error_highlight_opts" \
1984 + "" "${cur##--ws-error-highlight=}"
1985 + return
1986 + ;;
1987 + --*)
1988 + __gitcomp "$__git_diff_difftool_options"
1989 + return
1990 + ;;
1991 + esac
1992 + __git_complete_revlist_file
1993 + fi
1951 1994
1952 - case "$cur" in
1953 - --diff-algorithm=*)
1954 - __gitcomp "$__git_diff_algorithms" "" "${cur##--diff-algorithm=}"
1955 - return
1956 - ;;
1957 - --submodule=*)
1958 - __gitcomp "$__git_diff_submodule_formats" "" "${cur##--submodule=}"
1959 - return
1960 - ;;
1961 - --color-moved=*)
1962 - __gitcomp "$__git_color_moved_opts" "" "${cur##--color-moved=}"
1963 - return
1964 - ;;
1965 - --color-moved-ws=*)
1966 - __gitcomp "$__git_color_moved_ws_opts" "" "${cur##--color-moved-ws=}"
1967 - return
1968 - ;;
1969 - --ws-error-highlight=*)
1970 - __gitcomp "$__git_ws_error_highlight_opts" "" "${cur##--ws-error-highlight=}"
1971 - return
1972 - ;;
1973 - --*)
1974 - __gitcomp "$__git_diff_difftool_options"
1975 - return
1976 - ;;
1977 - esac
1978 - __git_complete_revlist_file
1995 + if [ ${#COMPREPLY[@]} -eq 0 ]; then
1996 + __git_complete_index_file ""
1997 + fi
1998 +
1999 + if [ ${#COMPREPLY[@]} -eq 0 ]; then
2000 + __git_complete_index_file "--others --directory"
2001 + fi
1979 2002 }
1980 2003
1981 2004 __git_mergetools_common="diffuse diffmerge ecmerge emerge kdiff3 meld opendiff
@@ -2137,6 +2160,71 @@ _git_help ()
2137 2160 fi
2138 2161 }
2139 2162
2163 + __git_history_has_revision ()
2164 + {
2165 + local i
2166 +
2167 + for ((i = __git_cmd_idx + 2; i < cword; i++)); do
2168 + case "${words[i]}" in
2169 + -*)
2170 + ;;
2171 + *)
2172 + return 0
2173 + ;;
2174 + esac
2175 + done
2176 + return 1
2177 + }
2178 +
2179 + _git_history ()
2180 + {
2181 + local subcommands subcommand
2182 +
2183 + __git_resolve_builtins "history"
2184 +
2185 + subcommands="$___git_resolved_builtins"
2186 + subcommand="$(__git_find_subcommand "$subcommands")"
2187 +
2188 + if [ -z "$subcommand" ]; then
2189 + __gitcomp "$subcommands"
2190 + return
2191 + fi
2192 +
2193 + if ! __git_has_doubledash; then
2194 + case "$cur" in
2195 + --empty=*)
2196 + case "$subcommand" in
2197 + drop|fixup)
2198 + __gitcomp "drop keep abort" "" \
2199 + "${cur##--empty=}"
2200 + ;;
2201 + esac
2202 + return
2203 + ;;
2204 + --update-refs=*)
2205 + __gitcomp "branches head" "" \
2206 + "${cur##--update-refs=}"
2207 + return
2208 + ;;
2209 + --*)
2210 + __gitcomp_builtin "history_$subcommand"
2211 + return
2212 + ;;
2213 + esac
2214 + fi
2215 +
2216 + if ! __git_history_has_revision; then
2217 + __git_complete_refs
2218 + return
2219 + fi
2220 +
2221 + case "$subcommand" in
2222 + split)
2223 + __git_complete_index_file "--cached"
2224 + ;;
2225 + esac
2226 + }
2227 +
2140 2228 _git_init ()
2141 2229 {
2142 2230 case "$cur" in
modified contrib/completion/git-completion.zsh
@@ -227,6 +227,7 @@ __git_zsh_main ()
227 227 '(-p --paginate --no-pager)'{-p,--paginate}'[pipe all output into ''less'']' \
228 228 '(-p --paginate)--no-pager[do not pipe git output into a pager]' \
229 229 '--git-dir=-[set the path to the repository]: :_directories' \
230 + '*-C[run as if git was started in <path>]: :_directories' \
230 231 '--bare[treat the repository as a bare repository]' \
231 232 '(- :)--version[prints the git suite version]' \
232 233 '--exec-path=-[path to where your core git programs are installed]:: :_directories' \
@@ -251,7 +252,29 @@ __git_zsh_main ()
251 252 done
252 253 ;;
253 254 (arg)
254 - local command="${words[1]}" __git_dir __git_cmd_idx=1
255 + local command="${words[1]}" __git_dir __git_cmd_idx
256 + local -a __git_C_args
257 + local -i i=2
258 +
259 + while (( i <= $#orig_words )); do
260 + case ${orig_words[i]} in
261 + -C)
262 + __git_C_args+=(-C ${orig_words[i+1]})
263 + (( i++ ))
264 + ;;
265 + -c|--git-dir|--work-tree|--namespace)
266 + (( i++ ))
267 + ;;
268 + -*)
269 + ;;
270 + *)
271 + break
272 + ;;
273 + esac
274 + (( i++ ))
275 + done
276 +
277 + __git_cmd_idx=$(( i - 1 ))
255 278
256 279 if (( $+opt_args[--bare] )); then
257 280 __git_dir='.'
modified delta.h
@@ -14,7 +14,7 @@ struct delta_index;
14 14 * using free_delta_index().
15 15 */
16 16 struct delta_index *
17 - create_delta_index(const void *buf, unsigned long bufsize);
17 + create_delta_index(const void *buf, size_t bufsize);
18 18
19 19 /*
20 20 * free_delta_index: free the index created by create_delta_index()
@@ -28,7 +28,7 @@ void free_delta_index(struct delta_index *index);
28 28 *
29 29 * Given pointer must be what create_delta_index() returned, or NULL.
30 30 */
31 - unsigned long sizeof_delta_index(struct delta_index *index);
31 + size_t sizeof_delta_index(struct delta_index *index);
32 32
33 33 /*
34 34 * create_delta: create a delta from given index for the given buffer
@@ -42,8 +42,8 @@ unsigned long sizeof_delta_index(struct delta_index *index);
42 42 */
43 43 void *
44 44 create_delta(const struct delta_index *index,
45 - const void *buf, unsigned long bufsize,
46 - unsigned long *delta_size, unsigned long max_delta_size);
45 + const void *buf, size_t bufsize,
46 + size_t *delta_size, size_t max_delta_size);
47 47
48 48 /*
49 49 * diff_delta: create a delta from source buffer to target buffer
@@ -54,9 +54,9 @@ create_delta(const struct delta_index *index,
54 54 * updated with its size. The returned buffer must be freed by the caller.
55 55 */
56 56 static inline void *
57 - diff_delta(const void *src_buf, unsigned long src_bufsize,
58 - const void *trg_buf, unsigned long trg_bufsize,
59 - unsigned long *delta_size, unsigned long max_delta_size)
57 + diff_delta(const void *src_buf, size_t src_bufsize,
58 + const void *trg_buf, size_t trg_bufsize,
59 + size_t *delta_size, size_t max_delta_size)
60 60 {
61 61 struct delta_index *index = create_delta_index(src_buf, src_bufsize);
62 62 if (index) {
modified diff-delta.c
@@ -125,14 +125,14 @@ struct unpacked_index_entry {
125 125 };
126 126
127 127 struct delta_index {
128 - unsigned long memsize;
128 + size_t memsize;
129 129 const void *src_buf;
130 - unsigned long src_size;
130 + size_t src_size;
131 131 unsigned int hash_mask;
132 132 struct index_entry *hash[FLEX_ARRAY];
133 133 };
134 134
135 - struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
135 + struct delta_index * create_delta_index(const void *buf, size_t bufsize)
136 136 {
137 137 unsigned int i, hsize, hmask, entries, prev_val, *hash_count;
138 138 const unsigned char *data, *buffer = buf;
@@ -140,7 +140,7 @@ struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
140 140 struct unpacked_index_entry *entry, **hash;
141 141 struct index_entry *packed_entry, **packed_hash;
142 142 void *mem;
143 - unsigned long memsize;
143 + size_t memsize;
144 144
145 145 if (!buf || !bufsize)
146 146 return NULL;
@@ -302,7 +302,7 @@ void free_delta_index(struct delta_index *index)
302 302 free(index);
303 303 }
304 304
305 - unsigned long sizeof_delta_index(struct delta_index *index)
305 + size_t sizeof_delta_index(struct delta_index *index)
306 306 {
307 307 if (index)
308 308 return index->memsize;
@@ -318,8 +318,8 @@ unsigned long sizeof_delta_index(struct delta_index *index)
318 318
319 319 void *
320 320 create_delta(const struct delta_index *index,
321 - const void *trg_buf, unsigned long trg_size,
322 - unsigned long *delta_size, unsigned long max_size)
321 + const void *trg_buf, size_t trg_size,
322 + size_t *delta_size, size_t max_size)
323 323 {
324 324 unsigned int i, val;
325 325 off_t outpos, moff;
modified diff-lib.c
@@ -467,7 +467,7 @@ static void do_oneway_diff(struct unpack_trees_options *o,
467 467 if (cached && idx && ce_stage(idx)) {
468 468 struct diff_filepair *pair;
469 469 pair = diff_unmerge(&revs->diffopt, idx->name);
470 - if (tree)
470 + if (pair && tree)
471 471 fill_filespec(pair->one, &tree->oid, 1,
472 472 tree->ce_mode);
473 473 return;
@@ -508,11 +508,9 @@ static void do_oneway_diff(struct unpack_trees_options *o,
508 508 * For diffing, the index is more important, and we only have a
509 509 * single tree.
510 510 *
511 - * We're supposed to advance o->pos to skip what we have already processed.
512 - *
513 511 * This wrapper makes it all more readable, and takes care of all
514 512 * the fairly complex unpack_trees() semantic requirements, including
515 - * the skipping, the path matching, the type conflict cases etc.
513 + * the path matching, the type conflict cases etc.
516 514 */
517 515 static int oneway_diff(const struct cache_entry * const *src,
518 516 struct unpack_trees_options *o)
@@ -530,6 +528,21 @@ static int oneway_diff(const struct cache_entry * const *src,
530 528 if (tree == o->df_conflict_entry)
531 529 tree = NULL;
532 530
531 + /*
532 + * We should only see a NULL idx when the entry was present in the tree
533 + * but deleted in the idx. In which case it should be impossible
534 + * that a NULL tree was passed in (there would have been no entry at
535 + * all) or that we got a df conflict above (you need a directory and a
536 + * file to get such a conflict, which implies both sides are present).
537 + */
538 + if (!idx && !tree)
539 + BUG("oneway_diff with neither idx nor tree");
540 +
541 + if (revs->diffopt.prefix &&
542 + strncmp((idx ? idx : tree)->name, revs->diffopt.prefix,
543 + revs->diffopt.prefix_length))
544 + return 0;
545 +
533 546 if (ce_path_match(revs->diffopt.repo->index,
534 547 idx ? idx : tree,
535 548 &revs->prune_data, NULL)) {
modified diff.c
@@ -3519,29 +3519,6 @@ struct checkdiff_t {
3519 3519 int last_line_kind;
3520 3520 };
3521 3521
3522 - static int is_conflict_marker(const char *line, int marker_size, unsigned long len)
3523 - {
3524 - char firstchar;
3525 - int cnt;
3526 -
3527 - if (len < marker_size + 1)
3528 - return 0;
3529 - firstchar = line[0];
3530 - switch (firstchar) {
3531 - case '=': case '>': case '<': case '|':
3532 - break;
3533 - default:
3534 - return 0;
3535 - }
3536 - for (cnt = 1; cnt < marker_size; cnt++)
3537 - if (line[cnt] != firstchar)
3538 - return 0;
3539 - /* line[1] through line[marker_size-1] are same as firstchar */
3540 - if (len < marker_size + 1 || !isspace(line[marker_size]))
3541 - return 0;
3542 - return 1;
3543 - }
3544 -
3545 3522 static void checkdiff_consume_hunk(void *priv,
3546 3523 long ob UNUSED, long on UNUSED,
3547 3524 long nb, long nn UNUSED,
@@ -3571,7 +3548,7 @@ static int checkdiff_consume(void *priv, char *line, unsigned long len)
3571 3548 if (line[0] == '+') {
3572 3549 unsigned bad;
3573 3550 data->lineno++;
3574 - if (is_conflict_marker(line + 1, marker_size, len - 1)) {
3551 + if (is_conflict_marker_line(line + 1, len - 1, marker_size)) {
3575 3552 data->status |= 1;
3576 3553 fprintf(data->o->file,
3577 3554 "%s%s:%d: leftover conflict marker\n",
@@ -3609,7 +3586,7 @@ static unsigned char *deflate_it(char *data,
3609 3586 unsigned long size,
3610 3587 unsigned long *result_size)
3611 3588 {
3612 - int bound;
3589 + size_t bound;
3613 3590 unsigned char *deflated;
3614 3591 git_zstream stream;
3615 3592 struct repo_config_values *cfg = repo_config_values(the_repository);
@@ -3647,9 +3624,11 @@ static void emit_binary_diff_body(struct diff_options *o,
3647 3624 delta = NULL;
3648 3625 deflated = deflate_it(two->ptr, two->size, &deflate_size);
3649 3626 if (one->size && two->size) {
3627 + size_t delta_size_st = 0;
3650 3628 delta = diff_delta(one->ptr, one->size,
3651 3629 two->ptr, two->size,
3652 - &delta_size, deflate_size);
3630 + &delta_size_st, deflate_size);
3631 + delta_size = cast_size_t_to_ulong(delta_size_st);
3653 3632 if (delta) {
3654 3633 void *to_free = delta;
3655 3634 orig_size = delta_size;
@@ -6186,7 +6165,7 @@ struct option *add_diff_options(const struct option *opts,
6186 6165 N_("continue listing the history of a file beyond renames"),
6187 6166 PARSE_OPT_NOARG, diff_opt_follow),
6188 6167 OPT_INTEGER('l', NULL, &options->rename_limit,
6189 - N_("prevent rename/copy detection if the number of rename/copy targets exceeds given limit")),
6168 + N_("limit to cheap rename/copy detection if the number of rename/copy targets exceeds this value")),
6190 6169
6191 6170 OPT_GROUP(N_("Diff algorithm options")),
6192 6171 OPT_CALLBACK_F(0, "minimal", options, NULL,
modified dir.c
@@ -212,9 +212,10 @@ static int fnmatch_icase_mem(const char *pattern, int patternlen,
212 212 return match_status;
213 213 }
214 214
215 - static size_t common_prefix_len(const struct pathspec *pathspec)
215 + static size_t common_prefix_len(const struct pathspec *pathspec,
216 + const char **matched_prefix)
216 217 {
217 - int n;
218 + int n, first = -1;
218 219 size_t max = 0;
219 220
220 221 /*
@@ -237,43 +238,47 @@ static size_t common_prefix_len(const struct pathspec *pathspec)
237 238 size_t i = 0, len = 0, item_len;
238 239 if (pathspec->items[n].magic & PATHSPEC_EXCLUDE)
239 240 continue;
241 + if (first < 0)
242 + first = n;
240 243 if (pathspec->items[n].magic & PATHSPEC_ICASE)
241 244 item_len = pathspec->items[n].prefix;
242 245 else
243 246 item_len = pathspec->items[n].nowildcard_len;
244 - while (i < item_len && (n == 0 || i < max)) {
247 + while (i < item_len && (n == first || i < max)) {
245 248 char c = pathspec->items[n].match[i];
246 - if (c != pathspec->items[0].match[i])
249 + if (c != pathspec->items[first].match[i])
247 250 break;
248 251 if (c == '/')
249 252 len = i + 1;
250 253 i++;
251 254 }
252 - if (n == 0 || len < max) {
255 + if (n == first || len < max) {
253 256 max = len;
254 257 if (!max)
255 258 break;
256 259 }
257 260 }
261 + *matched_prefix = first < 0 ? NULL : pathspec->items[first].match;
258 262 return max;
259 263 }
260 264
261 265 /*
262 - * Returns a copy of the longest leading path common among all
263 - * pathspecs.
266 + * Returns a copy of the longest leading path common among all pathspec
267 + * items that are not excluded.
264 268 */
265 269 char *common_prefix(const struct pathspec *pathspec)
266 270 {
267 - unsigned long len = common_prefix_len(pathspec);
271 + const char *matched_prefix;
272 + size_t len = common_prefix_len(pathspec, &matched_prefix);
268 273
269 - return len ? xmemdupz(pathspec->items[0].match, len) : NULL;
274 + return len ? xmemdupz(matched_prefix, len) : NULL;
270 275 }
271 276
272 277 int fill_directory(struct dir_struct *dir,
273 278 struct index_state *istate,
274 279 const struct pathspec *pathspec)
275 280 {
276 - const char *prefix;
281 + const char *matched_prefix;
277 282 size_t prefix_len;
278 283
279 284 unsigned exclusive_flags = DIR_SHOW_IGNORED | DIR_SHOW_IGNORED_TOO;
@@ -284,11 +289,11 @@ int fill_directory(struct dir_struct *dir,
284 289 * Calculate common prefix for the pathspec, and
285 290 * use that to optimize the directory walk
286 291 */
287 - prefix_len = common_prefix_len(pathspec);
288 - prefix = prefix_len ? pathspec->items[0].match : "";
292 + prefix_len = common_prefix_len(pathspec, &matched_prefix);
289 293
290 294 /* Read the directory and prune it */
291 - read_directory(dir, istate, prefix, prefix_len, pathspec);
295 + read_directory(dir, istate, prefix_len ? matched_prefix : "",
296 + prefix_len, pathspec);
292 297
293 298 return prefix_len;
294 299 }
@@ -394,7 +399,7 @@ static int match_pathspec_item(struct index_state *istate,
394 399
395 400 /*
396 401 * The normal call pattern is:
397 - * 1. prefix = common_prefix_len(ps);
402 + * 1. prefix = common_prefix_len(ps, &matched_prefix);
398 403 * 2. prune something, or fill_directory
399 404 * 3. match_pathspec()
400 405 *
@@ -414,8 +419,8 @@ static int match_pathspec_item(struct index_state *istate,
414 419 * Normally the caller (common_prefix_len() in fact) does
415 420 * _exact_ matching on name[-prefix+1..-1] and we do not need
416 421 * to check that part. Be defensive and check it anyway, in
417 - * case common_prefix_len is changed, or a new caller is
418 - * introduced that does not use common_prefix_len.
422 + * case common_prefix_len() is changed, or a new caller is
423 + * introduced that does not use common_prefix_len().
419 424 *
420 425 * If the penalty turns out too high when prefix is really
421 426 * long, maybe change it to
@@ -593,7 +598,7 @@ static int match_pathspec_with_flags(struct index_state *istate,
593 598 if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive)
594 599 return positive;
595 600 negative = do_match_pathspec(istate, ps, name, namelen,
596 - prefix, seen,
601 + 0, seen,
597 602 flags | DO_MATCH_EXCLUDE);
598 603 return negative ? 0 : positive;
599 604 }
modified fetch-object-info.c
@@ -1,6 +1,7 @@
1 1 #include "git-compat-util.h"
2 2 #include "gettext.h"
3 3 #include "hex.h"
4 + #include "object.h"
4 5 #include "pkt-line.h"
5 6 #include "connect.h"
6 7 #include "oid-array.h"
@@ -9,20 +10,26 @@
9 10 #include "string-list.h"
10 11
11 12 /* Sends object-info command and its arguments into the request buffer. */
12 - static void send_object_info_request(const int fd_out, struct object_info_args *args)
13 + static void send_object_info_request(const int fd_out,
14 + const struct string_list *server_options,
15 + const struct oid_array *oids,
16 + unsigned ask_size,
17 + unsigned ask_type)
13 18 {
14 19 struct strbuf req_buf = STRBUF_INIT;
15 20
16 - write_command_and_capabilities(&req_buf, "object-info", args->server_options);
21 + write_command_and_capabilities(&req_buf, "object-info", server_options);
17 22
18 - if (unsorted_string_list_has_string(args->object_info_options, "size"))
23 + if (ask_size)
19 24 packet_buf_write(&req_buf, "size");
20 - else if (args->object_info_options->nr)
21 - BUG("only size should be in object_info_options");
22 25
23 - if (args->oids)
24 - for (size_t i = 0; i < args->oids->nr; i++)
25 - packet_buf_write(&req_buf, "oid %s", oid_to_hex(&args->oids->oid[i]));
26 + if (ask_type)
27 + packet_buf_write(&req_buf, "type");
28 +
29 + if (oids)
30 + for (size_t i = 0; i < oids->nr; i++)
31 + packet_buf_write(&req_buf, "oid %s",
32 + oid_to_hex(&oids->oid[i]));
26 33
27 34 packet_buf_flush(&req_buf);
28 35 if (write_in_full(fd_out, req_buf.buf, req_buf.len) < 0)
@@ -45,35 +52,42 @@ static int parse_object_size(const char *s, size_t *res)
45 52 return 0;
46 53 }
47 54
48 - int fetch_object_info(const enum protocol_version version, struct object_info_args *args,
49 - struct packet_reader *reader, struct object_info *object_info_data,
50 - const int stateless_rpc, const int fd_out)
55 + void fetch_object_info(const enum protocol_version version,
56 + const struct string_list *server_options,
57 + const struct oid_array *oids,
58 + struct packet_reader *reader,
59 + struct fetch_object_info_results *results,
60 + const int stateless_rpc,
61 + const int fd_out)
51 62 {
63 + unsigned ask_size = 0;
64 + unsigned ask_type = 0;
52 65 int size_index = -1;
66 + int type_index = -1;
67 + size_t wanted;
68 +
69 + results->nr = oids->nr;
70 + CALLOC_ARRAY(results->unrecognized, results->nr);
53 71
54 72 switch (version) {
55 73 case protocol_v2:
56 74 if (!server_supports_v2("object-info"))
57 75 die(_("object-info capability is not enabled on the server"));
58 - /*
59 - * When removing an element from the list it gets swapped by the
60 - * last element, iterate backwards to prevent elements skipping
61 - * evaluation.
62 - *
63 - * object_info_options->nr can be safely casted without overflow
64 - * because the number of options is a small known number (the
65 - * supported placeholders which currently are size and type).
66 - */
67 - for (int i = (int)args->object_info_options->nr - 1; i >= 0; i--)
68 - if (!server_supports_feature("object-info",
69 - args->object_info_options->items[i].string, 0))
70 - unsorted_string_list_delete_item(args->object_info_options, i, 0);
76 +
77 + if (results->wants_size &&
78 + server_supports_feature("object-info", "size", 0))
79 + ask_size = 1;
80 +
81 + if (results->wants_type &&
82 + server_supports_feature("object-info", "type", 0))
83 + ask_type = 1;
71 84
72 85 /*
73 86 * Even if no options are left, we still send the oid so we get
74 87 * at least an existence check.
75 88 */
76 - send_object_info_request(fd_out, args);
89 + send_object_info_request(fd_out, server_options, oids, ask_size,
90 + ask_type);
77 91 break;
78 92 case protocol_v1:
79 93 case protocol_v0:
@@ -81,43 +95,49 @@ int fetch_object_info(const enum protocol_version version, struct object_info_ar
81 95 case protocol_unknown_version:
82 96 BUG("unknown protocol version");
83 97 }
98 + wanted = ask_size + ask_type;
84 99
85 - for (size_t i = 0; i < args->object_info_options->nr; i++) {
100 + for (size_t i = 0; i < wanted; i++) {
86 101 if (packet_reader_read(reader) != PACKET_READ_NORMAL) {
87 102 check_stateless_delimiter(stateless_rpc, reader,
88 103 "stateless delimiter expected");
89 - return -1;
104 + die(_("object-info: expected %" PRIuMAX " attributes, got %" PRIuMAX),
105 + (uintmax_t)wanted, (uintmax_t)i);
90 106 }
91 107
92 - if (!unsorted_string_list_has_string(args->object_info_options, reader->line))
93 - return -1;
94 -
95 108 if (!strcmp(reader->line, "size")) {
96 - /*
97 - * i is the number of supported options which currently
98 - * is only size. No risk of overflow.
99 - */
109 + if (!ask_size)
110 + die(_("object-info: unrequested 'size' attribute"));
111 + if (results->sizes)
112 + die(_("object-info: duplicate 'size' attribute"));
100 113 size_index = (int)i;
101 - for (size_t j = 0; j < args->oids->nr; j++)
102 - object_info_data[j].sizep =
103 - xcalloc(1, sizeof(*object_info_data[j].sizep));
114 + CALLOC_ARRAY(results->sizes, results->nr);
115 + } else if (!strcmp(reader->line, "type")) {
116 + if (!ask_type)
117 + die(_("object-info: unrequested 'type' attribute"));
118 + if (results->types)
119 + die(_("object-info: duplicate 'type' attribute"));
120 + type_index = (int)i;
121 + CALLOC_ARRAY(results->types, results->nr);
104 122 } else {
105 - BUG("only size is supported");
123 + die(_("object-info: unknown attribute '%s'"),
124 + reader->line);
106 125 }
107 126 }
108 127
109 - for (size_t i = 0;
110 - packet_reader_read(reader) == PACKET_READ_NORMAL &&
111 - i < args->oids->nr;
112 - i++) {
128 + for (size_t i = 0; i < oids->nr; i++) {
113 129 struct string_list object_info_values = STRING_LIST_INIT_DUP;
114 130
131 + if (packet_reader_read(reader) != PACKET_READ_NORMAL)
132 + die(_("object-info: expected %" PRIuMAX " objects, got %" PRIuMAX),
133 + (uintmax_t)oids->nr, (uintmax_t)i);
134 +
115 135 string_list_split(&object_info_values, reader->line, " ", -1);
116 136
117 137 if (strcmp(object_info_values.items[0].string,
118 - oid_to_hex(&args->oids->oid[i])))
138 + oid_to_hex(&oids->oid[i])))
119 139 die(_("object-info: expected OID: %s, got %s"),
120 - oid_to_hex(&args->oids->oid[i]),
140 + oid_to_hex(&oids->oid[i]),
121 141 object_info_values.items[0].string);
122 142
123 143 /*
@@ -127,30 +147,53 @@ int fetch_object_info(const enum protocol_version version, struct object_info_ar
127 147 */
128 148 if (object_info_values.nr >= 2 &&
129 149 !strcmp(object_info_values.items[1].string, "")) {
130 - object_info_data[i].unrecognized = 1;
150 + results->unrecognized[i] = 1;
131 151 string_list_clear(&object_info_values, 0);
132 152 continue;
133 153 }
134 154
135 155 /*
136 - * Because we filter the options to be only the supported by
137 - * the server we expect the server to answer with the same
138 - * number of attributes requested.
156 + * Because we only ask for attributes the server said it
157 + * supports, we expect the answer to have one value per
158 + * requested attribute, plus the OID.
139 159 */
140 - if (args->object_info_options->nr + 1 != object_info_values.nr)
160 + if (wanted + 1 != object_info_values.nr)
141 161 die("object-info: unexpected number of attributes: %s",
142 162 reader->line);
143 163
144 - if (size_index >= 0 &&
164 + if (results->sizes &&
145 165 parse_object_size(object_info_values.items[size_index + 1].string,
146 - object_info_data[i].sizep))
147 - die("object-info: ref %s has invalid size %s",
166 + &results->sizes[i]))
167 + die("object-info: object %s has invalid size %s",
148 168 object_info_values.items[0].string,
149 169 object_info_values.items[size_index + 1].string);
150 170
171 + if (results->types) {
172 + const char *type_str =
173 + object_info_values.items[type_index + 1].string;
174 + int type = type_from_string_gently(type_str, -1, 1);
175 +
176 + if (type < 0)
177 + die(_("object-info: object %s has invalid type '%s'"),
178 + object_info_values.items[0].string, type_str);
179 +
180 + results->types[i] = type;
181 + }
182 +
151 183 string_list_clear(&object_info_values, 0);
152 184 }
185 +
186 + if (packet_reader_read(reader) != PACKET_READ_FLUSH)
187 + die(_("object-info: expected flush after %" PRIuMAX " objects"),
188 + (uintmax_t)oids->nr);
189 +
153 190 check_stateless_delimiter(stateless_rpc, reader, "stateless delimiter expected");
191 + }
154 192
155 - return 0;
193 + void free_fetch_object_info_results(struct fetch_object_info_results *results)
194 + {
195 + free(results->sizes);
196 + free(results->types);
197 + free(results->unrecognized);
198 + memset(results, 0, sizeof(*results));
156 199 }
modified fetch-object-info.h
@@ -1,25 +1,40 @@
1 1 #ifndef FETCH_OBJECT_INFO_H
2 2 #define FETCH_OBJECT_INFO_H
3 3
4 + #include "object.h"
4 5 #include "pkt-line.h"
5 6 #include "protocol.h"
6 7
7 - struct object_info_args {
8 - struct string_list *object_info_options;
9 - const struct string_list *server_options;
10 - struct oid_array *oids;
8 + struct fetch_object_info_results {
9 + size_t *sizes;
10 + enum object_type *types;
11 + uint8_t *unrecognized;
12 + size_t nr;
13 + unsigned wants_size:1;
14 + unsigned wants_type:1;
11 15 };
12 16
13 - struct object_info;
17 + #define FETCH_OBJECT_INFO_RESULTS_INIT { 0 }
18 +
19 + struct oid_array;
14 20 /*
15 - * Sends git-cat-file object-info command into the request buf and read the
21 + * Sends git-cat-file object-info command into the request buf and reads the
16 22 * results from packets.
17 23 *
18 - * Modifies args->object_info_options, on return it contains only the supported
19 - * options by the server.
24 + * The caller sets the wants_* flags in "results" to indicate which attributes
25 + * it is interested in. On return, "results" holds one array per attribute that
26 + * the server both advertised and answered with. An array left NULL means the
27 + * attribute is not available.
28 + * Release them with free_fetch_object_info_results().
20 29 */
21 - int fetch_object_info(enum protocol_version version, struct object_info_args *args,
22 - struct packet_reader *reader, struct object_info *object_info_data,
23 - int stateless_rpc, int fd_out);
30 + void fetch_object_info(enum protocol_version version,
31 + const struct string_list *server_options,
32 + const struct oid_array *oids,
33 + struct packet_reader *reader,
34 + struct fetch_object_info_results *results,
35 + int stateless_rpc,
36 + int fd_out);
37 +
38 + void free_fetch_object_info_results(struct fetch_object_info_results *results);
24 39
25 40 #endif /* FETCH_OBJECT_INFO_H */
modified fetch-pack.c
@@ -1075,7 +1075,7 @@ static int get_pack(struct fetch_pack_args *args,
1075 1075 die(_("fetch-pack: unable to fork off %s"), cmd_name);
1076 1076 if (do_keep && (pack_lockfiles || fsck_objects)) {
1077 1077 int is_well_formed;
1078 - char *pack_lockfile = index_pack_lockfile(the_repository,
1078 + char *pack_lockfile = index_pack_lockfile(the_repository->objects->sources,
1079 1079 cmd.out,
1080 1080 &is_well_formed);
1081 1081
@@ -1853,10 +1853,18 @@ static struct ref *do_fetch_pack_v2(struct fetch_pack_args *args,
1853 1853 }
1854 1854 }
1855 1855
1856 + if (packfile_uris.nr) {
1857 + trace2_region_enter("fetch-pack", "packfile-uris",
1858 + the_repository);
1859 + trace2_data_intmax("fetch-pack", the_repository,
1860 + "packfile-uris/count", packfile_uris.nr);
1861 + }
1862 +
1856 1863 for (i = 0; i < packfile_uris.nr; i++) {
1864 + bool created_keep;
1857 1865 int j;
1858 1866 struct child_process cmd = CHILD_PROCESS_INIT;
1859 - char packname[GIT_MAX_HEXSZ + 1];
1867 + char packhash[GIT_MAX_HEXSZ + 1];
1860 1868 const char *uri = packfile_uris.items[i].string +
1861 1869 the_hash_algo->hexsz + 1;
1862 1870
@@ -1874,16 +1882,17 @@ static struct ref *do_fetch_pack_v2(struct fetch_pack_args *args,
1874 1882 if (start_command(&cmd))
1875 1883 die("fetch-pack: unable to spawn http-fetch");
1876 1884
1877 - if (read_in_full(cmd.out, packname, 5) < 0 ||
1878 - memcmp(packname, "keep\t", 5))
1879 - die("fetch-pack: expected keep then TAB at start of http-fetch output");
1880 -
1881 - if (read_in_full(cmd.out, packname,
1882 - the_hash_algo->hexsz + 1) < 0 ||
1883 - packname[the_hash_algo->hexsz] != '\n')
1884 - die("fetch-pack: expected hash then LF at end of http-fetch output");
1885 + if (read_in_full(cmd.out, packhash, 5) != 5 ||
1886 + (memcmp(packhash, "keep\t", 5) &&
1887 + memcmp(packhash, "pack\t", 5)))
1888 + die("fetch-pack: expected pack or keep then TAB at start of http-fetch output");
1889 + created_keep = !memcmp(packhash, "keep\t", 5);
1885 1890
1886 - packname[the_hash_algo->hexsz] = '\0';
1891 + if (read_in_full(cmd.out, packhash,
1892 + the_hash_algo->hexsz + 1) != the_hash_algo->hexsz + 1 ||
1893 + packhash[the_hash_algo->hexsz] != '\n')
1894 + die("fetch-pack: expected hash then LF in http-fetch output");
1895 + packhash[the_hash_algo->hexsz] = '\0';
1887 1896
1888 1897 parse_gitmodules_oids(cmd.out, &fsck_options.gitmodules_found);
1889 1898
@@ -1892,17 +1901,23 @@ static struct ref *do_fetch_pack_v2(struct fetch_pack_args *args,
1892 1901 if (finish_command(&cmd))
1893 1902 die("fetch-pack: unable to finish http-fetch");
1894 1903
1895 - if (memcmp(packfile_uris.items[i].string, packname,
1904 + if (memcmp(packfile_uris.items[i].string, packhash,
1896 1905 the_hash_algo->hexsz))
1897 1906 die("fetch-pack: pack downloaded from %s does not match expected hash %.*s",
1898 1907 uri, (int) the_hash_algo->hexsz,
1899 1908 packfile_uris.items[i].string);
1900 1909
1901 - string_list_append_nodup(pack_lockfiles,
1902 - xstrfmt("%s/pack/pack-%s.keep",
1903 - repo_get_object_directory(the_repository),
1904 - packname));
1910 + if (created_keep)
1911 + string_list_append_nodup(pack_lockfiles,
1912 + xstrfmt("%s/pack/pack-%s.keep",
1913 + repo_get_object_directory(the_repository),
1914 + packhash));
1905 1915 }
1916 +
1917 + if (packfile_uris.nr)
1918 + trace2_region_leave("fetch-pack", "packfile-uris",
1919 + the_repository);
1920 +
1906 1921 string_list_clear(&packfile_uris, 0);
1907 1922 strvec_clear(&index_pack_args);
1908 1923
modified git-curl-compat.h
@@ -67,4 +67,12 @@
67 67 #define GIT_CURL_HAVE_CURLOPT_TCP_KEEPCNT
68 68 #endif
69 69
70 + /**
71 + * CURLOPT_UPLOAD_FLAGS and CURLULFLAG_* were added in 8.13.0,
72 + * released in April 2025.
73 + */
74 + #if LIBCURL_VERSION_NUM >= 0x080D00
75 + #define GIT_CURL_HAVE_CURLOPT_UPLOAD_FLAGS
76 + #endif
77 +
70 78 #endif
modified git-send-email.perl
@@ -863,7 +863,7 @@ sub get_patch_subject {
863 863 return "GIT: $1\n";
864 864 }
865 865 close $fh;
866 - die sprintf(__("No subject line in %s?"), $fn);
866 + die sprintf(__("No 'Subject:' line in '%s'\n"), $fn);
867 867 }
868 868
869 869 if ($compose) {
modified git-zlib.c
@@ -33,7 +33,7 @@ static const char *zerr_to_string(int status)
33 33
34 34 /* uLong is 32-bit on Windows, even on 64-bit systems */
35 35 #define ULONG_MAX_VALUE maximum_unsigned_value_of_type(uLong)
36 - static inline uInt zlib_buf_cap(unsigned long len)
36 + static inline uInt zlib_buf_cap(size_t len)
37 37 {
38 38 return (ZLIB_BUF_MAX < len) ? ZLIB_BUF_MAX : len;
39 39 }
@@ -167,9 +167,21 @@ int git_inflate(git_zstream *strm, int flush)
167 167 return status;
168 168 }
169 169
170 - unsigned long git_deflate_bound(git_zstream *strm, unsigned long size)
170 + size_t git_deflate_bound(git_zstream *strm, size_t size)
171 171 {
172 - return deflateBound(&strm->z, size);
172 + #if SIZE_MAX > ULONG_MAX
173 + if (size > maximum_unsigned_value_of_type(uLong))
174 + /*
175 + * deflateBound() takes uLong, which is 32-bit on
176 + * Windows. For inputs above that range, return zlib's
177 + * stored-block formula (the conservative path it would
178 + * itself use for an unknown stream state) plus the
179 + * worst-case wrapper overhead.
180 + */
181 + return size + (size >> 5) + (size >> 7) + (size >> 11)
182 + + 7 + 18;
183 + #endif
184 + return deflateBound(&strm->z, (uLong)size);
173 185 }
174 186
175 187 void git_deflate_init(git_zstream *strm, int level)
modified git-zlib.h
@@ -5,8 +5,8 @@
5 5
6 6 typedef struct git_zstream {
7 7 struct z_stream_s z;
8 - unsigned long avail_in;
9 - unsigned long avail_out;
8 + size_t avail_in;
9 + size_t avail_out;
10 10 size_t total_in;
11 11 size_t total_out;
12 12 unsigned char *next_in;
@@ -25,6 +25,6 @@ void git_deflate_end(git_zstream *);
25 25 int git_deflate_abort(git_zstream *);
26 26 int git_deflate_end_gently(git_zstream *);
27 27 int git_deflate(git_zstream *, int flush);
28 - unsigned long git_deflate_bound(git_zstream *, unsigned long);
28 + size_t git_deflate_bound(git_zstream *, size_t);
29 29
30 30 #endif /* GIT_ZLIB_H */
modified git.c
@@ -202,7 +202,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
202 202 if (envchanged)
203 203 *envchanged = 1;
204 204 } else if (!strcmp(cmd, "--no-lazy-fetch")) {
205 - fetch_if_missing = 0;
205 + the_repository->fetch_if_missing = 0;
206 206 setenv(NO_LAZY_FETCH_ENVIRONMENT, "1", 1);
207 207 if (envchanged)
208 208 *envchanged = 1;
@@ -304,11 +304,15 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
304 304 if (envchanged)
305 305 *envchanged = 1;
306 306 } else if (!strcmp(cmd, "--shallow-file")) {
307 - (*argv)++;
308 - (*argc)--;
309 - setenv(GIT_SHALLOW_FILE_ENVIRONMENT, (*argv)[0], 1);
307 + if (*argc < 2) {
308 + fprintf(stderr, _("no file given for '%s' option\n" ), "--shallow-file");
309 + usage(git_usage_string);
310 + }
311 + setenv(GIT_SHALLOW_FILE_ENVIRONMENT, (*argv)[1], 1);
310 312 if (envchanged)
311 313 *envchanged = 1;
314 + (*argv)++;
315 + (*argc)--;
312 316 } else if (!strcmp(cmd, "-C")) {
313 317 if (*argc < 2) {
314 318 fprintf(stderr, _("no directory given for '%s' option\n" ), "-C");
modified gitk-git/README.md
@@ -79,13 +79,14 @@ are also accepted.
79 79 All commits must be signed off (use `git commit --signoff`) and should
80 80 have commit messages prefixed with `gitk:`.
81 81
82 - Email Patches
83 - -------------
84 -
85 82 Send patches to git@vger.kernel.org and CC j6t@kdbg.org. See the Git
86 83 project's [patch submission guidelines](https://git-scm.com/docs/SubmittingPatches)
87 84 for detailed instructions on creating and sending patches.
88 85
86 + Please do not submit work that originated from AI, because this project
87 + is down-streamed to the Git project, which has a rather
88 + [strict AI guideline](https://git-scm.com/docs/SubmittingPatches#ai).
89 +
89 90 License
90 91 =======
91 92
modified gitk-git/gitk
@@ -11801,8 +11801,6 @@ proc prefspage_general {notebook} {
11801 11801 }
11802 11802
11803 11803 proc prefspage_colors {notebook} {
11804 - global bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
11805 - global diffbgcolors linkfgcolor
11806 11804 global themeloader
11807 11805
11808 11806 set page [create_prefs_page $notebook.colors]
@@ -11834,75 +11832,72 @@ proc prefspage_colors {notebook} {
11834 11832
11835 11833 ttk::label $page.cdisp -text [mc "Colors: press to choose"] -font mainfontbold
11836 11834 grid $page.cdisp - -sticky w -pady 10
11837 - label $page.bg -padx 40 -relief sunk -background $bgcolor
11838 - ttk::button $page.bgbut -text [mc "Background"] \
11839 - -command [list choosecolor bgcolor {} $page [mc "background"]]
11840 - grid x $page.bgbut $page.bg -sticky w
11841 -
11842 - label $page.fg -padx 40 -relief sunk -background $fgcolor
11843 - ttk::button $page.fgbut -text [mc "Foreground"] \
11844 - -command [list choosecolor fgcolor {} $page [mc "foreground"]]
11845 - grid x $page.fgbut $page.fg -sticky w
11846 -
11847 - label $page.diffold -padx 40 -relief sunk -background [lindex $diffcolors 0]
11848 - ttk::button $page.diffoldbut -text [mc "Diff: old lines"] \
11849 - -command [list choosecolor diffcolors 0 $page [mc "diff old lines"]]
11850 - grid x $page.diffoldbut $page.diffold -sticky w
11851 -
11852 - label $page.diffoldbg -padx 40 -relief sunk -background [lindex $diffbgcolors 0]
11853 - ttk::button $page.diffoldbgbut -text [mc "Diff: old lines bg"] \
11854 - -command [list choosecolor diffbgcolors 0 $page [mc "diff old lines bg"]]
11855 - grid x $page.diffoldbgbut $page.diffoldbg -sticky w
11856 -
11857 - label $page.diffnew -padx 40 -relief sunk -background [lindex $diffcolors 1]
11858 - ttk::button $page.diffnewbut -text [mc "Diff: new lines"] \
11859 - -command [list choosecolor diffcolors 1 $page [mc "diff new lines"]]
11860 - grid x $page.diffnewbut $page.diffnew -sticky w
11861 -
11862 - label $page.diffnewbg -padx 40 -relief sunk -background [lindex $diffbgcolors 1]
11863 - ttk::button $page.diffnewbgbut -text [mc "Diff: new lines bg"] \
11864 - -command [list choosecolor diffbgcolors 1 $page [mc "diff new lines bg"]]
11865 - grid x $page.diffnewbgbut $page.diffnewbg -sticky w
11866 -
11867 - label $page.hunksep -padx 40 -relief sunk -background [lindex $diffcolors 2]
11868 - ttk::button $page.hunksepbut -text [mc "Diff: hunk header"] \
11869 - -command [list choosecolor diffcolors 2 $page [mc "diff hunk header"]]
11870 - grid x $page.hunksepbut $page.hunksep -sticky w
11871 -
11872 - label $page.markbgsep -padx 40 -relief sunk -background $markbgcolor
11873 - ttk::button $page.markbgbut -text [mc "Marked line bg"] \
11874 - -command [list choosecolor markbgcolor {} $page [mc "marked line background"]]
11875 - grid x $page.markbgbut $page.markbgsep -sticky w
11876 -
11877 - label $page.selbgsep -padx 40 -relief sunk -background $selectbgcolor
11878 - ttk::button $page.selbgbut -text [mc "Select bg"] \
11879 - -command [list choosecolor selectbgcolor {} $page [mc "background"]]
11880 - grid x $page.selbgbut $page.selbgsep -sticky w
11881 -
11882 - label $page.linkfg -padx 40 -relief sunk -background $linkfgcolor
11883 - ttk::button $page.linkfgbut -text [mc "Link"] \
11884 - -command [list choosecolor linkfgcolor {} $page [mc "link"]]
11885 - grid x $page.linkfgbut $page.linkfg -sticky w
11835 +
11836 + set coloruielems [list \
11837 + bg bgcolor {} \
11838 + [mc "Background"] \
11839 + [mc "choose background color"] \
11840 + fg fgcolor {} \
11841 + [mc "Main text"] \
11842 + [mc "choose main text color"] \
11843 + selbg selectbgcolor {} \
11844 + [mc "Selected text background"] \
11845 + [mc "choose background color of selected text"] \
11846 + linkfg linkfgcolor {} \
11847 + [mc "Link text"] \
11848 + [mc "choose color of link text"] \
11849 + diffold diffcolors 0 \
11850 + [mc "Old line text"] \
11851 + [mc "choose text color of old lines"] \
11852 + diffoldbg diffbgcolors 0 \
11853 + [mc "Old line background"] \
11854 + [mc "choose background color of old lines"] \
11855 + diffnew diffcolors 1 \
11856 + [mc "New line text"] \
11857 + [mc "choose text color of new lines"] \
11858 + diffnewbg diffbgcolors 1 \
11859 + [mc "New line background"] \
11860 + [mc "choose background color of new lines"] \
11861 + hunksep diffcolors 2 \
11862 + [mc "Hunk header text"] \
11863 + [mc "choose text color of hunk headers"] \
11864 + markbg markbgcolor {} \
11865 + [mc "Marked line background"] \
11866 + [mc "choose background color of marked lines"] \
11867 + ]
11868 +
11869 + foreach {uielem colorvar idx label title} $coloruielems {
11870 + ttk::label $page.$uielem -text $label
11871 + button $page.${uielem}btn -padx 40 -pady 0 -borderwidth 2 \
11872 + -command [list choosecolor $colorvar $idx $page $title]
11873 + grid x $page.$uielem $page.${uielem}btn -sticky w -pady 1
11874 + }
11886 11875
11887 11876 grid columnconfigure $page 2 -weight 1
11877 + prefspage_set_colorswatches $page
11888 11878
11889 11879 return $page
11890 11880 }
11891 11881
11892 11882 proc prefspage_set_colorswatches {page} {
11893 - global bgcolor fgcolor ctext diffcolors selectbgcolor markbgcolor
11883 + global bgcolor fgcolor diffcolors selectbgcolor markbgcolor
11894 11884 global diffbgcolors linkfgcolor
11895 11885
11896 - $page.bg configure -background $bgcolor
11897 - $page.fg configure -background $fgcolor
11898 - $page.diffold configure -background [lindex $diffcolors 0]
11899 - $page.diffoldbg configure -background [lindex $diffbgcolors 0]
11900 - $page.diffnew configure -background [lindex $diffcolors 1]
11901 - $page.diffnewbg configure -background [lindex $diffbgcolors 1]
11902 - $page.hunksep configure -background [lindex $diffcolors 2]
11903 - $page.markbgsep configure -background $markbgcolor
11904 - $page.selbgsep configure -background $selectbgcolor
11905 - $page.linkfg configure -background $linkfgcolor
11886 + set coloruielems [list \
11887 + bg $bgcolor \
11888 + fg $fgcolor \
11889 + diffold [lindex $diffcolors 0] \
11890 + diffoldbg [lindex $diffbgcolors 0] \
11891 + diffnew [lindex $diffcolors 1] \
11892 + diffnewbg [lindex $diffbgcolors 1] \
11893 + hunksep [lindex $diffcolors 2] \
11894 + markbg $markbgcolor \
11895 + selbg $selectbgcolor \
11896 + linkfg $linkfgcolor \
11897 + ]
11898 + foreach {uielem color} $coloruielems {
11899 + $page.${uielem}btn configure -background $color -activebackground $color
11900 + }
11906 11901 }
11907 11902
11908 11903 proc prefspage_fonts {notebook} {
@@ -12019,11 +12014,11 @@ proc choose_themeloader {prefspage} {
12019 12014 }
12020 12015 }
12021 12016
12022 - proc choosecolor {v vi prefspage x} {
12017 + proc choosecolor {v vi prefspage title} {
12023 12018 global $v
12024 12019
12025 12020 set c [tk_chooseColor -initialcolor [lindex [set $v] $vi] \
12026 - -title [mc "Gitk: choose color for %s" $x]]
12021 + -title "Gitk: $title"]
12027 12022 if {$c eq {}} return
12028 12023 lset $v $vi $c
12029 12024 set_gui_colors
modified http-fetch.c
@@ -70,7 +70,8 @@ static void fetch_single_packfile(struct object_id *packfile_hash,
70 70
71 71 if (start_active_slot(preq->slot)) {
72 72 run_active_slot(preq->slot);
73 - if (results.curl_result != CURLE_OK) {
73 + if (results.curl_result != CURLE_OK &&
74 + results.http_code != 416) {
74 75 struct url_info url;
75 76 char *nurl = url_normalize(preq->url, &url);
76 77 if (!nurl || !git_env_bool("GIT_TRACE_REDACT", 1)) {
@@ -155,7 +156,7 @@ int cmd_main(int argc, const char **argv)
155 156
156 157 if (packfile) {
157 158 if (!index_pack_args.nr)
158 - die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-args");
159 + die(_("the option '%s' requires '%s'"), "--packfile", "--index-pack-arg");
159 160
160 161 fetch_single_packfile(&packfile_hash, argv[arg],
161 162 index_pack_args.v);
@@ -164,7 +165,7 @@ int cmd_main(int argc, const char **argv)
164 165 }
165 166
166 167 if (index_pack_args.nr)
167 - die(_("the option '%s' requires '%s'"), "--index-pack-args", "--packfile");
168 + die(_("the option '%s' requires '%s'"), "--index-pack-arg", "--packfile");
168 169
169 170 if (commits_on_stdin) {
170 171 commits = walker_targets_stdin(&commit_id, &write_ref);
modified http-push.c
@@ -367,7 +367,7 @@ static void start_put(struct transfer_request *request)
367 367 void *unpacked;
368 368 size_t len;
369 369 int hdrlen;
370 - ssize_t size;
370 + size_t size;
371 371 git_zstream stream;
372 372 struct repo_config_values *cfg = repo_config_values(the_repository);
373 373
@@ -595,7 +595,8 @@ static void finish_request(struct transfer_request *request)
595 595
596 596 } else if (request->state == RUN_FETCH_PACKED) {
597 597 int fail = 1;
598 - if (request->curl_result != CURLE_OK) {
598 + if (request->curl_result != CURLE_OK &&
599 + request->http_code != 416) {
599 600 fprintf(stderr, "Unable to get pack file %s\n%s",
600 601 request->url, curl_errorstr);
601 602 } else {
modified http-walker.c
@@ -451,7 +451,8 @@ static int http_fetch_pack(struct walker *walker, struct alt_base *repo,
451 451
452 452 if (start_active_slot(preq->slot)) {
453 453 run_active_slot(preq->slot);
454 - if (results.curl_result != CURLE_OK) {
454 + if (results.curl_result != CURLE_OK &&
455 + results.http_code != 416) {
455 456 error("Unable to get pack file %s\n%s", preq->url,
456 457 curl_errorstr);
457 458 goto abort;
modified http.c
@@ -1608,6 +1608,8 @@ struct active_request_slot *get_active_slot(void)
1608 1608
1609 1609 if (!slot->curl) {
1610 1610 slot->curl = curl_easy_duphandle(curl_default);
1611 + if (!slot->curl)
1612 + die("curl_easy_duphandle failed");
1611 1613 curl_session_count++;
1612 1614 }
1613 1615
@@ -2688,10 +2690,13 @@ int finish_http_pack_request(struct http_pack_request *preq)
2688 2690 int tmpfile_fd;
2689 2691 int ret = 0;
2690 2692
2693 + /* Another downloader may unlink the staging path while we index it. */
2694 + tmpfile_fd = xdup(fileno(preq->packfile));
2691 2695 fclose(preq->packfile);
2692 2696 preq->packfile = NULL;
2693 -
2694 - tmpfile_fd = xopen(preq->tmpfile.buf, O_RDONLY);
2697 + if (lseek(tmpfile_fd, 0, SEEK_SET) < 0)
2698 + die_errno("unable to seek local file %s for pack",
2699 + preq->tmpfile.buf);
2695 2700
2696 2701 ip.git_cmd = 1;
2697 2702 ip.in = tmpfile_fd;
@@ -2704,13 +2709,8 @@ int finish_http_pack_request(struct http_pack_request *preq)
2704 2709 else
2705 2710 ip.no_stdout = 1;
2706 2711
2707 - if (run_command(&ip)) {
2712 + if (run_command(&ip))
2708 2713 ret = -1;
2709 - goto cleanup;
2710 - }
2711 -
2712 - cleanup:
2713 - close(tmpfile_fd);
2714 2714 unlink(preq->tmpfile.buf);
2715 2715 return ret;
2716 2716 }
@@ -2738,22 +2738,45 @@ struct http_pack_request *new_http_pack_request(
2738 2738 struct http_pack_request *new_direct_http_pack_request(
2739 2739 const unsigned char *packed_git_hash, char *url)
2740 2740 {
2741 - off_t prev_posn = 0;
2741 + off_t prev_posn;
2742 2742 struct http_pack_request *preq;
2743 + int fd;
2743 2744
2744 2745 CALLOC_ARRAY(preq, 1);
2745 2746 strbuf_init(&preq->tmpfile, 0);
2746 -
2747 2747 preq->url = url;
2748 2748
2749 2749 odb_pack_name(the_repository, &preq->tmpfile, packed_git_hash, "pack");
2750 2750 strbuf_addstr(&preq->tmpfile, ".temp");
2751 - preq->packfile = fopen(preq->tmpfile.buf, "a");
2752 - if (!preq->packfile) {
2753 - error("Unable to open local file %s for pack",
2754 - preq->tmpfile.buf);
2751 + /*
2752 + * MinGW's non-append O_RDWR open grants FILE_SHARE_DELETE only for an
2753 + * existing file; reopen a newly created file so others may unlink it.
2754 + */
2755 + for (;;) {
2756 + fd = open(preq->tmpfile.buf, O_RDWR);
2757 + if (fd >= 0 || errno != ENOENT)
2758 + break;
2759 + fd = open(preq->tmpfile.buf, O_RDWR | O_CREAT | O_EXCL, 0666);
2760 + if (fd >= 0) {
2761 + close(fd);
2762 + continue;
2763 + }
2764 + if (errno != EEXIST)
2765 + break;
2766 + }
2767 + if (fd < 0) {
2768 + error_errno("unable to open local file %s for pack",
2769 + preq->tmpfile.buf);
2755 2770 goto abort;
2756 2771 }
2772 + prev_posn = lseek(fd, 0, SEEK_END);
2773 + if (prev_posn < 0) {
2774 + error_errno("unable to seek local file %s for pack",
2775 + preq->tmpfile.buf);
2776 + close(fd);
2777 + goto abort;
2778 + }
2779 + preq->packfile = xfdopen(fd, "w");
2757 2780
2758 2781 preq->slot = get_active_slot();
2759 2782 preq->headers = object_request_headers();
@@ -2762,12 +2785,7 @@ struct http_pack_request *new_direct_http_pack_request(
2762 2785 curl_easy_setopt(preq->slot->curl, CURLOPT_URL, preq->url);
2763 2786 curl_easy_setopt(preq->slot->curl, CURLOPT_HTTPHEADER, preq->headers);
2764 2787
2765 - /*
2766 - * If there is data present from a previous transfer attempt,
2767 - * resume where it left off
2768 - */
2769 - prev_posn = ftello(preq->packfile);
2770 - if (prev_posn>0) {
2788 + if (prev_posn > 0) {
2771 2789 if (http_is_verbose)
2772 2790 fprintf(stderr,
2773 2791 "Resuming fetch of pack %s at byte %"PRIuMAX"\n",
modified imap-send.c
@@ -35,6 +35,7 @@
35 35 #include "setup.h"
36 36 #include "strbuf.h"
37 37 #ifdef USE_CURL_FOR_IMAP_SEND
38 + #include "git-curl-compat.h"
38 39 #include "http.h"
39 40 #endif
40 41
@@ -49,10 +50,11 @@
49 50 static int verbosity;
50 51 static int list_folders;
51 52 static int use_curl = USE_CURL_DEFAULT;
53 + static int opt_draft;
52 54 static char *opt_folder;
53 55
54 56 static char const * const imap_send_usage[] = {
55 - N_("git imap-send [-v] [-q] [--[no-]curl] [(--folder|-f) <folder>] < <mbox>"),
57 + N_("git imap-send [-v] [-q] [--[no-]curl] [--[no-]draft] [(--folder|-f) <folder>] < <mbox>"),
56 58 "git imap-send --list",
57 59 NULL
58 60 };
@@ -60,6 +62,7 @@ static char const * const imap_send_usage[] = {
60 62 static struct option imap_send_options[] = {
61 63 OPT__VERBOSITY(&verbosity),
62 64 OPT_BOOL(0, "curl", &use_curl, "use libcurl to communicate with the IMAP server"),
65 + OPT_BOOL(0, "draft", &opt_draft, "mark uploaded messages with the IMAP \\Draft flag"),
63 66 OPT_STRING('f', "folder", &opt_folder, "folder", "specify the IMAP folder"),
64 67 OPT_BOOL(0, "list", &list_folders, "list all folders on the IMAP server"),
65 68 OPT_END()
@@ -1416,7 +1419,8 @@ static int imap_store_msg(struct imap_store *ctx, struct strbuf *msg)
1416 1419
1417 1420 box = ctx->name;
1418 1421 prefix = !strcmp(box, "INBOX") ? "" : ctx->prefix;
1419 - ret = imap_exec_m(ctx, &cb, "APPEND \"%s%s\" ", prefix, box);
1422 + ret = imap_exec_m(ctx, &cb, "APPEND \"%s%s\" %s", prefix, box,
1423 + opt_draft ? "(\\Draft) " : "");
1420 1424 imap->caps = imap->rcaps;
1421 1425 if (ret != DRV_OK)
1422 1426 return ret;
@@ -1718,6 +1722,13 @@ static int curl_append_msgs_to_imap(struct imap_server_conf *server,
1718 1722
1719 1723 curl_easy_setopt(curl, CURLOPT_READDATA, &msgbuf);
1720 1724
1725 + if (opt_draft) {
1726 + #ifdef GIT_CURL_HAVE_CURLOPT_UPLOAD_FLAGS
1727 + curl_easy_setopt(curl, CURLOPT_UPLOAD_FLAGS, CURLULFLAG_DRAFT);
1728 + #else
1729 + warning("--draft requires libcurl 8.13.0 or later");
1730 + #endif
1731 + }
1721 1732 fprintf(stderr, "Sending %d message%s to %s folder...\n",
1722 1733 total, (total != 1) ? "s" : "", server->folder);
1723 1734 while (1) {
modified list-objects-filter.c
@@ -828,3 +828,48 @@ void list_objects_filter__free(struct filter *filter)
828 828 filter->free_fn(filter->filter_data);
829 829 free(filter);
830 830 }
831 +
832 + /*
833 + * NEEDSWORK: this reimplements the blob:limit size check rather than
834 + * reusing the existing filter machinery in
835 + * list_objects_filter__filter_object(). That machinery is currently
836 + * tied to the object-walk path and cannot easily be driven from a
837 + * plain oidset. It would be nice to refactor the filter code so this
838 + * helper can reuse it instead of duplicating the size check.
839 + */
840 + int list_objects_filter__filter_oidset(struct repository *r,
841 + const struct list_objects_filter_options *opts,
842 + const struct oidset *in,
843 + struct oidset *omitted)
844 + {
845 + struct oidset_iter iter;
846 + const struct object_id *oid;
847 +
848 + if (opts->choice != LOFC_BLOB_LIMIT)
849 + return error(_("filter_oidset: only blob:limit filters are supported"));
850 +
851 + oidset_iter_init(in, &iter);
852 + while ((oid = oidset_iter_next(&iter))) {
853 + struct object_info info = OBJECT_INFO_INIT;
854 + enum object_type type;
855 + size_t size;
856 +
857 + info.typep = &type;
858 + info.sizep = &size;
859 +
860 + /*
861 + * Use OBJECT_INFO_SKIP_FETCH_OBJECT to avoid triggering
862 + * a lazy fetch while inspecting candidates for removal.
863 + */
864 + if (odb_read_object_info_extended(r->objects, oid, &info,
865 + OBJECT_INFO_SKIP_FETCH_OBJECT) < 0)
866 + continue;
867 +
868 + if (type != OBJ_BLOB)
869 + continue;
870 +
871 + if (size >= opts->blob_limit_value)
872 + oidset_insert(omitted, oid);
873 + }
874 + return 0;
875 + }
modified list-objects-filter.h
@@ -94,4 +94,20 @@ enum list_objects_filter_result list_objects_filter__filter_object(
94 94 */
95 95 void list_objects_filter__free(struct filter *filter);
96 96
97 + /*
98 + * Given a set of OIDs in 'in', populate 'omitted' with those that
99 + * would be filtered by 'opts'. Currently only blob:limit=N is
100 + * supported. Objects that cannot be read are silently skipped.
101 + *
102 + * NEEDSWORK: this reimplements the blob:limit size check rather than
103 + * reusing the existing filter machinery. See the matching comment in
104 + * list-objects-filter.c.
105 + *
106 + * Return 0 on success, -1 if the filter is not supported.
107 + */
108 + int list_objects_filter__filter_oidset(struct repository *r,
109 + const struct list_objects_filter_options *opts,
110 + const struct oidset *in,
111 + struct oidset *omitted);
112 +
97 113 #endif /* LIST_OBJECTS_FILTER_H */
modified loose.c
@@ -61,12 +61,17 @@ static int insert_loose_map(struct odb_source_loose *loose,
61 61 return inserted;
62 62 }
63 63
64 - static int load_one_loose_object_map(struct repository *repo, struct odb_source_loose *loose)
64 + int loose_object_map_load(struct odb_source_loose *loose)
65 65 {
66 - struct strbuf buf = STRBUF_INIT, path = STRBUF_INIT;
66 + struct repository *repo = loose->base.odb->repo;
67 + struct strbuf buf = STRBUF_INIT;
68 + char *path;
67 69 FILE *fp;
68 70 int ret = -1;
69 71
72 + if (!should_use_loose_object_map(repo))
73 + return 0;
74 +
70 75 if (!loose->map)
71 76 loose_object_map_init(&loose->map);
72 77 if (!loose->cache) {
@@ -78,10 +83,10 @@ static int load_one_loose_object_map(struct repository *repo, struct odb_source_
78 83 insert_loose_map(loose, repo->hash_algo->empty_blob, repo->compat_hash_algo->empty_blob);
79 84 insert_loose_map(loose, repo->hash_algo->null_oid, repo->compat_hash_algo->null_oid);
80 85
81 - repo_common_path_replace(repo, &path, "objects/loose-object-idx");
82 - fp = fopen(path.buf, "rb");
86 + path = xstrfmt("%s/loose-object-idx", loose->base.path);
87 + fp = fopen(path, "rb");
83 88 if (!fp) {
84 - strbuf_release(&path);
89 + free(path);
85 90 return 0;
86 91 }
87 92
@@ -102,7 +107,7 @@ static int load_one_loose_object_map(struct repository *repo, struct odb_source_
102 107 err:
103 108 fclose(fp);
104 109 strbuf_release(&buf);
105 - strbuf_release(&path);
110 + free(path);
106 111 return ret;
107 112 }
108 113
@@ -110,17 +115,12 @@ int repo_read_loose_object_map(struct repository *repo)
110 115 {
111 116 struct odb_source *source;
112 117
113 - if (!should_use_loose_object_map(repo))
114 - return 0;
115 -
116 - odb_prepare_alternates(repo->objects);
117 -
118 118 for (source = repo->objects->sources; source; source = source->next) {
119 119 struct odb_source_files *files = odb_source_files_downcast(source);
120 - if (load_one_loose_object_map(repo, files->loose) < 0) {
120 + if (loose_object_map_load(files->loose) < 0)
121 121 return -1;
122 - }
123 122 }
123 +
124 124 return 0;
125 125 }
126 126
modified loose.h
@@ -13,6 +13,7 @@ struct loose_object_map {
13 13
14 14 void loose_object_map_init(struct loose_object_map **map);
15 15 void loose_object_map_clear(struct loose_object_map **map);
16 + int loose_object_map_load(struct odb_source_loose *loose);
16 17 int repo_loose_object_map_oid(struct repository *repo,
17 18 const struct object_id *src,
18 19 const struct git_hash_algo *dest_algo,
modified merge-ll.c
@@ -468,3 +468,59 @@ int ll_merge_marker_size(struct index_state *istate, const char *path)
468 468 }
469 469 return marker_size;
470 470 }
471 +
472 + int is_conflict_marker_line(const char *line, unsigned long len, int marker_size)
473 + {
474 + char firstchar;
475 + int cnt;
476 +
477 + if (len < marker_size + 1)
478 + return 0;
479 +
480 + firstchar = line[0];
481 + switch (firstchar) {
482 + case '=': case '>': case '<': case '|':
483 + break;
484 + default:
485 + return 0;
486 + }
487 +
488 + for (cnt = 1; cnt < marker_size; cnt++) {
489 + if (line[cnt] != firstchar)
490 + return 0;
491 + }
492 +
493 + if (((firstchar == '<') || (firstchar == '>')) &&
494 + line[marker_size] != ' ')
495 + return 0;
496 +
497 + if (!isspace((unsigned char)line[marker_size]))
498 + return 0;
499 +
500 + return firstchar;
501 + }
502 +
503 + int has_conflict_markers(struct index_state *istate, const char *path)
504 + {
505 + FILE *f;
506 + struct strbuf sb = STRBUF_INIT;
507 + int marker_size = ll_merge_marker_size(istate, path);
508 + int has_markers = 0;
509 +
510 + f = fopen(path, "r");
511 + if (!f)
512 + return 0;
513 +
514 + while (strbuf_getwholeline(&sb, f, '\n') != EOF) {
515 + if (is_conflict_marker_line(sb.buf, sb.len, marker_size)) {
516 + has_markers = 1;
517 + break;
518 + }
519 + if (buffer_is_binary(sb.buf,
520 + ULONG_MAX <= sb.len ? ULONG_MAX : sb.len))
521 + break;
522 + }
523 + fclose(f);
524 + strbuf_release(&sb);
525 + return has_markers;
526 + }
modified merge-ll.h
@@ -109,6 +109,8 @@ enum ll_merge_result ll_merge(mmbuffer_t *result_buf,
109 109 const struct ll_merge_options *opts);
110 110
111 111 int ll_merge_marker_size(struct index_state *istate, const char *path);
112 + int is_conflict_marker_line(const char *line, unsigned long len, int marker_size);
113 + int has_conflict_markers(struct index_state *istate, const char *path);
112 114 void reset_merge_attributes(void);
113 115
114 116 #endif
modified meson.build
@@ -1318,7 +1318,6 @@ elif host_machine.system() == 'windows'
1318 1318
1319 1319 libgit_c_args += [
1320 1320 '-DDETECT_MSYS_TTY',
1321 - '-DENSURE_MSYSTEM_IS_SET',
1322 1321 '-DNATIVE_CRLF',
1323 1322 '-DNOGDI',
1324 1323 '-DNO_POSIX_GOODIES',
@@ -1328,6 +1327,20 @@ elif host_machine.system() == 'windows'
1328 1327 '-D__USE_MINGW_ANSI_STDIO=0',
1329 1328 ]
1330 1329
1330 + msystem = get_option('msystem')
1331 + if msystem != ''
1332 + mingw_prefix = get_option('mingw_prefix')
1333 + if mingw_prefix == ''
1334 + mingw_prefix = msystem.to_lower()
1335 + elif mingw_prefix.startswith('/')
1336 + mingw_prefix = mingw_prefix.substring(1)
1337 + endif
1338 + libgit_c_args += [
1339 + '-DENSURE_MSYSTEM_IS_SET="' + msystem + '"',
1340 + '-DMINGW_PREFIX="' + mingw_prefix + '"'
1341 + ]
1342 + endif
1343 +
1331 1344 libgit_dependencies += compiler.find_library('ntdll')
1332 1345 libgit_include_directories += 'compat/win32'
1333 1346 if compiler.get_id() == 'msvc'
@@ -1464,6 +1477,7 @@ checkfuncs = {
1464 1477 'initgroups' : [],
1465 1478 'strtoumax' : ['strtoumax.c', 'strtoimax.c'],
1466 1479 'pread' : ['pread.c'],
1480 + 'writev' : ['writev.c'],
1467 1481 }
1468 1482
1469 1483 if host_machine.system() == 'windows'
modified meson_options.txt
@@ -21,6 +21,10 @@ option('runtime_prefix', type: 'boolean', value: false,
21 21 description: 'Resolve ancillary tooling and support files relative to the location of the runtime binary instead of hard-coding them into the binary.')
22 22 option('sane_tool_path', type: 'array', value: [],
23 23 description: 'An array of paths to pick up tools from in case the normal tools are broken or lacking.')
24 + option('msystem', type: 'string', value: '',
25 + description: 'Fall-back on Windows when MSYSTEM is not set.')
26 + option('mingw_prefix', type: 'string', value: '',
27 + description: 'Fall-back on Windows when MINGW_PREFIX is not set.')
24 28
25 29 # Build information compiled into Git and other parts like documentation.
26 30 option('build_date', type: 'string', value: '',
modified midx-write.c
@@ -865,7 +865,7 @@ static void find_commits_for_midx_bitmap(struct commit_stack *commits,
865 865 * complain later that we don't have reachability closure (and fail
866 866 * appropriately).
867 867 */
868 - fetch_if_missing = 0;
868 + ctx->repo->fetch_if_missing = 0;
869 869 revs.exclude_promisor_objects = 1;
870 870
871 871 if (prepare_revision_walk(&revs))
modified midx.c
@@ -589,22 +589,23 @@ uint32_t nth_midxed_pack_int_id(struct multi_pack_index *m, uint32_t pos)
589 589 (off_t)pos * MIDX_CHUNK_OFFSET_WIDTH);
590 590 }
591 591
592 - int fill_midx_entry(struct multi_pack_index *m,
593 - const struct object_id *oid,
594 - struct pack_entry *e)
592 + enum midx_fill_result midx_fill_entry(struct multi_pack_index *m,
593 + const struct object_id *oid,
594 + struct pack_entry *e,
595 + struct packed_git **bad_pack)
595 596 {
596 597 uint32_t pos;
597 598 uint32_t pack_int_id;
598 599 struct packed_git *p;
599 600
600 601 if (!bsearch_midx(oid, m, &pos))
601 - return 0;
602 + return MIDX_FILL_MISS;
602 603
603 604 midx_for_object(&m, pos);
604 605 pack_int_id = nth_midxed_pack_int_id(m, pos);
605 606
606 607 if (prepare_midx_pack(m, pack_int_id))
607 - return 0;
608 + return MIDX_FILL_OWNER_UNAVAILABLE;
608 609 p = m->packs[pack_int_id - m->num_packs_in_base];
609 610
610 611 /*
@@ -615,16 +616,19 @@ int fill_midx_entry(struct multi_pack_index *m,
615 616 * loaded!
616 617 */
617 618 if (!is_pack_valid(p))
618 - return 0;
619 + return MIDX_FILL_OWNER_UNAVAILABLE;
619 620
620 621 if (oidset_size(&p->bad_objects) &&
621 - oidset_contains(&p->bad_objects, oid))
622 - return 0;
622 + oidset_contains(&p->bad_objects, oid)) {
623 + if (bad_pack && !*bad_pack)
624 + *bad_pack = p;
625 + return MIDX_FILL_MISS;
626 + }
623 627
624 628 e->offset = nth_midxed_offset(m, pos);
625 629 e->p = p;
626 630
627 - return 1;
631 + return MIDX_FILL_HIT;
628 632 }
629 633
630 634 /* Match "foo.idx" against either "foo.pack" _or_ "foo.idx". */
@@ -1028,7 +1032,7 @@ int verify_midx_file(struct odb_source_packed *source, unsigned flags)
1028 1032
1029 1033 nth_midxed_object_oid(&oid, m, pairs[i].pos);
1030 1034
1031 - if (!fill_midx_entry(m, &oid, &e)) {
1035 + if (midx_fill_entry(m, &oid, &e, NULL) != MIDX_FILL_HIT) {
1032 1036 midx_report(_("failed to load pack entry for oid[%d] = %s"),
1033 1037 pairs[i].pos, oid_to_hex(&oid));
1034 1038 continue;
modified midx.h
@@ -117,7 +117,25 @@ uint32_t nth_midxed_pack_int_id(struct multi_pack_index *m, uint32_t pos);
117 117 struct object_id *nth_midxed_object_oid(struct object_id *oid,
118 118 struct multi_pack_index *m,
119 119 uint32_t n);
120 - int fill_midx_entry(struct multi_pack_index *m, const struct object_id *oid, struct pack_entry *e);
120 + /*
121 + * Result of looking an object up in a multi-pack-index. MIDX_FILL_HIT means
122 + * "e was filled in"; the two miss variants distinguish an object the midx does
123 + * not know about (MIDX_FILL_MISS) from one it does know about but whose owning
124 + * pack we can no longer open (MIDX_FILL_OWNER_UNAVAILABLE -- the signature of a
125 + * concurrent repack having removed that pack). A known-bad (corrupt) object
126 + * reports MIDX_FILL_MISS but also sets *bad_pack, if provided, to the owning
127 + * pack so the caller can tell "corrupt" apart from "absent".
128 + */
129 + enum midx_fill_result {
130 + MIDX_FILL_MISS = 0,
131 + MIDX_FILL_HIT,
132 + MIDX_FILL_OWNER_UNAVAILABLE,
133 + };
134 +
135 + enum midx_fill_result midx_fill_entry(struct multi_pack_index *m,
136 + const struct object_id *oid,
137 + struct pack_entry *e,
138 + struct packed_git **bad_pack);
121 139 int midx_contains_pack(struct multi_pack_index *m,
122 140 const char *idx_or_pack_name);
123 141 int midx_layer_contains_pack(struct multi_pack_index *m,
modified object-file.c
@@ -10,6 +10,7 @@
10 10 #define USE_THE_REPOSITORY_VARIABLE
11 11
12 12 #include "git-compat-util.h"
13 + #include "config.h"
13 14 #include "convert.h"
14 15 #include "dir.h"
15 16 #include "environment.h"
@@ -26,6 +27,7 @@
26 27 #include "packfile.h"
27 28 #include "path.h"
28 29 #include "read-cache-ll.h"
30 + #include "run-command.h"
29 31 #include "setup.h"
30 32 #include "strvec.h"
31 33 #include "tempfile.h"
@@ -122,7 +124,7 @@ int check_object_signature(struct repository *r, const struct object_id *oid,
122 124 }
123 125
124 126 int stream_object_signature(struct repository *r,
125 - struct odb_read_stream *st,
127 + struct odb_stream *st,
126 128 const struct object_id *oid)
127 129 {
128 130 struct object_id real_oid;
@@ -138,7 +140,7 @@ int stream_object_signature(struct repository *r,
138 140 git_hash_update(&c, hdr, hdrlen);
139 141 for (;;) {
140 142 char buf[1024 * 16];
141 - ssize_t readlen = odb_read_stream_read(st, buf, sizeof(buf));
143 + ssize_t readlen = odb_stream_read(st, buf, sizeof(buf));
142 144 if (readlen < 0)
143 145 return -1;
144 146 if (!readlen)
@@ -483,10 +485,16 @@ struct transaction_packfile {
483 485
484 486 struct odb_transaction_files {
485 487 struct odb_transaction base;
488 + enum odb_transaction_flags flags;
486 489
487 490 struct tmp_objdir *objdir;
491 + struct odb_source *quarantine;
488 492 struct transaction_packfile packfile;
489 493 const char *prefix;
494 +
495 + struct tempfile **pack_lockfiles;
496 + size_t pack_lockfiles_nr;
497 + size_t pack_lockfiles_alloc;
490 498 };
491 499
492 500 int odb_transaction_files_prepare(struct odb_transaction *base)
@@ -507,7 +515,7 @@ int odb_transaction_files_prepare(struct odb_transaction *base)
507 515 if (!transaction->objdir)
508 516 return error(_("unable to create temporary object directory"));
509 517
510 - tmp_objdir_replace_primary_odb(transaction->objdir, 0);
518 + transaction->quarantine = tmp_objdir_replace_primary_odb(transaction->objdir, 0);
511 519
512 520 return 0;
513 521 }
@@ -702,9 +710,9 @@ static void prepare_packfile_transaction(struct odb_transaction_files *transacti
702 710 die_errno("unable to write pack header");
703 711 }
704 712
705 - static int hash_blob_stream(struct odb_write_stream *stream,
706 - const struct git_hash_algo *hash_algo,
707 - struct object_id *result_oid, size_t size)
713 + static int hash_stream(struct odb_stream *stream,
714 + const struct git_hash_algo *hash_algo,
715 + struct object_id *result_oid)
708 716 {
709 717 unsigned char buf[16384];
710 718 struct git_hash_ctx ctx;
@@ -712,22 +720,23 @@ static int hash_blob_stream(struct odb_write_stream *stream,
712 720 size_t bytes_hashed = 0;
713 721
714 722 header_len = format_object_header((char *)buf, sizeof(buf),
715 - OBJ_BLOB, size);
723 + stream->type, stream->size);
716 724 git_hash_init(&ctx, hash_algo);
717 725 git_hash_update(&ctx, buf, header_len);
718 726
719 - while (!stream->is_finished) {
720 - ssize_t read_result = odb_write_stream_read(stream, buf,
721 - sizeof(buf));
722 -
727 + while (1) {
728 + ssize_t read_result = odb_stream_read(stream, buf,
729 + sizeof(buf));
723 730 if (read_result < 0)
724 731 return -1;
732 + if (!read_result)
733 + break;
725 734
726 735 git_hash_update(&ctx, buf, read_result);
727 736 bytes_hashed += read_result;
728 737 }
729 738
730 - if (bytes_hashed != size)
739 + if (bytes_hashed != stream->size)
731 740 return -1;
732 741
733 742 git_hash_final_oid(result_oid, &ctx);
@@ -739,9 +748,9 @@ static int hash_blob_stream(struct odb_write_stream *stream,
739 748 * Read the contents from the stream provided, streaming it to the
740 749 * packfile in state while updating the hash in ctx.
741 750 */
742 - static void stream_blob_to_pack(struct transaction_packfile *state,
743 - struct git_hash_ctx *ctx, size_t size,
744 - struct odb_write_stream *stream)
751 + static void stream_to_pack(struct transaction_packfile *state,
752 + struct git_hash_ctx *ctx,
753 + struct odb_stream *stream)
745 754 {
746 755 git_zstream s;
747 756 unsigned char ibuf[16384];
@@ -749,21 +758,23 @@ static void stream_blob_to_pack(struct transaction_packfile *state,
749 758 unsigned hdrlen;
750 759 int status = Z_OK;
751 760 struct repo_config_values *cfg = repo_config_values(the_repository);
761 + bool is_finished = false;
752 762 size_t bytes_read = 0;
753 763
754 764 git_deflate_init(&s, cfg->pack_compression_level);
755 765
756 - hdrlen = encode_in_pack_object_header(obuf, sizeof(obuf), OBJ_BLOB, size);
766 + hdrlen = encode_in_pack_object_header(obuf, sizeof(obuf), stream->type, stream->size);
757 767 s.next_out = obuf + hdrlen;
758 768 s.avail_out = sizeof(obuf) - hdrlen;
759 769
760 770 while (status != Z_STREAM_END) {
761 - if (!stream->is_finished && !s.avail_in) {
762 - ssize_t rsize = odb_write_stream_read(stream, ibuf,
763 - sizeof(ibuf));
764 -
771 + if (!is_finished && !s.avail_in) {
772 + ssize_t rsize = odb_stream_read(stream, ibuf,
773 + sizeof(ibuf));
765 774 if (rsize < 0)
766 - die("failed to read blob data");
775 + die("failed to read object data");
776 + if (!rsize)
777 + is_finished = true;
767 778
768 779 git_hash_update(ctx, ibuf, rsize);
769 780
@@ -772,7 +783,7 @@ static void stream_blob_to_pack(struct transaction_packfile *state,
772 783 bytes_read += rsize;
773 784 }
774 785
775 - status = git_deflate(&s, stream->is_finished ? Z_FINISH : 0);
786 + status = git_deflate(&s, is_finished ? Z_FINISH : 0);
776 787
777 788 if (!s.avail_out || status == Z_STREAM_END) {
778 789 size_t written = s.next_out - obuf;
@@ -793,9 +804,9 @@ static void stream_blob_to_pack(struct transaction_packfile *state,
793 804 }
794 805 }
795 806
796 - if (bytes_read != size)
797 - die("read %" PRIuMAX " bytes of blob data, but expected %" PRIuMAX " bytes",
798 - (uintmax_t)bytes_read, (uintmax_t)size);
807 + if (bytes_read != stream->size)
808 + die("read %" PRIuMAX " bytes of object data, but expected %" PRIuMAX " bytes",
809 + (uintmax_t)bytes_read, (uintmax_t)stream->size);
799 810
800 811 git_deflate_end(&s);
801 812 }
@@ -865,12 +876,11 @@ clear_exit:
865 876 * result, which we need to know beforehand when writing a git object.
866 877 * Since the primary motivation for trying to stream from the working
867 878 * tree file and to avoid mmaping it in core is to deal with large
868 - * binary blobs, they generally do not want to get any conversion, and
879 + * objects, they generally do not want to get any conversion, and
869 880 * callers should avoid this code path when filters are requested.
870 881 */
871 882 static int odb_transaction_files_write_object_stream(struct odb_transaction *base,
872 - struct odb_write_stream *stream,
873 - size_t size,
883 + struct odb_stream *stream,
874 884 struct object_id *result_oid)
875 885 {
876 886 struct odb_transaction_files *transaction = container_of(base,
@@ -884,7 +894,7 @@ static int odb_transaction_files_write_object_stream(struct odb_transaction *bas
884 894 struct pack_idx_entry *idx;
885 895
886 896 header_len = format_object_header((char *)obuf, sizeof(obuf),
887 - OBJ_BLOB, size);
897 + stream->type, stream->size);
888 898 git_hash_init(&ctx, transaction->base.source->odb->repo->hash_algo);
889 899 git_hash_update(&ctx, obuf, header_len);
890 900
@@ -899,7 +909,7 @@ static int odb_transaction_files_write_object_stream(struct odb_transaction *bas
899 909 * to zlib compression and is sufficient for this check.
900 910 */
901 911 if (state->nr_written && pack_size_limit_cfg &&
902 - pack_size_limit_cfg < state->offset + size)
912 + pack_size_limit_cfg < state->offset + stream->size)
903 913 flush_packfile_transaction(transaction);
904 914
905 915 CALLOC_ARRAY(idx, 1);
@@ -909,7 +919,7 @@ static int odb_transaction_files_write_object_stream(struct odb_transaction *bas
909 919 hashfile_checkpoint(state->f, &checkpoint);
910 920 idx->offset = state->offset;
911 921 crc32_begin(state->f);
912 - stream_blob_to_pack(state, &ctx, size, stream);
922 + stream_to_pack(state, &ctx, stream);
913 923 git_hash_final_oid(result_oid, &ctx);
914 924
915 925 idx->crc32 = crc32_end(state->f);
@@ -950,8 +960,8 @@ int index_fd(struct index_state *istate, struct object_id *oid,
950 960 ret = index_core(istate, oid, fd, xsize_t(st->st_size),
951 961 type, path, flags);
952 962 } else {
953 - struct odb_write_stream stream;
954 - odb_write_stream_from_fd(&stream, fd, xsize_t(st->st_size));
963 + struct odb_stream *stream = odb_stream_from_fd(fd, xsize_t(st->st_size),
964 + OBJ_BLOB);
955 965
956 966 if (flags & INDEX_WRITE_OBJECT) {
957 967 struct object_database *odb = the_repository->objects;
@@ -961,18 +971,14 @@ int index_fd(struct index_state *istate, struct object_id *oid,
961 971 if (!inflight)
962 972 odb_transaction_begin_or_die(odb, &transaction, 0);
963 973 ret = odb_transaction_write_object_stream(transaction,
964 - &stream,
965 - xsize_t(st->st_size),
966 - oid);
974 + stream, oid);
967 975 if (!inflight)
968 - odb_transaction_commit(transaction);
976 + odb_transaction_commit_and_finalize_or_die(transaction);
969 977 } else {
970 - ret = hash_blob_stream(&stream,
971 - the_repository->hash_algo, oid,
972 - xsize_t(st->st_size));
978 + ret = hash_stream(stream, the_repository->hash_algo, oid);
973 979 }
974 980
975 - odb_write_stream_release(&stream);
981 + odb_stream_close(stream);
976 982 }
977 983
978 984 close(fd);
@@ -1290,6 +1296,174 @@ static int odb_transaction_files_commit(struct odb_transaction *base)
1290 1296 return 0;
1291 1297 }
1292 1298
1299 + static const char *parse_pack_header(struct pack_header *hdr, int pack_fd)
1300 + {
1301 + switch (read_pack_header(pack_fd, hdr)) {
1302 + case PH_ERROR_EOF:
1303 + return "eof before pack header was fully read";
1304 +
1305 + case PH_ERROR_PACK_SIGNATURE:
1306 + return "protocol error (pack signature mismatch detected)";
1307 +
1308 + case PH_ERROR_PROTOCOL:
1309 + return "protocol error (pack version unsupported)";
1310 +
1311 + default:
1312 + return "unknown error in parse_pack_header";
1313 +
1314 + case 0:
1315 + return NULL;
1316 + }
1317 + }
1318 +
1319 + static void push_header_arg(struct strvec *args, struct pack_header *hdr)
1320 + {
1321 + strvec_pushf(args, "--pack_header=%"PRIu32",%"PRIu32,
1322 + ntohl(hdr->hdr_version), ntohl(hdr->hdr_entries));
1323 + }
1324 +
1325 + static unsigned int get_unpack_limit(struct repository *repo,
1326 + enum odb_transaction_flags flags)
1327 + {
1328 + unsigned int limit = 0;
1329 +
1330 + if (flags & ODB_TRANSACTION_RECEIVE) {
1331 + limit = 100;
1332 + repo_config_get_uint(repo, "transfer.unpacklimit", &limit);
1333 + repo_config_get_uint(repo, "receive.unpacklimit", &limit);
1334 + }
1335 +
1336 + return limit;
1337 + }
1338 +
1339 + static int odb_transaction_files_write_pack(struct odb_transaction *base,
1340 + int pack_fd, struct strbuf *err_msg,
1341 + const struct odb_transaction_write_pack_opts *opts)
1342 + {
1343 + struct odb_transaction_files *transaction =
1344 + container_of(base, struct odb_transaction_files, base);
1345 + struct repository *repo = base->source->odb->repo;
1346 + struct child_process child = CHILD_PROCESS_INIT;
1347 + struct pack_header hdr;
1348 + const char *hdr_err;
1349 + int err_fd = opts->err_fd;
1350 + int status;
1351 +
1352 + hdr_err = parse_pack_header(&hdr, pack_fd);
1353 + if (hdr_err) {
1354 + if (err_fd > 0)
1355 + close(err_fd);
1356 + strbuf_addstr(err_msg, hdr_err);
1357 + return -1;
1358 + }
1359 +
1360 + if (opts->shallow_file) {
1361 + strvec_push(&child.args, "--shallow-file");
1362 + strvec_push(&child.args, opts->shallow_file);
1363 + }
1364 +
1365 + odb_transaction_env(base, &child.env);
1366 +
1367 + if (ntohl(hdr.hdr_entries) < get_unpack_limit(repo, transaction->flags)) {
1368 + strvec_push(&child.args, "unpack-objects");
1369 + push_header_arg(&child.args, &hdr);
1370 + if (opts->quiet)
1371 + strvec_push(&child.args, "-q");
1372 + if (opts->fsck_objects)
1373 + strvec_pushf(&child.args, "--strict%s",
1374 + opts->fsck_msg_types);
1375 + if (opts->max_input_size)
1376 + strvec_pushf(&child.args, "--max-input-size=%"PRIuMAX,
1377 + (uintmax_t)opts->max_input_size);
1378 + child.no_stdout = 1;
1379 + child.in = pack_fd;
1380 + child.err = err_fd;
1381 + child.git_cmd = 1;
1382 + status = run_command(&child);
1383 + if (status) {
1384 + strbuf_addstr(err_msg, "unpack-objects abnormal exit");
1385 + return -1;
1386 + }
1387 + } else {
1388 + char hostname[HOST_NAME_MAX + 1];
1389 + char *lockfile;
1390 +
1391 + strvec_pushl(&child.args, "index-pack", "--stdin", NULL);
1392 + push_header_arg(&child.args, &hdr);
1393 +
1394 + if (xgethostname(hostname, sizeof(hostname)))
1395 + xsnprintf(hostname, sizeof(hostname), "localhost");
1396 + strvec_pushf(&child.args,
1397 + "--keep=receive-pack %"PRIuMAX" on %s",
1398 + (uintmax_t)getpid(),
1399 + hostname);
1400 +
1401 + if (!opts->quiet && err_fd)
1402 + strvec_push(&child.args, "--show-resolving-progress");
1403 + if (err_fd)
1404 + strvec_push(&child.args, "--report-end-of-input");
1405 + if (opts->fsck_objects)
1406 + strvec_pushf(&child.args, "--strict%s",
1407 + opts->fsck_msg_types);
1408 + if (!opts->reject_thin)
1409 + strvec_push(&child.args, "--fix-thin");
1410 + if (opts->max_input_size)
1411 + strvec_pushf(&child.args, "--max-input-size=%"PRIuMAX,
1412 + (uintmax_t)opts->max_input_size);
1413 + child.out = -1;
1414 + child.in = pack_fd;
1415 + child.err = err_fd;
1416 + child.git_cmd = 1;
1417 + status = start_command(&child);
1418 + if (status) {
1419 + strbuf_addstr(err_msg, "index-pack fork failed");
1420 + return -1;
1421 + }
1422 +
1423 + /*
1424 + * The lockfile filepath is expected to be the final location of
1425 + * the ".keep" file after being migrated to the main ODB source.
1426 + * This ensures the lockfile can be found and removed later
1427 + * after the ODB transaction has been committed.
1428 + */
1429 + lockfile = index_pack_lockfile(base->source, child.out, NULL);
1430 + if (lockfile) {
1431 + ALLOC_GROW(transaction->pack_lockfiles,
1432 + transaction->pack_lockfiles_nr + 1,
1433 + transaction->pack_lockfiles_alloc);
1434 + transaction->pack_lockfiles[transaction->pack_lockfiles_nr++] =
1435 + register_tempfile(lockfile);
1436 + free(lockfile);
1437 + }
1438 + close(child.out);
1439 +
1440 + status = finish_command(&child);
1441 + if (status) {
1442 + strbuf_addstr(err_msg, "index-pack abnormal exit");
1443 + return -1;
1444 + }
1445 +
1446 + odb_source_prepare(transaction->quarantine,
1447 + ODB_PREPARE_FLUSH_CACHES);
1448 + }
1449 +
1450 + return 0;
1451 + }
1452 +
1453 + static int odb_transaction_files_finalize(struct odb_transaction *base)
1454 + {
1455 + struct odb_transaction_files *transaction =
1456 + container_of(base, struct odb_transaction_files, base);
1457 + int ret = 0;
1458 +
1459 + for (size_t i = 0; i < transaction->pack_lockfiles_nr; i++)
1460 + ret |= delete_tempfile(&transaction->pack_lockfiles[i]);
1461 +
1462 + free(transaction->pack_lockfiles);
1463 +
1464 + return ret;
1465 + }
1466 +
1293 1467 static int odb_transaction_files_env(struct odb_transaction *base,
1294 1468 struct strvec *env)
1295 1469 {
@@ -1313,8 +1487,11 @@ int odb_transaction_files_begin(struct odb_source *source,
1313 1487 transaction = xcalloc(1, sizeof(*transaction));
1314 1488 transaction->base.source = source;
1315 1489 transaction->base.commit = odb_transaction_files_commit;
1490 + transaction->base.finalize = odb_transaction_files_finalize;
1316 1491 transaction->base.write_object_stream = odb_transaction_files_write_object_stream;
1492 + transaction->base.write_pack = odb_transaction_files_write_pack;
1317 1493 transaction->base.env = odb_transaction_files_env;
1494 + transaction->flags = flags;
1318 1495
1319 1496 transaction->prefix = "bulk-fsync";
1320 1497 if (flags & ODB_TRANSACTION_RECEIVE) {
@@ -1340,13 +1517,3 @@ int odb_transaction_files_begin(struct odb_source *source,
1340 1517
1341 1518 return 0;
1342 1519 }
1343 -
1344 - void free_object_info_contents(struct object_info *object_info)
1345 - {
1346 - if (!object_info)
1347 - return;
1348 - free(object_info->typep);
1349 - free(object_info->sizep);
1350 - free(object_info->disk_sizep);
1351 - free(object_info->delta_base_oid);
1352 - }
modified object-file.h
@@ -101,7 +101,7 @@ int check_object_signature(struct repository *r, const struct object_id *oid,
101 101 * the streaming interface and rehash it to do the same.
102 102 */
103 103 int stream_object_signature(struct repository *r,
104 - struct odb_read_stream *stream,
104 + struct odb_stream *stream,
105 105 const struct object_id *oid);
106 106
107 107 enum finalize_object_file_flags {
modified object-name.c
@@ -280,7 +280,6 @@ static int init_object_disambiguation(struct repository *r,
280 280
281 281 ds->len = len;
282 282 ds->repo = r;
283 - odb_prepare_alternates(r->objects);
284 283 return 0;
285 284 }
286 285
@@ -1803,13 +1802,15 @@ static enum get_oid_result get_oid_with_context_1(struct repository *repo,
1803 1802 memcmp(ce->name, cp, namelen))
1804 1803 break;
1805 1804 if (ce_stage(ce) == stage) {
1805 + int ret = reject_tree_in_index(repo, only_to_die, ce,
1806 + stage, prefix, cp);
1807 +
1808 + if (!ret) {
1809 + oidcpy(oid, &ce->oid);
1810 + oc->mode = ce->ce_mode;
1811 + }
1806 1812 free(new_path);
1807 - if (reject_tree_in_index(repo, only_to_die, ce,
1808 - stage, prefix, cp))
1809 - return -1;
1810 - oidcpy(oid, &ce->oid);
1811 - oc->mode = ce->ce_mode;
1812 - return 0;
1813 + return ret;
1813 1814 }
1814 1815 pos++;
1815 1816 }
modified object.c
@@ -345,7 +345,7 @@ struct object *parse_object_with_flags(struct repository *r,
345 345 if ((!obj || obj->type == OBJ_NONE || obj->type == OBJ_BLOB) &&
346 346 odb_read_object_info(r->objects, oid, NULL) == OBJ_BLOB) {
347 347 if (!skip_hash) {
348 - struct odb_read_stream *stream = odb_read_stream_open(r->objects, oid, NULL);
348 + struct odb_stream *stream = odb_stream_from_object(r->objects, oid, NULL);
349 349
350 350 if (!stream) {
351 351 error(_("unable to open object stream for %s"), oid_to_hex(oid));
@@ -354,11 +354,11 @@ struct object *parse_object_with_flags(struct repository *r,
354 354
355 355 if (stream_object_signature(r, stream, repl) < 0) {
356 356 error(_("hash mismatch %s"), oid_to_hex(oid));
357 - odb_read_stream_close(stream);
357 + odb_stream_close(stream);
358 358 return NULL;
359 359 }
360 360
361 - odb_read_stream_close(stream);
361 + odb_stream_close(stream);
362 362 }
363 363 parse_blob_buffer(lookup_blob(r, oid));
364 364 return lookup_object(r, oid);
modified odb.c
@@ -2,11 +2,10 @@
2 2 #include "abspath.h"
3 3 #include "commit-graph.h"
4 4 #include "config.h"
5 - #include "dir.h"
6 5 #include "environment.h"
7 6 #include "gettext.h"
7 + #include "hashmap.h"
8 8 #include "hex.h"
9 - #include "khash.h"
10 9 #include "lockfile.h"
11 10 #include "loose.h"
12 11 #include "midx.h"
@@ -15,7 +14,6 @@
15 14 #include "object-name.h"
16 15 #include "odb.h"
17 16 #include "odb/source-inmemory.h"
18 - #include "packfile.h"
19 17 #include "path.h"
20 18 #include "promisor-remote.h"
21 19 #include "quote.h"
@@ -29,8 +27,47 @@
29 27 #include "trace2.h"
30 28 #include "write-or-die.h"
31 29
32 - KHASH_INIT(odb_path_map, const char * /* key: odb_path */,
33 - struct odb_source *, 1, fspathhash, fspatheq)
30 + /*
31 + * NEEDSWORK: we're using "core.ignoreCase" to deduplicate alternates that
32 + * _may_ be the same. This requires quite a bit of boilerplate for dubious
33 + * benefit:
34 + *
35 + * - Duplicating alternates should really only lead to regressed performance.
36 + *
37 + * - We don't properly resolve symlinks or mointpoints, so we may still end
38 + * up duplicating alternates.
39 + *
40 + * - The value may be lying, in which case we might deduplicate alternates
41 + * that are in fact not mapping to the same directory.
42 + *
43 + * We should investigate whether we can remove this whole mechanism outright.
44 + */
45 + static int odb_source_paths_cmp(struct object_database *o,
46 + const char *a, const char *b)
47 + {
48 + if (o->source_paths_icase < 0) {
49 + int icase = 0;
50 + repo_config_get_bool(o->repo, "core.ignorecase", &icase);
51 + o->source_paths_icase = icase;
52 + }
53 +
54 + return o->source_paths_icase ? strcasecmp(a, b) : strcmp(a, b);
55 + }
56 +
57 + static int odb_source_by_path_cmp(const void *cb_data,
58 + const struct hashmap_entry *entry,
59 + const struct hashmap_entry *entry_or_key,
60 + const void *keydata)
61 + {
62 + struct object_database *o = (struct object_database *)cb_data;
63 + const struct odb_source *source = container_of(entry, const struct odb_source, by_path_entry);
64 + const char *path = keydata;
65 +
66 + if (!path)
67 + path = container_of(entry_or_key, const struct odb_source, by_path_entry)->path;
68 +
69 + return odb_source_paths_cmp(o, source->path, path);
70 + }
34 71
35 72 int odb_mkstemp(struct object_database *odb,
36 73 struct strbuf *temp_filename, const char *pattern)
@@ -58,8 +95,8 @@ int odb_mkstemp(struct object_database *odb,
58 95 */
59 96 static bool odb_is_source_usable(struct object_database *o, const char *path)
60 97 {
61 - int r;
62 98 struct strbuf normalized_objdir = STRBUF_INIT;
99 + struct hashmap_entry key;
63 100 bool usable = false;
64 101
65 102 strbuf_realpath(&normalized_objdir, o->sources->path, 1);
@@ -76,20 +113,18 @@ static bool odb_is_source_usable(struct object_database *o, const char *path)
76 113 * Prevent the common mistake of listing the same
77 114 * thing twice, or object directory itself.
78 115 */
79 - if (!o->source_by_path) {
80 - khiter_t p;
81 -
82 - o->source_by_path = kh_init_odb_path_map();
116 + if (!hashmap_get_size(&o->source_by_path)) {
83 117 assert(!o->sources->next);
84 - p = kh_put_odb_path_map(o->source_by_path, o->sources->path, &r);
85 - assert(r == 1); /* never used */
86 - kh_value(o->source_by_path, p) = o->sources;
118 + hashmap_entry_init(&o->sources->by_path_entry,
119 + strihash(o->sources->path));
120 + hashmap_add(&o->source_by_path, &o->sources->by_path_entry);
87 121 }
88 122
89 - if (fspatheq(path, normalized_objdir.buf))
123 + if (!odb_source_paths_cmp(o, path, normalized_objdir.buf))
90 124 goto out;
91 125
92 - if (kh_get_odb_path_map(o->source_by_path, path) < kh_end(o->source_by_path))
126 + hashmap_entry_init(&key, strihash(path));
127 + if (hashmap_get(&o->source_by_path, &key, path))
93 128 goto out;
94 129
95 130 usable = true;
@@ -172,8 +207,6 @@ static struct odb_source *odb_add_alternate_recursively(struct object_database *
172 207 {
173 208 struct odb_source *alternate = NULL;
174 209 struct strvec sources = STRVEC_INIT;
175 - khiter_t pos;
176 - int ret;
177 210
178 211 if (!odb_is_source_usable(odb, source))
179 212 goto error;
@@ -184,10 +217,11 @@ static struct odb_source *odb_add_alternate_recursively(struct object_database *
184 217 *odb->sources_tail = alternate;
185 218 odb->sources_tail = &(alternate->next);
186 219
187 - pos = kh_put_odb_path_map(odb->source_by_path, alternate->path, &ret);
188 - if (!ret)
220 + hashmap_entry_init(&alternate->by_path_entry, strihash(alternate->path));
221 + if (hashmap_get(&odb->source_by_path, &alternate->by_path_entry,
222 + alternate->path))
189 223 BUG("source must not yet exist");
190 - kh_value(odb->source_by_path, pos) = alternate;
224 + hashmap_add(&odb->source_by_path, &alternate->by_path_entry);
191 225
192 226 /* recursively add alternates */
193 227 odb_source_read_alternates(alternate, &sources);
@@ -210,32 +244,15 @@ void odb_add_to_alternates_file(struct object_database *odb,
210 244 int ret = odb_source_write_alternate(odb->sources, dir);
211 245 if (ret < 0)
212 246 die(NULL);
213 - if (odb->loaded_alternates)
214 - odb_add_alternate_recursively(odb, dir, 0);
215 - }
216 -
217 - struct odb_source *odb_add_to_alternates_memory(struct object_database *odb,
218 - const char *dir)
219 - {
220 - /*
221 - * Make sure alternates are initialized, or else our entry may be
222 - * overwritten when they are.
223 - */
224 - odb_prepare_alternates(odb);
225 - return odb_add_alternate_recursively(odb, dir, 0);
247 + odb_add_alternate_recursively(odb, dir, 0);
226 248 }
227 249
228 250 struct odb_source *odb_set_temporary_primary_source(struct object_database *odb,
229 - const char *dir, int will_destroy)
251 + const char *dir, int will_destroy,
252 + struct odb_source **prev_source)
230 253 {
231 254 struct odb_source *source;
232 255
233 - /*
234 - * Make sure alternates are initialized, or else our entry may be
235 - * overwritten when they are.
236 - */
237 - odb_prepare_alternates(odb);
238 -
239 256 /*
240 257 * Make a new primary odb and link the old primary ODB in as an
241 258 * alternate
@@ -250,7 +267,11 @@ struct odb_source *odb_set_temporary_primary_source(struct object_database *odb,
250 267 source->will_destroy = will_destroy;
251 268 source->next = odb->sources;
252 269 odb->sources = source;
253 - return source->next;
270 +
271 + if (prev_source)
272 + *prev_source = source->next;
273 +
274 + return source;
254 275 }
255 276
256 277 void odb_restore_primary_source(struct object_database *odb,
@@ -341,7 +362,6 @@ struct odb_source *odb_find_source(struct object_database *odb, const char *obj_
341 362 char *obj_dir_real = real_pathdup(obj_dir, 1);
342 363 struct strbuf odb_path_real = STRBUF_INIT;
343 364
344 - odb_prepare_alternates(odb);
345 365 for (source = odb->sources; source; source = source->next) {
346 366 strbuf_realpath(&odb_path_real, source->path, 1);
347 367 if (!strcmp(obj_dir_real, odb_path_real.buf))
@@ -362,12 +382,6 @@ struct odb_source *odb_find_source_or_die(struct object_database *odb, const cha
362 382 return source;
363 383 }
364 384
365 - void odb_add_submodule_source_by_path(struct object_database *odb,
366 - const char *path)
367 - {
368 - string_list_insert(&odb->submodule_source_paths, path);
369 - }
370 -
371 385 static void fill_alternate_refs_command(struct repository *repo,
372 386 struct child_process *cmd,
373 387 const char *repo_path)
@@ -475,7 +489,6 @@ int odb_for_each_alternate(struct object_database *odb,
475 489 struct odb_source *alternate;
476 490 int r = 0;
477 491
478 - odb_prepare_alternates(odb);
479 492 for (alternate = odb->sources->next; alternate; alternate = alternate->next) {
480 493 r = cb(alternate, payload);
481 494 if (r)
@@ -484,26 +497,22 @@ int odb_for_each_alternate(struct object_database *odb,
484 497 return r;
485 498 }
486 499
487 - void odb_prepare_alternates(struct object_database *odb)
500 + static void odb_prepare_alternates(struct object_database *odb,
501 + const char *alternate_db)
488 502 {
489 503 struct strvec sources = STRVEC_INIT;
490 504
491 - if (odb->loaded_alternates)
492 - return;
493 -
494 - parse_alternates(odb->alternate_db, PATH_SEP, NULL, &sources);
505 + parse_alternates(alternate_db, PATH_SEP, NULL, &sources);
495 506 odb_source_read_alternates(odb->sources, &sources);
507 +
496 508 for (size_t i = 0; i < sources.nr; i++)
497 509 odb_add_alternate_recursively(odb, sources.v[i], 0);
498 510
499 - odb->loaded_alternates = 1;
500 -
501 511 strvec_clear(&sources);
502 512 }
503 513
504 514 int odb_has_alternates(struct object_database *odb)
505 515 {
506 - odb_prepare_alternates(odb);
507 516 return !!odb->sources->next;
508 517 }
509 518
@@ -528,31 +537,15 @@ void disable_obj_read_lock(void)
528 537 pthread_mutex_destroy(&obj_read_mutex);
529 538 }
530 539
531 - int fetch_if_missing = 1;
532 -
533 - static int register_all_submodule_sources(struct object_database *odb)
534 - {
535 - int ret = odb->submodule_source_paths.nr;
536 -
537 - for (size_t i = 0; i < odb->submodule_source_paths.nr; i++)
538 - odb_add_to_alternates_memory(odb,
539 - odb->submodule_source_paths.items[i].string);
540 - if (ret) {
541 - string_list_clear(&odb->submodule_source_paths, 0);
542 - trace2_data_intmax("submodule", odb->repo,
543 - "register_all_submodule_sources/registered", ret);
544 - if (git_env_bool("GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB", 0))
545 - BUG("register_all_submodule_sources() called");
546 - }
547 - return ret;
548 - }
549 -
550 - static int do_oid_object_info_extended(struct object_database *odb,
551 - const struct object_id *oid,
552 - struct object_info *oi, unsigned flags)
540 + static enum odb_read_status do_oid_object_info_extended(struct object_database *odb,
541 + const struct object_id *oid,
542 + struct object_info *oi, unsigned flags)
553 543 {
544 + struct strbuf corrupt_err = STRBUF_INIT;
554 545 const struct object_id *real = oid;
546 + enum odb_read_status ret;
555 547 int already_retried = 0;
548 + bool corrupt = false;
556 549
557 550 if (flags & OBJECT_INFO_LOOKUP_REPLACE)
558 551 real = lookup_replace_object(odb->repo, oid);
@@ -560,17 +553,20 @@ static int do_oid_object_info_extended(struct object_database *odb,
560 553 if (is_null_oid(real))
561 554 return -1;
562 555
563 - if (!odb_source_read_object_info(odb->inmemory_objects, oid, oi, flags))
556 + if (!odb_source_read_object_info(odb->inmemory_objects, oid, oi, flags, NULL))
564 557 return 0;
565 558
566 - odb_prepare_alternates(odb);
567 -
568 559 while (1) {
569 560 struct odb_source *source;
570 561
571 - for (source = odb->sources; source; source = source->next)
572 - if (!odb_source_read_object_info(source, real, oi, flags))
573 - return 0;
562 + for (source = odb->sources; source; source = source->next) {
563 + ret = odb_source_read_object_info(source, real, oi, flags,
564 + corrupt_err.len ? NULL : &corrupt_err);
565 + if (!ret)
566 + goto out;
567 + if (ret != ODB_READ_NOT_FOUND)
568 + corrupt = true;
569 + }
574 570
575 571 /*
576 572 * When the object hasn't been found we try a second read and
@@ -578,24 +574,19 @@ static int do_oid_object_info_extended(struct object_database *odb,
578 574 * caches or reload on-disk state.
579 575 */
580 576 if (!(flags & OBJECT_INFO_QUICK)) {
581 - for (source = odb->sources; source; source = source->next)
582 - if (!odb_source_read_object_info(source, real, oi,
583 - flags | OBJECT_INFO_SECOND_READ))
584 - return 0;
577 + for (source = odb->sources; source; source = source->next) {
578 + ret = odb_source_read_object_info(source, real, oi,
579 + flags | OBJECT_INFO_SECOND_READ,
580 + corrupt_err.len ? NULL : &corrupt_err);
581 + if (!ret)
582 + goto out;
583 + if (ret != ODB_READ_NOT_FOUND)
584 + corrupt = true;
585 + }
585 586 }
586 587
587 - /*
588 - * This might be an attempt at accessing a submodule object as
589 - * if it were in main object store (having called
590 - * `odb_add_submodule_source_by_path()` on that submodule's
591 - * ODB). If any such ODBs exist, register them and try again.
592 - */
593 - if (register_all_submodule_sources(odb))
594 - /* We added some alternates; retry */
595 - continue;
596 -
597 588 /* Check if it is a missing object */
598 - if (fetch_if_missing && repo_has_promisor_remote(odb->repo) &&
589 + if (odb->repo->fetch_if_missing && repo_has_promisor_remote(odb->repo) &&
599 590 !already_retried &&
600 591 !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) {
601 592 promisor_remote_get_direct(odb->repo, real, 1);
@@ -604,16 +595,23 @@ static int do_oid_object_info_extended(struct object_database *odb,
604 595 }
605 596
606 597 if (flags & OBJECT_INFO_DIE_IF_CORRUPT) {
607 - const struct packed_git *p;
608 598 if ((flags & OBJECT_INFO_LOOKUP_REPLACE) && !oideq(real, oid))
609 599 die(_("replacement %s not found for %s"),
610 600 oid_to_hex(real), oid_to_hex(oid));
611 - if ((p = has_packed_and_bad(odb->repo, real)))
612 - die(_("packed object %s (stored in %s) is corrupt"),
613 - oid_to_hex(real), p->pack_name);
601 + if (corrupt) {
602 + if (corrupt_err.len)
603 + die("%s", corrupt_err.buf);
604 + die(_("object %s is corrupt"), oid_to_hex(real));
605 + }
614 606 }
615 - return -1;
607 +
608 + ret = corrupt ? ODB_READ_ERROR : ODB_READ_NOT_FOUND;
609 + goto out;
616 610 }
611 +
612 + out:
613 + strbuf_release(&corrupt_err);
614 + return ret;
617 615 }
618 616
619 617 static int oid_object_info_convert(struct repository *r,
@@ -696,12 +694,12 @@ static int oid_object_info_convert(struct repository *r,
696 694 return ret;
697 695 }
698 696
699 - int odb_read_object_info_extended(struct object_database *odb,
700 - const struct object_id *oid,
701 - struct object_info *oi,
702 - enum object_info_flags flags)
697 + enum odb_read_status odb_read_object_info_extended(struct object_database *odb,
698 + const struct object_id *oid,
699 + struct object_info *oi,
700 + enum object_info_flags flags)
703 701 {
704 - int ret;
702 + enum odb_read_status ret;
705 703
706 704 if (oid->algo && (hash_algo_by_ptr(odb->repo->hash_algo) != oid->algo))
707 705 return oid_object_info_convert(odb->repo, oid, oi, flags);
@@ -827,7 +825,6 @@ int odb_freshen_object(struct object_database *odb,
827 825 const struct object_id *oid)
828 826 {
829 827 struct odb_source *source;
830 - odb_prepare_alternates(odb);
831 828 for (source = odb->sources; source; source = source->next)
832 829 if (odb_source_freshen_object(source, oid, NULL))
833 830 return 1;
@@ -842,7 +839,6 @@ int odb_for_each_object_ext(struct object_database *odb,
842 839 {
843 840 int ret;
844 841
845 - odb_prepare_alternates(odb);
846 842 for (struct odb_source *source = odb->sources; source; source = source->next) {
847 843 if (opts->flags & ODB_FOR_EACH_OBJECT_LOCAL_ONLY && !source->local)
848 844 continue;
@@ -880,7 +876,6 @@ int odb_count_objects(struct object_database *odb,
880 876 return 0;
881 877 }
882 878
883 - odb_prepare_alternates(odb);
884 879 for (source = odb->sources; source; source = source->next) {
885 880 unsigned long c;
886 881
@@ -960,7 +955,6 @@ int odb_find_abbrev_len(struct object_database *odb,
960 955 goto out;
961 956 }
962 957
963 - odb_prepare_alternates(odb);
964 958 for (struct odb_source *source = odb->sources; source; source = source->next) {
965 959 ret = odb_source_find_abbrev_len(source, oid, len, &len);
966 960 if (ret)
@@ -1028,33 +1022,72 @@ int odb_write_object_ext(struct object_database *odb,
1028 1022 }
1029 1023
1030 1024 int odb_write_object_stream(struct object_database *odb,
1031 - struct odb_write_stream *stream, size_t len,
1025 + struct odb_stream *stream,
1032 1026 struct object_id *oid)
1033 1027 {
1034 - return odb_source_write_object_stream(odb->sources, stream, len, oid);
1028 + return odb_source_write_object_stream(odb->sources, stream, oid);
1029 + }
1030 +
1031 + int odb_optimize(struct object_database *odb,
1032 + const struct odb_optimize_options *opts)
1033 + {
1034 + return odb_source_optimize(odb->sources, opts);
1035 + }
1036 +
1037 + bool odb_optimize_required(struct object_database *odb,
1038 + const struct odb_optimize_options *opts)
1039 + {
1040 + return odb_source_optimize_required(odb->sources, opts);
1041 + }
1042 +
1043 + void odb_generate_pack_options_release(struct odb_generate_pack_options *opts)
1044 + {
1045 + oid_array_clear(&opts->wants);
1046 + oid_array_clear(&opts->haves);
1047 + oid_array_clear(&opts->shallows);
1048 + }
1049 +
1050 + int odb_generate_pack(struct object_database *odb,
1051 + struct odb_pack_generator **out,
1052 + const struct odb_generate_pack_options *opts)
1053 + {
1054 + if (!odb->sources->generate_pack)
1055 + return error(_("primary object source does not support generating packfiles"));
1056 + return odb_source_generate_pack(odb->sources, out, opts);
1057 + }
1058 +
1059 + int odb_pack_generator_finish(struct odb_pack_generator *generator)
1060 + {
1061 + return generator->finish(generator);
1035 1062 }
1036 1063
1037 1064 struct object_database *odb_new(struct repository *repo,
1038 - const char *primary_source,
1039 - const char *secondary_sources)
1065 + enum odb_new_flags flags)
1040 1066 {
1041 - struct object_database *o = xmalloc(sizeof(*o));
1042 - char *to_free = NULL;
1067 + char *primary_source = NULL, *secondary_sources = NULL;
1068 + struct object_database *o;
1043 1069
1044 - memset(o, 0, sizeof(*o));
1070 + CALLOC_ARRAY(o, 1);
1045 1071 o->repo = repo;
1046 1072 pthread_mutex_init(&o->replace_mutex, NULL);
1047 - string_list_init_dup(&o->submodule_source_paths);
1073 + hashmap_init(&o->source_by_path, odb_source_by_path_cmp, o, 0);
1074 + o->source_paths_icase = -1;
1048 1075
1076 + if (flags & ODB_NEW_HONOR_ENV) {
1077 + primary_source = xstrdup_or_null(getenv(DB_ENVIRONMENT));
1078 + secondary_sources = xstrdup_or_null(getenv(ALTERNATE_DB_ENVIRONMENT));
1079 + }
1049 1080 if (!primary_source)
1050 - primary_source = to_free = xstrfmt("%s/objects", repo->commondir);
1081 + primary_source = xstrfmt("%s/objects", repo->commondir);
1082 +
1051 1083 o->sources = odb_source_new(o, primary_source, true);
1052 1084 o->sources_tail = &o->sources->next;
1053 - o->alternate_db = xstrdup_or_null(secondary_sources);
1054 1085 o->inmemory_objects = &odb_source_inmemory_new(o)->base;
1055 1086
1056 - free(to_free);
1087 + odb_prepare_alternates(o, secondary_sources);
1057 1088
1089 + free(secondary_sources);
1090 + free(primary_source);
1058 1091 return o;
1059 1092 }
1060 1093
@@ -1079,8 +1112,7 @@ static void odb_free_sources(struct object_database *o)
1079 1112 odb_source_free(o->inmemory_objects);
1080 1113 o->inmemory_objects = NULL;
1081 1114
1082 - kh_destroy_odb_path_map(o->source_by_path);
1083 - o->source_by_path = NULL;
1115 + hashmap_clear(&o->source_by_path);
1084 1116 }
1085 1117
1086 1118 void odb_free(struct object_database *o)
@@ -1088,16 +1120,12 @@ void odb_free(struct object_database *o)
1088 1120 if (!o)
1089 1121 return;
1090 1122
1091 - free(o->alternate_db);
1092 -
1093 1123 oidmap_clear(&o->replace_map, 1);
1094 1124 pthread_mutex_destroy(&o->replace_mutex);
1095 1125
1096 1126 odb_close(o);
1097 1127 odb_free_sources(o);
1098 1128
1099 - string_list_clear(&o->submodule_source_paths, 0);
1100 -
1101 1129 free(o);
1102 1130 }
1103 1131
@@ -1111,14 +1139,14 @@ void odb_prepare(struct object_database *o, enum odb_prepare_flags flags)
1111 1139 * Reprepare alt odbs, in case the alternates file was modified
1112 1140 * during the course of this process. This only _adds_ odbs to
1113 1141 * the linked list, so existing odbs will continue to exist for
1114 - * the lifetime of the process.
1142 + * the lifetime of the process. Consequently, we don't have to
1143 + * reprocess GIT_ALTERNATE_OBJECT_DIRECTORIES here.
1115 1144 */
1116 1145 if (flags & ODB_PREPARE_FLUSH_CACHES) {
1117 - o->loaded_alternates = 0;
1146 + odb_prepare_alternates(o, NULL);
1118 1147 o->object_count_valid = 0;
1119 1148 }
1120 1149
1121 - odb_prepare_alternates(o);
1122 1150 for (source = o->sources; source; source = source->next)
1123 1151 odb_source_prepare(source, flags);
1124 1152
@@ -1129,3 +1157,11 @@ void odb_reprepare(struct object_database *o)
1129 1157 {
1130 1158 odb_prepare(o, ODB_PREPARE_FLUSH_CACHES);
1131 1159 }
1160 +
1161 + int odb_fsck(struct object_database *odb, struct odb_fsck_options *options)
1162 + {
1163 + int ret = 0;
1164 + for (struct odb_source *source = odb->sources; source; source = source->next)
1165 + ret |= odb_source_fsck(source, options);
1166 + return ret;
1167 + }
modified odb.h
@@ -1,7 +1,9 @@
1 1 #ifndef ODB_H
2 2 #define ODB_H
3 3
4 + #include "hashmap.h"
4 5 #include "object.h"
6 + #include "oid-array.h"
5 7 #include "oidset.h"
6 8 #include "oidmap.h"
7 9 #include "string-list.h"
@@ -15,14 +17,6 @@ struct repository;
15 17 struct strbuf;
16 18 struct strvec;
17 19
18 - /*
19 - * Set this to 0 to prevent odb_read_object_info_extended() from fetching missing
20 - * blobs. This has a difference only if extensions.partialClone is set.
21 - *
22 - * Its default value is 1.
23 - */
24 - extern int fetch_if_missing;
25 -
26 20 /*
27 21 * Compute the exact path an alternate is at and returns it. In case of
28 22 * error NULL is returned and the human readable error is added to `err`
@@ -54,16 +48,19 @@ struct object_database {
54 48 */
55 49 struct odb_source *sources;
56 50 struct odb_source **sources_tail;
57 - struct kh_odb_path_map *source_by_path;
58 51
59 - int loaded_alternates;
52 + /*
53 + * Map of object database sources, keyed by their respective paths.
54 + * This map is used to detect the case where the same source is
55 + * registered multiple times.
56 + */
57 + struct hashmap source_by_path;
60 58
61 59 /*
62 - * A list of alternate object directories loaded from the environment;
63 - * this should not generally need to be accessed directly, but will
64 - * populate the "sources" list when odb_prepare_alternates() is run.
60 + * Whether source paths shall be compared case-insensitively, as
61 + * determined by "core.ignoreCase".
65 62 */
66 - char *alternate_db;
63 + int source_paths_icase;
67 64
68 65 /*
69 66 * Objects that should be substituted by other objects
@@ -92,12 +89,20 @@ struct object_database {
92 89 unsigned long object_count;
93 90 unsigned object_count_flags;
94 91 unsigned object_count_valid : 1;
92 + };
95 93
94 + enum odb_new_flags {
96 95 /*
97 - * Submodule source paths that will be added as additional sources to
98 - * allow lookup of submodule objects via the main object database.
96 + * Honor environment variables when constructing the object database
97 + * sources. This makes us respect the following environment variables:
98 + *
99 + * - GIT_OBJECT_DIRECTORY to override the primary object directory.
100 + *
101 + * - GIT_ALTERNATE_OBJECT_DIRECTORIES to override alternates.
102 + *
103 + * Environment variables may be backend-specific.
99 104 */
100 - struct string_list submodule_source_paths;
105 + ODB_NEW_HONOR_ENV = (1 << 0),
101 106 };
102 107
103 108 /*
@@ -112,12 +117,56 @@ struct object_database {
112 117 * Returns the newly created object database.
113 118 */
114 119 struct object_database *odb_new(struct repository *repo,
115 - const char *primary_source,
116 - const char *alternate_sources);
120 + enum odb_new_flags flags);
117 121
118 122 /* Free the object database and release all resources. */
119 123 void odb_free(struct object_database *o);
120 124
125 + enum odb_optimize_strategy {
126 + ODB_OPTIMIZE_INCREMENTAL,
127 + ODB_OPTIMIZE_GEOMETRIC,
128 + };
129 +
130 + enum odb_optimize_flags {
131 + /* Enable verbose logging and progress reporting. */
132 + ODB_OPTIMIZE_VERBOSE = (1 << 0),
133 +
134 + /* Perform auto-maintenance, only optimizing objects as required. */
135 + ODB_OPTIMIZE_AUTO = (1 << 1),
136 +
137 + /* Recompute existing deltas. */
138 + ODB_OPTIMIZE_NO_REUSE_DELTAS = (1 << 2),
139 + };
140 +
141 + struct odb_optimize_options {
142 + enum odb_optimize_strategy strategy;
143 + enum odb_optimize_flags flags;
144 + const char *prune_expire;
145 + const char *expire_to;
146 + int depth;
147 + int window;
148 +
149 + /* Backend-specific options. */
150 + int keep_largest_pack;
151 + int cruft_packs;
152 + unsigned long max_cruft_size;
153 + };
154 +
155 + /*
156 + * Optimize the object database. Returns 0 on success, a negative error code
157 + * otherwise.
158 + */
159 + int odb_optimize(struct object_database *odb,
160 + const struct odb_optimize_options *opts);
161 +
162 + /*
163 + * Check whether optimization of the object database is required given the
164 + * provided options. Returns true if optimization should be performed, false
165 + * otherwise.
166 + */
167 + bool odb_optimize_required(struct object_database *odb,
168 + const struct odb_optimize_options *opts);
169 +
121 170 /*
122 171 * Close the object database and all of its sources so that any held resources
123 172 * will be released. The database can still be used after closing it, in which
@@ -143,6 +192,39 @@ void odb_prepare(struct object_database *o, enum odb_prepare_flags flags);
143 192 /* Equivalent to `odb_prepare(o, ODB_PREPARE_FLUSH_CACHES)`. */
144 193 void odb_reprepare(struct object_database *o);
145 194
195 + enum odb_fsck_flags {
196 + /*
197 + * If set, perform a full consistency check for the full object
198 + * database, including all of its sources and the contents of their
199 + * optimized formats. Otherwise, only check the local source, and
200 + * restrict checks of its optimized formats to cheap structural
201 + * verification of their metadata.
202 + */
203 + ODB_FSCK_FULL = (1 << 0),
204 +
205 + /* Display a progress meter, if sensible. */
206 + ODB_FSCK_PROGRESS = (1 << 1),
207 +
208 + /* Be extra verbose when checking the database. */
209 + ODB_FSCK_VERBOSE = (1 << 2),
210 + };
211 +
212 + /* Options that shall be passed to `odb_fsck()`. */
213 + struct odb_fsck_options {
214 + enum odb_fsck_flags flags;
215 +
216 + int (*object_cb)(const struct object_id *oid, enum object_type type,
217 + unsigned long size, void *buffer, int *eaten, void *cb_data);
218 + void *object_payload;
219 + };
220 +
221 + /*
222 + * Run backend-specific integrity checks on all object sources. Each source
223 + * performs the checks appropriate to its type. Returns 0 on success, a
224 + * negative error code otherwise.
225 + */
226 + int odb_fsck(struct object_database *odb, struct odb_fsck_options *opts);
227 +
146 228 /*
147 229 * Find source by its object directory path. Returns a `NULL` pointer in case
148 230 * the source could not be found.
@@ -154,10 +236,12 @@ struct odb_source *odb_find_source_or_die(struct object_database *odb, const cha
154 236
155 237 /*
156 238 * Replace the current writable object directory with the specified temporary
157 - * object directory; returns the former primary source.
239 + * object directory and return the newly installed primary source. The former
240 + * primary source is reported via `prev_source` when non-NULL.
158 241 */
159 242 struct odb_source *odb_set_temporary_primary_source(struct object_database *odb,
160 - const char *dir, int will_destroy);
243 + const char *dir, int will_destroy,
244 + struct odb_source **prev_source);
161 245
162 246 /*
163 247 * Restore the primary source that was previously replaced by
@@ -167,14 +251,6 @@ void odb_restore_primary_source(struct object_database *odb,
167 251 struct odb_source *restore_source,
168 252 const char *old_path);
169 253
170 - /*
171 - * Call odb_add_submodule_source_by_path() to add the submodule at the given
172 - * path to a list. The object stores of all submodules in that list will be
173 - * added as additional sources in the object store when looking up objects.
174 - */
175 - void odb_add_submodule_source_by_path(struct object_database *odb,
176 - const char *path);
177 -
178 254 /*
179 255 * Iterate through all alternates of the database and execute the provided
180 256 * callback function for each of them. Stop iterating once the callback
@@ -202,12 +278,6 @@ void odb_for_each_alternate_ref(struct object_database *odb,
202 278 int odb_mkstemp(struct object_database *odb,
203 279 struct strbuf *temp_filename, const char *pattern);
204 280
205 - /*
206 - * Prepare alternate object sources for the given database by reading
207 - * "objects/info/alternates" and opening the respective sources.
208 - */
209 - void odb_prepare_alternates(struct object_database *odb);
210 -
211 281 /*
212 282 * Check whether the object database has any alternates. The primary object
213 283 * source does not count as alternate.
@@ -221,14 +291,6 @@ int odb_has_alternates(struct object_database *odb);
221 291 void odb_add_to_alternates_file(struct object_database *odb,
222 292 const char *dir);
223 293
224 - /*
225 - * Add the directory to the in-memory list of alternate sources (along with any
226 - * recursive alternates it points to), but do not modify the on-disk alternates
227 - * file.
228 - */
229 - struct odb_source *odb_add_to_alternates_memory(struct object_database *odb,
230 - const char *dir);
231 -
232 294 /*
233 295 * Read an object from the database. Returns the object data and assigns object
234 296 * type and size to the `type` and `size` pointers, if these pointers are
@@ -390,14 +452,23 @@ enum object_info_flags {
390 452 OBJECT_INFO_FOR_PREFETCH = (OBJECT_INFO_SKIP_FETCH_OBJECT | OBJECT_INFO_QUICK),
391 453 };
392 454
455 + enum odb_read_status {
456 + /* The read was successful. */
457 + ODB_READ_OK = 0,
458 + /* The read resulted in a generic error. */
459 + ODB_READ_ERROR = -1,
460 + /* The object could not be found. */
461 + ODB_READ_NOT_FOUND = -2,
462 + };
463 +
393 464 /*
394 465 * Read object info from the object database and populate the `object_info`
395 466 * structure. Returns 0 on success, a negative error code otherwise.
396 467 */
397 - int odb_read_object_info_extended(struct object_database *odb,
398 - const struct object_id *oid,
399 - struct object_info *oi,
400 - enum object_info_flags flags);
468 + enum odb_read_status odb_read_object_info_extended(struct object_database *odb,
469 + const struct object_id *oid,
470 + struct object_info *oi,
471 + enum object_info_flags flags);
401 472
402 473 /*
403 474 * Read a subset of object info for the given object ID. Returns an `enum
@@ -626,18 +697,166 @@ static inline int odb_write_object(struct object_database *odb,
626 697 return odb_write_object_ext(odb, buf, len, type, oid, NULL, 0);
627 698 }
628 699
629 - struct odb_write_stream;
700 + struct odb_stream;
630 701
631 702 int odb_write_object_stream(struct object_database *odb,
632 - struct odb_write_stream *stream, size_t len,
703 + struct odb_stream *stream,
633 704 struct object_id *oid);
634 705
706 + /*
707 + * Options for generating a packfile via `odb_generate_pack()`.
708 + */
709 + struct odb_generate_pack_options {
710 + /* Tips of the object graph that shall be packed. */
711 + struct oid_array wants;
712 +
713 + /*
714 + * Boundary of the object graph. Objects reachable from any of these
715 + * tips are expected to already be available to whoever consumes the
716 + * pack and shall thus not be packed.
717 + */
718 + struct oid_array haves;
719 +
720 + /*
721 + * The shallow boundary that shall be used when computing object
722 + * reachability. When set, any shallow information of the repository
723 + * itself shall be ignored in favor of these objects.
724 + */
725 + struct oid_array shallows;
726 +
727 + /*
728 + * Pre-expanded object filter specification that limits the set of
729 + * objects that shall be packed. May be `NULL` in case no filter shall
730 + * be applied.
731 + */
732 + const char *filter_spec;
733 +
734 + /*
735 + * Protocols that may be used to offload objects via packfile URIs.
736 + * May be `NULL` in case packfile URIs shall not be used.
737 + */
738 + const struct string_list *uri_protocols;
739 +
740 + /*
741 + * Hook command that shall be executed instead of the internal
742 + * machinery to generate the pack. It is up to the specific backend
743 + * whether or not this hook is supported. May be `NULL` in case no
744 + * hook shall be executed.
745 + */
746 + const char *pack_objects_hook;
747 +
748 + /*
749 + * File descriptor that the generated pack shall be written to. If set
750 + * to `-1`, a pipe will be created and exposed via the pack generator's
751 + * `out` field. If set to `0`, the pack will be written to the standard
752 + * output stream. Otherwise, the provided descriptor will be written to
753 + * and is consumed by the generator.
754 + */
755 + int pack_fd;
756 +
757 + /*
758 + * File descriptor that progress output shall be written to. The same
759 + * semantics as for `pack_fd` apply, except that `0` will cause the
760 + * generator to write to stderr instead of stdout.
761 + */
762 + int progress_fd;
763 +
764 + /* Whether to print progress or not. */
765 + enum {
766 + /* Don't print progress output. */
767 + ODB_GENERATE_PACK_PROGRESS_NONE,
768 +
769 + /*
770 + * Print progress while computing the packfile, but stop
771 + * printing progress once starting to write it.
772 + */
773 + ODB_GENERATE_PACK_PROGRESS_STANDARD,
774 +
775 + /*
776 + * Similar to STANDARD, but also print progress when writing
777 + * the packfile.
778 + */
779 + ODB_GENERATE_PACK_PROGRESS_VERBOSE,
780 + } progress;
781 +
782 + /* Allow the pack to contain deltas against unpacked objects. */
783 + unsigned thin:1;
784 +
785 + /* Use offset deltas instead of reference deltas. */
786 + unsigned ofs_delta:1;
787 +
788 + /* Include unasked-for annotated tags of packed objects. */
789 + unsigned include_tag:1;
790 +
791 + /* The generated pack is destined for a shallow consumer. */
792 + unsigned shallow:1;
793 +
794 + /* Allow objects that may be missing due to a promisor remote. */
795 + unsigned missing_allow_promisor:1;
796 +
797 + /* Do not use bitmap indices when computing reachability. */
798 + unsigned disable_bitmaps:1;
799 + };
800 +
801 + #define ODB_GENERATE_PACK_OPTIONS_INIT { \
802 + .wants = OID_ARRAY_INIT, \
803 + .haves = OID_ARRAY_INIT, \
804 + .shallows = OID_ARRAY_INIT, \
805 + .pack_fd = -1, \
806 + }
807 +
808 + /* Release resources associated with the options. */
809 + void odb_generate_pack_options_release(struct odb_generate_pack_options *opts);
810 +
811 + /*
812 + * A handle for an ongoing packfile generation as started via
813 + * `odb_generate_pack()`.
814 + */
815 + struct odb_pack_generator {
816 + /*
817 + * File descriptor from which the generated pack can be read. Only set
818 + * when the pack generation was started with `pack_fd == -1`. The
819 + * caller is responsible for closing the descriptor.
820 + */
821 + int out;
822 +
823 + /*
824 + * File descriptor from which progress output can be read. Only set
825 + * when the pack generation was started with `progress_fd == -1`. The
826 + * caller is responsible for closing the descriptor.
827 + */
828 + int err;
829 +
830 + /*
831 + * Callback function to finish this generator. This callback is
832 + * expected to wait for the packfile generation to complete and to then
833 + * free the generator itself.
834 + */
835 + int (*finish)(struct odb_pack_generator *);
836 + };
837 +
838 + /*
839 + * Start generating a packfile from the object database with the given
840 + * options. The pack is generated asynchronously; the caller is expected to
841 + * consume the file descriptors exposed via the pack generator and to then
842 + * wait for completion via `odb_pack_generator_finish()`.
843 + *
844 + * Returns 0 on success and populates the `out` pointer with the pack
845 + * generator. Returns a negative error code otherwise.
846 + */
847 + int odb_generate_pack(struct object_database *odb,
848 + struct odb_pack_generator **out,
849 + const struct odb_generate_pack_options *opts);
850 +
851 + /*
852 + * Wait for the packfile generation to complete and free the pack generator.
853 + * Returns 0 on success, a negative error code otherwise.
854 + */
855 + int odb_pack_generator_finish(struct odb_pack_generator *generator);
856 +
635 857 void parse_alternates(const char *string,
636 858 int sep,
637 859 const char *relative_base,
638 860 struct strvec *out);
639 861
640 - /* Free pointers inside of object_info, but not object_info itself */
641 - void free_object_info_contents(struct object_info *object_info);
642 -
643 862 #endif /* ODB_H */
modified odb/source-files.c
@@ -1,19 +1,29 @@
1 1 #include "git-compat-util.h"
2 2 #include "abspath.h"
3 + #include "blob.h"
3 4 #include "chdir-notify.h"
5 + #include "config.h"
4 6 #include "gettext.h"
7 + #include "hex.h"
5 8 #include "lockfile.h"
6 9 #include "object-file.h"
7 10 #include "odb.h"
8 11 #include "odb/source.h"
9 12 #include "odb/source-files.h"
10 13 #include "odb/source-loose.h"
14 + #include "pack-objects.h"
11 15 #include "packfile.h"
16 + #include "path.h"
17 + #include "promisor-remote.h"
18 + #include "repack.h"
19 + #include "run-command.h"
12 20 #include "strbuf.h"
21 + #include "string-list.h"
22 + #include "strvec.h"
23 + #include "tree.h"
13 24 #include "write-or-die.h"
14 25
15 - static void odb_source_files_reparent(const char *name UNUSED,
16 - const char *old_cwd,
26 + static void odb_source_files_reparent(const char *old_cwd,
17 27 const char *new_cwd,
18 28 void *cb_data)
19 29 {
@@ -27,7 +37,7 @@ static void odb_source_files_reparent(const char *name UNUSED,
27 37 static void odb_source_files_free(struct odb_source *source)
28 38 {
29 39 struct odb_source_files *files = odb_source_files_downcast(source);
30 - chdir_notify_unregister(NULL, odb_source_files_reparent, files);
40 + chdir_notify_unregister(odb_source_files_reparent, files);
31 41 odb_source_free(&files->loose->base);
32 42 odb_source_free(&files->packed->base);
33 43 odb_source_release(&files->base);
@@ -41,6 +51,23 @@ static void odb_source_files_close(struct odb_source *source)
41 51 odb_source_close(&files->packed->base);
42 52 }
43 53
54 + static int odb_source_files_create_on_disk(struct odb_source *source)
55 + {
56 + struct strbuf path = STRBUF_INIT;
57 +
58 + safe_create_dir(source->odb->repo, source->path, 1);
59 +
60 + strbuf_addf(&path, "%s/pack", source->path);
61 + safe_create_dir(source->odb->repo, path.buf, 1);
62 +
63 + strbuf_reset(&path);
64 + strbuf_addf(&path, "%s/info", source->path);
65 + safe_create_dir(source->odb->repo, path.buf, 1);
66 +
67 + strbuf_release(&path);
68 + return 0;
69 + }
70 +
44 71 static void odb_source_files_prepare(struct odb_source *source,
45 72 enum odb_prepare_flags flags)
46 73 {
@@ -49,21 +76,38 @@ static void odb_source_files_prepare(struct odb_source *source,
49 76 odb_source_prepare(&files->packed->base, flags);
50 77 }
51 78
52 - static int odb_source_files_read_object_info(struct odb_source *source,
53 - const struct object_id *oid,
54 - struct object_info *oi,
55 - enum object_info_flags flags)
79 + static enum odb_read_status odb_source_files_read_object_info(struct odb_source *source,
80 + const struct object_id *oid,
81 + struct object_info *oi,
82 + enum object_info_flags flags,
83 + struct strbuf *errmsg)
56 84 {
57 85 struct odb_source_files *files = odb_source_files_downcast(source);
86 + enum odb_read_status ret_packed, ret_loose;
58 87
59 - if (!odb_source_read_object_info(&files->packed->base, oid, oi, flags) ||
60 - !odb_source_read_object_info(&files->loose->base, oid, oi, flags))
88 + ret_packed = odb_source_read_object_info(&files->packed->base, oid, oi,
89 + flags, errmsg);
90 + if (!ret_packed)
61 91 return 0;
62 92
63 - return -1;
93 + ret_loose = odb_source_read_object_info(&files->loose->base, oid, oi, flags,
94 + ret_packed == ODB_READ_NOT_FOUND ? errmsg : NULL);
95 + if (!ret_loose)
96 + return 0;
97 +
98 + /*
99 + * Reading the packed object may have failed even though the object
100 + * exists, for example because it is corrupt. Report this failure to
101 + * the caller in case neither of the sources was able to read the
102 + * object, and prefer the error of the packed source in case both
103 + * reads have failed.
104 + */
105 + if (ret_packed != ODB_READ_NOT_FOUND)
106 + return ret_packed;
107 + return ret_loose;
64 108 }
65 109
66 - static int odb_source_files_read_object_stream(struct odb_read_stream **out,
110 + static int odb_source_files_read_object_stream(struct odb_stream **out,
67 111 struct odb_source *source,
68 112 const struct object_id *oid)
69 113 {
@@ -174,12 +218,11 @@ static int odb_source_files_write_object(struct odb_source *source,
174 218 }
175 219
176 220 static int odb_source_files_write_object_stream(struct odb_source *source,
177 - struct odb_write_stream *stream,
178 - size_t len,
221 + struct odb_stream *stream,
179 222 struct object_id *oid)
180 223 {
181 224 struct odb_source_files *files = odb_source_files_downcast(source);
182 - return odb_source_write_object_stream(&files->loose->base, stream, len, oid);
225 + return odb_source_write_object_stream(&files->loose->base, stream, oid);
183 226 }
184 227
185 228 static int odb_source_files_begin_transaction(struct odb_source *source,
@@ -261,6 +304,626 @@ out:
261 304 return ret;
262 305 }
263 306
307 + static int too_many_loose_objects(struct odb_source_files *files, int limit)
308 + {
309 + unsigned long loose_count;
310 +
311 + if (limit <= 0)
312 + return 0;
313 +
314 + if (odb_source_count_objects(&files->loose->base, ODB_COUNT_OBJECTS_APPROXIMATE,
315 + &loose_count) < 0)
316 + return 0;
317 +
318 + /*
319 + * This is weird, but stems from legacy behaviour: the GC auto
320 + * threshold was always essentially interpreted as if it was rounded up
321 + * to the next multiple 256 of, so we retain this behaviour for now.
322 + */
323 + return loose_count > (DIV_ROUND_UP(((unsigned long) limit), 256) * 256);
324 + }
325 +
326 + static struct packed_git *find_base_packs(struct odb_source_files *files,
327 + struct string_list *packs,
328 + unsigned long limit)
329 + {
330 + struct packfile_list_entry *e;
331 + struct packed_git *base = NULL;
332 +
333 + for (e = packfile_store_get_packs(files->packed); e; e = e->next) {
334 + if (e->pack->is_cruft)
335 + continue;
336 + if (limit) {
337 + if ((uintmax_t) e->pack->pack_size >= limit)
338 + string_list_append(packs, e->pack->pack_name);
339 + } else if (!base || base->pack_size < e->pack->pack_size) {
340 + base = e->pack;
341 + }
342 + }
343 +
344 + if (base)
345 + string_list_append(packs, base->pack_name);
346 +
347 + return base;
348 + }
349 +
350 + static int too_many_packs(struct odb_source_files *files, int gc_auto_pack_limit)
351 + {
352 + struct packfile_list_entry *e;
353 + int cnt = 0;
354 +
355 + if (gc_auto_pack_limit <= 0)
356 + return 0;
357 +
358 + for (e = packfile_store_get_packs(files->packed); e; e = e->next) {
359 + if (e->pack->pack_keep)
360 + continue;
361 + /*
362 + * Perhaps check the size of the pack and count only
363 + * very small ones here?
364 + */
365 + cnt++;
366 + }
367 + return gc_auto_pack_limit < cnt;
368 + }
369 +
370 + static uint64_t total_ram(void)
371 + {
372 + #if defined(HAVE_SYSINFO)
373 + struct sysinfo si;
374 +
375 + if (!sysinfo(&si)) {
376 + uint64_t total = si.totalram;
377 +
378 + if (si.mem_unit > 1)
379 + total *= (uint64_t)si.mem_unit;
380 + return total;
381 + }
382 + #elif defined(HAVE_BSD_SYSCTL) && (defined(HW_MEMSIZE) || defined(HW_PHYSMEM) || defined(HW_PHYSMEM64))
383 + uint64_t physical_memory;
384 + int mib[2];
385 + size_t length;
386 +
387 + mib[0] = CTL_HW;
388 + # if defined(HW_MEMSIZE)
389 + mib[1] = HW_MEMSIZE;
390 + # elif defined(HW_PHYSMEM64)
391 + mib[1] = HW_PHYSMEM64;
392 + # else
393 + mib[1] = HW_PHYSMEM;
394 + # endif
395 + length = sizeof(physical_memory);
396 + if (!sysctl(mib, 2, &physical_memory, &length, NULL, 0)) {
397 + if (length == 4) {
398 + uint32_t mem;
399 +
400 + if (!sysctl(mib, 2, &mem, &length, NULL, 0))
401 + physical_memory = mem;
402 + }
403 + return physical_memory;
404 + }
405 + #elif defined(GIT_WINDOWS_NATIVE)
406 + MEMORYSTATUSEX memInfo;
407 +
408 + memInfo.dwLength = sizeof(MEMORYSTATUSEX);
409 + if (GlobalMemoryStatusEx(&memInfo))
410 + return memInfo.ullTotalPhys;
411 + #endif
412 + return 0;
413 + }
414 +
415 + static uint64_t estimate_repack_memory(struct odb_source_files *files,
416 + struct packed_git *pack)
417 + {
418 + unsigned long max_delta_cache_size = DEFAULT_DELTA_CACHE_SIZE;
419 + unsigned long delta_base_cache_limit = DEFAULT_DELTA_BASE_CACHE_LIMIT;
420 + unsigned long nr_objects;
421 + size_t os_cache, heap;
422 +
423 + if (odb_source_count_objects(&files->base, ODB_COUNT_OBJECTS_APPROXIMATE,
424 + &nr_objects) < 0)
425 + return 0;
426 +
427 + if (!pack || !nr_objects)
428 + return 0;
429 +
430 + repo_config_get_ulong(files->base.odb->repo, "pack.deltacachesize",
431 + &max_delta_cache_size);
432 + repo_config_get_ulong(files->base.odb->repo, "core.deltabasecachelimit",
433 + &delta_base_cache_limit);
434 +
435 + /*
436 + * First we have to scan through at least one pack.
437 + * Assume enough room in OS file cache to keep the entire pack
438 + * or we may accidentally evict data of other processes from
439 + * the cache.
440 + */
441 + os_cache = pack->pack_size + pack->index_size;
442 + /* then pack-objects needs lots more for book keeping */
443 + heap = sizeof(struct object_entry) * nr_objects;
444 + /*
445 + * internal rev-list --all --objects takes up some memory too,
446 + * let's say half of it is for blobs
447 + */
448 + heap += sizeof(struct blob) * nr_objects / 2;
449 + /*
450 + * and the other half is for trees (commits and tags are
451 + * usually insignificant)
452 + */
453 + heap += sizeof(struct tree) * nr_objects / 2;
454 + /* and then obj_hash[], underestimated in fact */
455 + heap += sizeof(struct object *) * nr_objects;
456 + /* revindex is used also */
457 + heap += (sizeof(off_t) + sizeof(uint32_t)) * nr_objects;
458 + /*
459 + * read_sha1_file() (either at delta calculation phase, or
460 + * writing phase) also fills up the delta base cache
461 + */
462 + heap += delta_base_cache_limit;
463 + /* and of course pack-objects has its own delta cache */
464 + heap += max_delta_cache_size;
465 +
466 + return os_cache + heap;
467 + }
468 +
469 + static int keep_one_pack(struct string_list_item *item, void *data)
470 + {
471 + struct strvec *args = data;
472 + strvec_pushf(args, "--keep-pack=%s", basename(item->string));
473 + return 0;
474 + }
475 +
476 + static void add_repack_all_option(struct repository *repo,
477 + const struct odb_optimize_options *opts,
478 + struct string_list *keep_pack,
479 + struct strvec *args)
480 + {
481 + char *repack_filter = NULL;
482 + char *repack_filter_to = NULL;
483 +
484 + repo_config_get_string(repo, "gc.repackfilter", &repack_filter);
485 + repo_config_get_string(repo, "gc.repackfilterto", &repack_filter_to);
486 +
487 + if (opts->prune_expire && !strcmp(opts->prune_expire, "now") &&
488 + !(opts->cruft_packs && opts->expire_to))
489 + strvec_push(args, "-a");
490 + else if (opts->cruft_packs) {
491 + strvec_push(args, "--cruft");
492 + if (opts->prune_expire)
493 + strvec_pushf(args, "--cruft-expiration=%s", opts->prune_expire);
494 + if (opts->max_cruft_size)
495 + strvec_pushf(args, "--max-cruft-size=%lu",
496 + opts->max_cruft_size);
497 + if (opts->expire_to)
498 + strvec_pushf(args, "--expire-to=%s", opts->expire_to);
499 + } else {
500 + strvec_push(args, "-A");
501 + if (opts->prune_expire)
502 + strvec_pushf(args, "--unpack-unreachable=%s", opts->prune_expire);
503 + }
504 +
505 + if (keep_pack)
506 + for_each_string_list(keep_pack, keep_one_pack, args);
507 +
508 + if (repack_filter && *repack_filter)
509 + strvec_pushf(args, "--filter=%s", repack_filter);
510 + if (repack_filter_to && *repack_filter_to)
511 + strvec_pushf(args, "--filter-to=%s", repack_filter_to);
512 +
513 + free(repack_filter);
514 + free(repack_filter_to);
515 + }
516 +
517 + static void add_repack_incremental_option(struct strvec *args)
518 + {
519 + strvec_push(args, "--no-write-bitmap-index");
520 + }
521 +
522 + bool odb_source_files_optimize_required(struct odb_source *source,
523 + const struct odb_optimize_options *opts)
524 + {
525 + struct odb_source_files *files = odb_source_files_downcast(source);
526 + struct repository *repo = source->odb->repo;
527 +
528 + switch (opts->strategy) {
529 + case ODB_OPTIMIZE_INCREMENTAL: {
530 + int gc_auto_threshold = 6700;
531 + int gc_auto_pack_limit = 50;
532 +
533 + repo_config_get_int(repo, "gc.auto", &gc_auto_threshold);
534 + repo_config_get_int(repo, "gc.autopacklimit", &gc_auto_pack_limit);
535 +
536 + /*
537 + * Setting gc.auto to 0 or negative can disable the
538 + * automatic gc.
539 + */
540 + if (gc_auto_threshold <= 0)
541 + return false;
542 + if (!too_many_packs(files, gc_auto_pack_limit) &&
543 + !too_many_loose_objects(files, gc_auto_threshold))
544 + return false;
545 +
546 + return true;
547 + }
548 + case ODB_OPTIMIZE_GEOMETRIC: {
549 + struct pack_geometry geometry = {
550 + .split_factor = 2,
551 + };
552 + struct pack_objects_args po_args = {
553 + .local = 1,
554 + };
555 + struct existing_packs existing_packs = EXISTING_PACKS_INIT;
556 + struct string_list kept_packs = STRING_LIST_INIT_DUP;
557 + int auto_value = 6700;
558 + bool ret;
559 +
560 + repo_config_get_int(repo, "maintenance.geometric-repack.auto",
561 + &auto_value);
562 + if (!auto_value)
563 + return false;
564 + if (auto_value < 0)
565 + return true;
566 +
567 + repo_config_get_int(repo, "maintenance.geometric-repack.splitFactor",
568 + &geometry.split_factor);
569 +
570 + existing_packs.repo = repo;
571 + existing_packs_collect(&existing_packs, &kept_packs);
572 + pack_geometry_init(&geometry, &existing_packs, &po_args);
573 + pack_geometry_split(&geometry);
574 +
575 + /*
576 + * When we'd merge at least two packs with one another we always
577 + * perform the repack.
578 + */
579 + if (geometry.split) {
580 + ret = true;
581 + goto out;
582 + }
583 +
584 + /*
585 + * Otherwise, we estimate the number of loose objects to determine
586 + * whether we want to create a new packfile or not.
587 + */
588 + if (too_many_loose_objects(files, auto_value)) {
589 + ret = true;
590 + goto out;
591 + }
592 +
593 + ret = false;
594 +
595 + out:
596 + existing_packs_release(&existing_packs);
597 + pack_geometry_release(&geometry);
598 + return ret;
599 + }
600 + default:
601 + BUG("unknown maintenance strategy '%d'", opts->strategy);
602 + }
603 + }
604 +
605 + int odb_source_files_optimize(struct odb_source *source,
606 + const struct odb_optimize_options *opts)
607 + {
608 + struct odb_source_files *files = odb_source_files_downcast(source);
609 + struct repository *repo = source->odb->repo;
610 + struct child_process repack_cmd = CHILD_PROCESS_INIT;
611 + unsigned long big_pack_threshold = 0;
612 + int gc_auto_threshold = 6700;
613 + int gc_auto_pack_limit = 50;
614 + int ret;
615 +
616 + repo_config_get_int(repo, "gc.auto", &gc_auto_threshold);
617 + repo_config_get_int(repo, "gc.autopacklimit", &gc_auto_pack_limit);
618 + repo_config_get_ulong(repo, "gc.bigpackthreshold", &big_pack_threshold);
619 +
620 + if (repo->repository_format_precious_objects)
621 + return 0;
622 +
623 + repack_cmd.git_cmd = 1;
624 + repack_cmd.odb_to_close = repo->objects;
625 +
626 + strvec_pushl(&repack_cmd.args, "repack", "-d", "-l", NULL);
627 + if (opts->flags & ODB_OPTIMIZE_NO_REUSE_DELTAS)
628 + strvec_push(&repack_cmd.args, "-f");
629 + if (opts->depth > 0)
630 + strvec_pushf(&repack_cmd.args, "--depth=%d", opts->depth);
631 + if (opts->window > 0)
632 + strvec_pushf(&repack_cmd.args, "--window=%d", opts->window);
633 + if (!(opts->flags & ODB_OPTIMIZE_VERBOSE))
634 + strvec_push(&repack_cmd.args, "-q");
635 +
636 + /*
637 + * There's three cases we need to consider:
638 + *
639 + * - If we're invoked without `--auto` we'll need to perform a full
640 + * repack.
641 + *
642 + * - If we're invoked with `--auto` and there's too many packs, then
643 + * we perform a full repack, as well.
644 + *
645 + * - Otherwise we perform an incremental repack.
646 + */
647 + switch (opts->strategy) {
648 + case ODB_OPTIMIZE_INCREMENTAL:
649 + if (!(opts->flags & ODB_OPTIMIZE_AUTO)) {
650 + struct string_list keep_pack = STRING_LIST_INIT_NODUP;
651 +
652 + if (opts->keep_largest_pack != -1) {
653 + if (opts->keep_largest_pack)
654 + find_base_packs(files, &keep_pack, 0);
655 + } else if (big_pack_threshold) {
656 + find_base_packs(files, &keep_pack, big_pack_threshold);
657 + }
658 +
659 + add_repack_all_option(repo, opts, &keep_pack, &repack_cmd.args);
660 + string_list_clear(&keep_pack, 0);
661 + } else {
662 + if (too_many_packs(files, gc_auto_pack_limit)) {
663 + struct string_list keep_pack = STRING_LIST_INIT_NODUP;
664 +
665 + if (big_pack_threshold) {
666 + find_base_packs(files, &keep_pack, big_pack_threshold);
667 + if (keep_pack.nr >= (unsigned long) gc_auto_pack_limit) {
668 + string_list_clear(&keep_pack, 0);
669 + find_base_packs(files, &keep_pack, 0);
670 + }
671 + } else {
672 + struct packed_git *p = find_base_packs(files, &keep_pack, 0);
673 + uint64_t mem_have, mem_want;
674 +
675 + mem_have = total_ram();
676 + mem_want = estimate_repack_memory(files, p);
677 +
678 + /*
679 + * Only allow 1/2 of memory for pack-objects, leave
680 + * the rest for the OS and other processes in the
681 + * system.
682 + */
683 + if (!mem_have || mem_want < mem_have / 2)
684 + string_list_clear(&keep_pack, 0);
685 + }
686 +
687 + add_repack_all_option(repo, opts, &keep_pack, &repack_cmd.args);
688 + string_list_clear(&keep_pack, 0);
689 + } else {
690 + add_repack_incremental_option(&repack_cmd.args);
691 + }
692 + }
693 +
694 + break;
695 + case ODB_OPTIMIZE_GEOMETRIC: {
696 + struct pack_geometry geometry = {
697 + .split_factor = 2,
698 + };
699 + struct pack_objects_args po_args = {
700 + .local = 1,
701 + };
702 + struct existing_packs existing_packs = EXISTING_PACKS_INIT;
703 + struct string_list kept_packs = STRING_LIST_INIT_DUP;
704 +
705 + repo_config_get_int(repo, "maintenance.geometric-repack.splitFactor",
706 + &geometry.split_factor);
707 +
708 + existing_packs.repo = repo;
709 + existing_packs_collect(&existing_packs, &kept_packs);
710 + pack_geometry_init(&geometry, &existing_packs, &po_args);
711 + pack_geometry_split(&geometry);
712 +
713 + if (geometry.split < geometry.pack_nr) {
714 + strvec_pushf(&repack_cmd.args, "--geometric=%d",
715 + geometry.split_factor);
716 + } else {
717 + add_repack_all_option(repo, opts, NULL, &repack_cmd.args);
718 + }
719 + if (repo->settings.core_multi_pack_index)
720 + strvec_push(&repack_cmd.args, "--write-midx");
721 +
722 + existing_packs_release(&existing_packs);
723 + pack_geometry_release(&geometry);
724 + break;
725 + }
726 + default:
727 + die("unknown maintenance strategy '%d'", opts->strategy);
728 + }
729 +
730 + if (run_command(&repack_cmd)) {
731 + ret = error("failed to run %s", repack_cmd.args.v[0]);
732 + goto out;
733 + }
734 +
735 + /* Geometric repacking uses cruft packs, so we don't have to prune separately. */
736 + if (opts->strategy != ODB_OPTIMIZE_GEOMETRIC && opts->prune_expire) {
737 + struct child_process prune_cmd = CHILD_PROCESS_INIT;
738 +
739 + strvec_pushl(&prune_cmd.args, "prune", "--expire", NULL);
740 + /* run `git prune` even if using cruft packs */
741 + strvec_push(&prune_cmd.args, opts->prune_expire);
742 + if (!(opts->flags & ODB_OPTIMIZE_VERBOSE))
743 + strvec_push(&prune_cmd.args, "--no-progress");
744 + if (repo_has_promisor_remote(repo))
745 + strvec_push(&prune_cmd.args,
746 + "--exclude-promisor-objects");
747 + prune_cmd.git_cmd = 1;
748 +
749 + if (run_command(&prune_cmd)) {
750 + ret = error("failed to run %s", prune_cmd.args.v[0]);
751 + goto out;
752 + }
753 + }
754 +
755 + if (opts->flags & ODB_OPTIMIZE_AUTO && too_many_loose_objects(files, gc_auto_threshold))
756 + warning(_("There are too many unreachable loose objects; "
757 + "run 'git prune' to remove them."));
758 +
759 + ret = 0;
760 +
761 + out:
762 + return ret;
763 + }
764 +
765 + struct odb_pack_generator_files {
766 + struct odb_pack_generator base;
767 + struct child_process cp;
768 + };
769 +
770 + static int odb_pack_generator_files_finish(struct odb_pack_generator *_generator)
771 + {
772 + struct odb_pack_generator_files *generator =
773 + (struct odb_pack_generator_files *)_generator;
774 + int ret;
775 +
776 + ret = finish_command(&generator->cp);
777 + free(generator);
778 +
779 + if (ret) {
780 + /*
781 + * On failure, pack-objects is expected to have written a
782 + * useful error message to its standard error stream already.
783 + * Death by signal is worth mentioning, though, with the
784 + * exception of SIGPIPE: that is a normal occurrence when the
785 + * consumer of the pack hangs up.
786 + */
787 + if (ret > 128 && ret - 128 == SIGPIPE)
788 + return -1;
789 + if (ret > 128)
790 + error(_("pack-objects died of signal %d"), ret - 128);
791 + return -1;
792 + }
793 +
794 + return 0;
795 + }
796 +
797 + static int odb_source_files_generate_pack(struct odb_source *source UNUSED,
798 + struct odb_pack_generator **out,
799 + const struct odb_generate_pack_options *opts)
800 + {
801 + struct odb_pack_generator_files *generator;
802 + struct child_process *cp;
803 + FILE *in;
804 +
805 + CALLOC_ARRAY(generator, 1);
806 + child_process_init(&generator->cp);
807 + cp = &generator->cp;
808 +
809 + /*
810 + * The hook is expected to spawn "$hook git pack-objects <args...>"
811 + * and to behave like git-pack-objects(1) would have. This can for
812 + * example be used to serve precomputed packfiles.
813 + */
814 + if (opts->pack_objects_hook) {
815 + strvec_push(&cp->args, opts->pack_objects_hook);
816 + strvec_push(&cp->args, "git");
817 + cp->use_shell = 1;
818 + } else {
819 + cp->git_cmd = 1;
820 + }
821 +
822 + /*
823 + * The caller-provided shallow boundary overrides any shallow state
824 + * that the repository itself may have, so the shallow file needs to
825 + * be neutralized.
826 + */
827 + if (opts->shallows.nr) {
828 + strvec_push(&cp->args, "--shallow-file");
829 + strvec_push(&cp->args, "");
830 + }
831 + strvec_push(&cp->args, "pack-objects");
832 + strvec_push(&cp->args, "--revs");
833 + strvec_push(&cp->args, "--stdout");
834 + if (opts->thin)
835 + strvec_push(&cp->args, "--thin");
836 + if (opts->shallow)
837 + strvec_push(&cp->args, "--shallow");
838 + if (opts->ofs_delta)
839 + strvec_push(&cp->args, "--delta-base-offset");
840 + if (opts->include_tag)
841 + strvec_push(&cp->args, "--include-tag");
842 + if (opts->missing_allow_promisor)
843 + strvec_push(&cp->args, "--missing=allow-promisor");
844 + if (opts->disable_bitmaps)
845 + strvec_push(&cp->args, "--no-use-bitmap-index");
846 + switch (opts->progress) {
847 + case ODB_GENERATE_PACK_PROGRESS_NONE:
848 + strvec_push(&cp->args, "--quiet");
849 + break;
850 + case ODB_GENERATE_PACK_PROGRESS_STANDARD:
851 + strvec_push(&cp->args, "--progress");
852 + break;
853 + case ODB_GENERATE_PACK_PROGRESS_VERBOSE:
854 + strvec_push(&cp->args, "--all-progress");
855 + break;
856 + default:
857 + BUG("unknown progress option %d", opts->progress);
858 + }
859 + if (opts->filter_spec)
860 + strvec_pushf(&cp->args, "--filter=%s", opts->filter_spec);
861 + if (opts->uri_protocols)
862 + for (size_t i = 0; i < opts->uri_protocols->nr; i++)
863 + strvec_pushf(&cp->args, "--uri-protocol=%s",
864 + opts->uri_protocols->items[i].string);
865 +
866 + cp->in = -1;
867 + cp->out = opts->pack_fd;
868 + cp->err = opts->progress_fd;
869 + cp->clean_on_exit = 1;
870 +
871 + if (start_command(cp)) {
872 + free(generator);
873 + return error(_("could not spawn pack-objects"));
874 + }
875 +
876 + /*
877 + * Feed the objects to pack-objects. This is safe to do synchronously
878 + * because pack-objects consumes all of its standard input before it
879 + * starts to generate the pack.
880 + */
881 + in = xfdopen(cp->in, "w");
882 + for (size_t i = 0; i < opts->shallows.nr; i++)
883 + fprintf(in, "--shallow %s\n", oid_to_hex(&opts->shallows.oid[i]));
884 + for (size_t i = 0; i < opts->wants.nr; i++)
885 + fprintf(in, "%s\n", oid_to_hex(&opts->wants.oid[i]));
886 + fprintf(in, "--not\n");
887 + for (size_t i = 0; i < opts->haves.nr; i++)
888 + fprintf(in, "%s\n", oid_to_hex(&opts->haves.oid[i]));
889 + fprintf(in, "\n");
890 + fflush(in);
891 + if (ferror(in)) {
892 + error(_("error writing to pack-objects"));
893 + fclose(in);
894 + if (opts->pack_fd < 0)
895 + close(cp->out);
896 + if (opts->progress_fd < 0)
897 + close(cp->err);
898 + finish_command(cp);
899 + free(generator);
900 + return -1;
901 + }
902 + fclose(in);
903 +
904 + generator->base.out = opts->pack_fd < 0 ? cp->out : -1;
905 + generator->base.err = opts->progress_fd < 0 ? cp->err : -1;
906 + generator->base.finish = odb_pack_generator_files_finish;
907 +
908 + *out = &generator->base;
909 + return 0;
910 + }
911 +
912 + static int odb_source_files_fsck(struct odb_source *source,
913 + struct odb_fsck_options *opts)
914 + {
915 + struct odb_source_files *files = odb_source_files_downcast(source);
916 + int ret = 0;
917 +
918 + if (!(opts->flags & ODB_FSCK_FULL) && !source->local)
919 + return 0;
920 +
921 + ret |= odb_source_fsck(&files->loose->base, opts);
922 + ret |= odb_source_fsck(&files->packed->base, opts);
923 +
924 + return ret;
925 + }
926 +
264 927 struct odb_source_files *odb_source_files_new(struct object_database *odb,
265 928 const char *path,
266 929 bool local)
@@ -274,7 +937,9 @@ struct odb_source_files *odb_source_files_new(struct object_database *odb,
274 937
275 938 files->base.free = odb_source_files_free;
276 939 files->base.close = odb_source_files_close;
940 + files->base.create_on_disk = odb_source_files_create_on_disk;
277 941 files->base.prepare = odb_source_files_prepare;
942 + files->base.fsck = odb_source_files_fsck;
278 943 files->base.read_object_info = odb_source_files_read_object_info;
279 944 files->base.read_object_stream = odb_source_files_read_object_stream;
280 945 files->base.for_each_object = odb_source_files_for_each_object;
@@ -286,6 +951,9 @@ struct odb_source_files *odb_source_files_new(struct object_database *odb,
286 951 files->base.begin_transaction = odb_source_files_begin_transaction;
287 952 files->base.read_alternates = odb_source_files_read_alternates;
288 953 files->base.write_alternate = odb_source_files_write_alternate;
954 + files->base.optimize = odb_source_files_optimize;
955 + files->base.optimize_required = odb_source_files_optimize_required;
956 + files->base.generate_pack = odb_source_files_generate_pack;
289 957
290 958 /*
291 959 * Ideally, we would only ever store absolute paths in the source. This
@@ -293,7 +961,7 @@ struct odb_source_files *odb_source_files_new(struct object_database *odb,
293 961 * paths in the primary ODB source in some user-facing functionality.
294 962 */
295 963 if (!is_absolute_path(path))
296 - chdir_notify_register(NULL, odb_source_files_reparent, files);
964 + chdir_notify_register(odb_source_files_reparent, files);
297 965
298 966 return files;
299 967 }
modified odb/source-files.h
@@ -21,6 +21,21 @@ struct odb_source_files *odb_source_files_new(struct object_database *odb,
21 21 const char *path,
22 22 bool local);
23 23
24 + /*
25 + * Optimize the files object database source by repacking loose objects and
26 + * packfiles as needed. Returns 0 on success, a negative error code otherwise.
27 + */
28 + int odb_source_files_optimize(struct odb_source *source,
29 + const struct odb_optimize_options *opts);
30 +
31 + /*
32 + * Check whether optimization of the files object database source is required
33 + * given the provided options. Returns true if optimization should be
34 + * performed, false otherwise.
35 + */
36 + bool odb_source_files_optimize_required(struct odb_source *source,
37 + const struct odb_optimize_options *opts);
38 +
24 39 /*
25 40 * Cast the given object database source to the files backend. This will cause
26 41 * a BUG in case the source doesn't use this backend.
@@ -28,7 +43,9 @@ struct odb_source_files *odb_source_files_new(struct object_database *odb,
28 43 static inline struct odb_source_files *odb_source_files_downcast(struct odb_source *source)
29 44 {
30 45 if (source->type != ODB_SOURCE_FILES)
31 - BUG("trying to downcast source of type '%d' to files", source->type);
46 + BUG("trying to downcast source of type '%s' to '%s'",
47 + odb_source_type_to_name(source->type),
48 + odb_source_type_to_name(ODB_SOURCE_FILES));
32 49 return container_of(source, struct odb_source_files, base);
33 50 }
34 51
modified odb/source-inmemory.c
@@ -1,6 +1,7 @@
1 1 #include "git-compat-util.h"
2 2 #include "object-file.h"
3 3 #include "odb.h"
4 + #include "fsck.h"
4 5 #include "odb/source-inmemory.h"
5 6 #include "odb/streaming.h"
6 7 #include "oidtree.h"
@@ -56,29 +57,30 @@ static void populate_object_info(struct odb_source_inmemory *source,
56 57 oi->source_infop->source = &source->base;
57 58 }
58 59
59 - static int odb_source_inmemory_read_object_info(struct odb_source *source,
60 - const struct object_id *oid,
61 - struct object_info *oi,
62 - enum object_info_flags flags UNUSED)
60 + static enum odb_read_status odb_source_inmemory_read_object_info(struct odb_source *source,
61 + const struct object_id *oid,
62 + struct object_info *oi,
63 + enum object_info_flags flags UNUSED,
64 + struct strbuf *errmsg UNUSED)
63 65 {
64 66 struct odb_source_inmemory *inmemory = odb_source_inmemory_downcast(source);
65 67 const struct inmemory_object *object;
66 68
67 69 object = find_cached_object(inmemory, oid);
68 70 if (!object)
69 - return -1;
71 + return ODB_READ_NOT_FOUND;
70 72
71 73 populate_object_info(inmemory, oi, object);
72 74 return 0;
73 75 }
74 76
75 77 struct odb_read_stream_inmemory {
76 - struct odb_read_stream base;
78 + struct odb_stream base;
77 79 const unsigned char *buf;
78 80 size_t offset;
79 81 };
80 82
81 - static ssize_t odb_read_stream_inmemory_read(struct odb_read_stream *stream,
83 + static ssize_t odb_read_stream_inmemory_read(struct odb_stream *stream,
82 84 char *buf, size_t buf_len)
83 85 {
84 86 struct odb_read_stream_inmemory *inmemory =
@@ -94,12 +96,12 @@ static ssize_t odb_read_stream_inmemory_read(struct odb_read_stream *stream,
94 96 return bytes;
95 97 }
96 98
97 - static int odb_read_stream_inmemory_close(struct odb_read_stream *stream UNUSED)
99 + static int odb_read_stream_inmemory_close(struct odb_stream *stream UNUSED)
98 100 {
99 101 return 0;
100 102 }
101 103
102 - static int odb_source_inmemory_read_object_stream(struct odb_read_stream **out,
104 + static int odb_source_inmemory_read_object_stream(struct odb_stream **out,
103 105 struct odb_source *source,
104 106 const struct object_id *oid)
105 107 {
@@ -256,8 +258,7 @@ static int odb_source_inmemory_write_object(struct odb_source *source,
256 258 }
257 259
258 260 static int odb_source_inmemory_write_object_stream(struct odb_source *source,
259 - struct odb_write_stream *stream,
260 - size_t len,
261 + struct odb_stream *stream,
261 262 struct object_id *oid)
262 263 {
263 264 char buf[16384];
@@ -265,12 +266,19 @@ static int odb_source_inmemory_write_object_stream(struct odb_source *source,
265 266 char *data;
266 267 int ret;
267 268
268 - CALLOC_ARRAY(data, len);
269 - while (!stream->is_finished) {
269 + CALLOC_ARRAY(data, stream->size);
270 + while (1) {
270 271 ssize_t bytes_read;
271 272
272 - bytes_read = odb_write_stream_read(stream, buf, sizeof(buf));
273 - if (total_read + bytes_read > len) {
273 + bytes_read = odb_stream_read(stream, buf, sizeof(buf));
274 + if (bytes_read < 0) {
275 + ret = error("failed to read object stream");
276 + goto out;
277 + }
278 + if (!bytes_read)
279 + break;
280 +
281 + if (total_read + bytes_read > stream->size) {
274 282 ret = error("object stream yielded more bytes than expected");
275 283 goto out;
276 284 }
@@ -279,15 +287,16 @@ static int odb_source_inmemory_write_object_stream(struct odb_source *source,
279 287 total_read += bytes_read;
280 288 }
281 289
282 - if (total_read != len) {
290 + if (total_read != stream->size) {
283 291 ret = error("object stream yielded less bytes than expected");
284 292 goto out;
285 293 }
286 294
287 - hash_object_file(source->odb->repo->hash_algo, data, total_read, OBJ_BLOB, oid);
295 + hash_object_file(source->odb->repo->hash_algo, data, total_read,
296 + stream->type, oid);
288 297
289 - ret = odb_source_inmemory_write_object(source, data, len, OBJ_BLOB, oid,
290 - NULL, NULL, 0);
298 + ret = odb_source_inmemory_write_object(source, data, stream->size,
299 + stream->type, oid, NULL, NULL, 0);
291 300 if (ret < 0)
292 301 goto out;
293 302
@@ -361,6 +370,12 @@ static void odb_source_inmemory_free(struct odb_source *source)
361 370 free(inmemory);
362 371 }
363 372
373 + static int odb_source_inmemory_fsck(struct odb_source *source UNUSED,
374 + struct odb_fsck_options *opts UNUSED)
375 + {
376 + return 0;
377 + }
378 +
364 379 struct odb_source_inmemory *odb_source_inmemory_new(struct object_database *odb)
365 380 {
366 381 struct odb_source_inmemory *source;
@@ -371,6 +386,7 @@ struct odb_source_inmemory *odb_source_inmemory_new(struct object_database *odb)
371 386 source->base.free = odb_source_inmemory_free;
372 387 source->base.close = odb_source_inmemory_close;
373 388 source->base.prepare = odb_source_inmemory_prepare;
389 + source->base.fsck = odb_source_inmemory_fsck;
374 390 source->base.read_object_info = odb_source_inmemory_read_object_info;
375 391 source->base.read_object_stream = odb_source_inmemory_read_object_stream;
376 392 source->base.for_each_object = odb_source_inmemory_for_each_object;
modified odb/source-inmemory.h
@@ -26,7 +26,9 @@ struct odb_source_inmemory *odb_source_inmemory_new(struct object_database *odb)
26 26 static inline struct odb_source_inmemory *odb_source_inmemory_downcast(struct odb_source *source)
27 27 {
28 28 if (source->type != ODB_SOURCE_INMEMORY)
29 - BUG("trying to downcast source of type '%d' to in-memory", source->type);
29 + BUG("trying to downcast source of type '%s' to '%s'",
30 + odb_source_type_to_name(source->type),
31 + odb_source_type_to_name(ODB_SOURCE_INMEMORY));
30 32 return container_of(source, struct odb_source_inmemory, base);
31 33 }
32 34
modified odb/source-loose.c
@@ -12,6 +12,7 @@
12 12 #include "odb/streaming.h"
13 13 #include "oidtree.h"
14 14 #include "path.h"
15 + #include "progress.h"
15 16 #include "repository.h"
16 17 #include "strbuf.h"
17 18 #include "tempfile.h"
@@ -67,7 +68,8 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
67 68 const char *path,
68 69 const struct object_id *oid,
69 70 struct object_info *oi,
70 - enum object_info_flags flags)
71 + enum object_info_flags flags,
72 + struct strbuf *errmsg)
71 73 {
72 74 int ret;
73 75 int fd;
@@ -91,11 +93,16 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
91 93 struct stat st;
92 94
93 95 if ((!oi || (!oi->disk_sizep && !oi->mtimep)) && (flags & OBJECT_INFO_QUICK)) {
94 - ret = quick_has_loose(loose, oid) ? 0 : -1;
96 + ret = quick_has_loose(loose, oid) ? 0 : ODB_READ_NOT_FOUND;
95 97 goto out;
96 98 }
97 99
98 100 if (lstat(path, &st) < 0) {
101 + if (errno == ENOENT) {
102 + ret = ODB_READ_NOT_FOUND;
103 + goto out;
104 + }
105 +
99 106 ret = -1;
100 107 goto out;
101 108 }
@@ -113,9 +120,12 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
113 120
114 121 fd = git_open(path);
115 122 if (fd < 0) {
116 - if (errno != ENOENT)
117 - error_errno(_("unable to open loose object %s"), oid_to_hex(oid));
118 - ret = -1;
123 + if (errno == ENOENT) {
124 + ret = ODB_READ_NOT_FOUND;
125 + goto out;
126 + }
127 +
128 + ret = error_errno(_("unable to open loose object %s"), oid_to_hex(oid));
119 129 goto out;
120 130 }
121 131
@@ -155,7 +165,7 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
155 165
156 166 if (parse_loose_header(hdr, oi) < 0) {
157 167 ret = error(_("unable to parse %s header"), oid_to_hex(oid));
158 - goto corrupt;
168 + goto out;
159 169 }
160 170
161 171 if (*oi->typep < 0)
@@ -165,7 +175,7 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
165 175 *oi->contentp = unpack_loose_rest(&stream, hdr, *oi->sizep, oid);
166 176 if (!*oi->contentp) {
167 177 ret = -1;
168 - goto corrupt;
178 + goto out;
169 179 }
170 180 }
171 181
@@ -173,21 +183,19 @@ static int read_object_info_from_path(struct odb_source_loose *loose,
173 183 case ULHR_BAD:
174 184 ret = error(_("unable to unpack %s header"),
175 185 oid_to_hex(oid));
176 - goto corrupt;
186 + goto out;
177 187 case ULHR_TOO_LONG:
178 188 ret = error(_("header for %s too long, exceeds %d bytes"),
179 189 oid_to_hex(oid), MAX_HEADER_LEN);
180 - goto corrupt;
190 + goto out;
181 191 }
182 192
183 193 ret = 0;
184 194
185 - corrupt:
186 - if (ret && (flags & OBJECT_INFO_DIE_IF_CORRUPT))
187 - die(_("loose object %s (stored in %s) is corrupt"),
188 - oid_to_hex(oid), path);
189 -
190 195 out:
196 + if (ret && ret != ODB_READ_NOT_FOUND && errmsg)
197 + strbuf_addf(errmsg, _("loose object %s (stored in %s) is corrupt"),
198 + oid_to_hex(oid), path);
191 199 if (stream_to_end)
192 200 git_inflate_end(stream_to_end);
193 201 if (map)
@@ -206,10 +214,11 @@ out:
206 214 return ret;
207 215 }
208 216
209 - static int odb_source_loose_read_object_info(struct odb_source *source,
210 - const struct object_id *oid,
211 - struct object_info *oi,
212 - enum object_info_flags flags)
217 + static enum odb_read_status odb_source_loose_read_object_info(struct odb_source *source,
218 + const struct object_id *oid,
219 + struct object_info *oi,
220 + enum object_info_flags flags,
221 + struct strbuf *errmsg)
213 222 {
214 223 struct odb_source_loose *loose = odb_source_loose_downcast(source);
215 224 static struct strbuf buf = STRBUF_INIT;
@@ -221,10 +230,10 @@ static int odb_source_loose_read_object_info(struct odb_source *source,
221 230 * second time.
222 231 */
223 232 if (flags & OBJECT_INFO_SECOND_READ)
224 - return -1;
233 + return ODB_READ_NOT_FOUND;
225 234
226 235 odb_loose_path(loose, &buf, oid);
227 - return read_object_info_from_path(loose, buf.buf, oid, oi, flags);
236 + return read_object_info_from_path(loose, buf.buf, oid, oi, flags, errmsg);
228 237 }
229 238
230 239 /*
@@ -278,7 +287,7 @@ out:
278 287 }
279 288
280 289 struct odb_loose_read_stream {
281 - struct odb_read_stream base;
290 + struct odb_stream base;
282 291 git_zstream z;
283 292 enum {
284 293 ODB_LOOSE_READ_STREAM_INUSE,
@@ -292,7 +301,7 @@ struct odb_loose_read_stream {
292 301 int hdr_used;
293 302 };
294 303
295 - static ssize_t read_istream_loose(struct odb_read_stream *_st, char *buf, size_t sz)
304 + static ssize_t read_istream_loose(struct odb_stream *_st, char *buf, size_t sz)
296 305 {
297 306 struct odb_loose_read_stream *st =
298 307 container_of(_st, struct odb_loose_read_stream, base);
@@ -339,7 +348,7 @@ static ssize_t read_istream_loose(struct odb_read_stream *_st, char *buf, size_t
339 348 return total_read;
340 349 }
341 350
342 - static int close_istream_loose(struct odb_read_stream *_st)
351 + static int close_istream_loose(struct odb_stream *_st)
343 352 {
344 353 struct odb_loose_read_stream *st =
345 354 container_of(_st, struct odb_loose_read_stream, base);
@@ -350,7 +359,7 @@ static int close_istream_loose(struct odb_read_stream *_st)
350 359 return 0;
351 360 }
352 361
353 - static int odb_source_loose_read_object_stream(struct odb_read_stream **out,
362 + static int odb_source_loose_read_object_stream(struct odb_stream **out,
354 363 struct odb_source *source,
355 364 const struct object_id *oid)
356 365 {
@@ -421,7 +430,7 @@ static int for_each_object_wrapper_cb(const struct object_id *oid,
421 430 if (data->request) {
422 431 struct object_info oi = *data->request;
423 432
424 - if (read_object_info_from_path(data->loose, path, oid, &oi, 0) < 0)
433 + if (read_object_info_from_path(data->loose, path, oid, &oi, 0, NULL) < 0)
425 434 return -1;
426 435
427 436 return data->cb(oid, &oi, data->cb_data);
@@ -439,7 +448,7 @@ static int for_each_prefixed_object_wrapper_cb(const struct object_id *oid,
439 448 struct object_info oi = *data->request;
440 449
441 450 if (odb_source_read_object_info(&data->loose->base,
442 - oid, &oi, 0) < 0)
451 + oid, &oi, 0, NULL) < 0)
443 452 return -1;
444 453
445 454 return data->cb(oid, &oi, data->cb_data);
@@ -845,8 +854,7 @@ static int odb_source_loose_write_object(struct odb_source *source,
845 854 }
846 855
847 856 static int odb_source_loose_write_object_stream(struct odb_source *source,
848 - struct odb_write_stream *in_stream,
849 - size_t len,
857 + struct odb_stream *in_stream,
850 858 struct object_id *oid)
851 859 {
852 860 struct odb_source_loose *loose = odb_source_loose_downcast(source);
@@ -860,6 +868,7 @@ static int odb_source_loose_write_object_stream(struct odb_source *source,
860 868 struct strbuf filename = STRBUF_INIT;
861 869 unsigned char buf[8192];
862 870 int dirlen;
871 + bool is_finished = false;
863 872 char hdr[MAX_HEADER_LEN];
864 873 int hdrlen;
865 874
@@ -868,7 +877,7 @@ static int odb_source_loose_write_object_stream(struct odb_source *source,
868 877
869 878 /* Since oid is not determined, save tmp file to odb path. */
870 879 strbuf_addf(&filename, "%s/", loose->base.path);
871 - hdrlen = format_object_header(hdr, sizeof(hdr), OBJ_BLOB, len);
880 + hdrlen = format_object_header(hdr, sizeof(hdr), in_stream->type, in_stream->size);
872 881
873 882 /*
874 883 * Common steps for write_loose_object and stream_loose_object to
@@ -890,21 +899,24 @@ static int odb_source_loose_write_object_stream(struct odb_source *source,
890 899 do {
891 900 unsigned char *in0 = stream.next_in;
892 901
893 - if (!stream.avail_in && !in_stream->is_finished) {
894 - ssize_t read_len = odb_write_stream_read(in_stream, buf,
895 - sizeof(buf));
902 + if (!stream.avail_in && !is_finished) {
903 + ssize_t read_len = odb_stream_read(in_stream, buf,
904 + sizeof(buf));
896 905 if (read_len < 0) {
897 906 close(fd);
898 907 err = -1;
899 908 goto cleanup;
900 909 }
901 910
911 + /* All data has been read. */
912 + if (!read_len) {
913 + is_finished = true;
914 + flush = 1;
915 + }
916 +
902 917 stream.avail_in = read_len;
903 918 stream.next_in = buf;
904 919 in0 = buf;
905 - /* All data has been read. */
906 - if (in_stream->is_finished)
907 - flush = 1;
908 920 }
909 921 ret = write_loose_object_common(loose, &c, &compat_c, &stream, flush, in0, fd,
910 922 compressed, sizeof(compressed));
@@ -916,9 +928,9 @@ static int odb_source_loose_write_object_stream(struct odb_source *source,
916 928 */
917 929 } while (ret == Z_OK || ret == Z_BUF_ERROR);
918 930
919 - if (stream.total_in != len + hdrlen)
931 + if (stream.total_in != in_stream->size + hdrlen)
920 932 die(_("write stream object %"PRIuMAX" != %"PRIuMAX), (uintmax_t)stream.total_in,
921 - (uintmax_t)len + hdrlen);
933 + (uintmax_t)in_stream->size + hdrlen);
922 934
923 935 /*
924 936 * Common steps for write_loose_object and stream_loose_object to
@@ -1006,8 +1018,7 @@ static void odb_source_loose_close(struct odb_source *source UNUSED)
1006 1018 /* Nothing to do. */
1007 1019 }
1008 1020
1009 - static void odb_source_loose_reparent(const char *name UNUSED,
1010 - const char *old_cwd,
1021 + static void odb_source_loose_reparent(const char *old_cwd,
1011 1022 const char *new_cwd,
1012 1023 void *cb_data)
1013 1024 {
@@ -1023,11 +1034,101 @@ static void odb_source_loose_free(struct odb_source *source)
1023 1034 struct odb_source_loose *loose = odb_source_loose_downcast(source);
1024 1035 odb_source_loose_clear_cache(loose);
1025 1036 loose_object_map_clear(&loose->map);
1026 - chdir_notify_unregister(NULL, odb_source_loose_reparent, loose);
1037 + chdir_notify_unregister(odb_source_loose_reparent, loose);
1027 1038 odb_source_release(&loose->base);
1028 1039 free(loose);
1029 1040 }
1030 1041
1042 + struct fsck_loose_data {
1043 + struct odb_source_loose *source;
1044 + struct odb_fsck_options *opts;
1045 + struct progress *progress;
1046 + bool error_found;
1047 + };
1048 +
1049 + static int fsck_loose(const struct object_id *oid, const char *path,
1050 + void *cb_data)
1051 + {
1052 + struct fsck_loose_data *data = cb_data;
1053 + enum object_type type = OBJ_NONE;
1054 + size_t size;
1055 + void *contents = NULL;
1056 + int eaten = 0;
1057 + struct object_info oi = OBJECT_INFO_INIT;
1058 + struct object_id real_oid = *null_oid(data->source->base.odb->repo->hash_algo);
1059 + int err = 0;
1060 +
1061 + oi.sizep = &size;
1062 + oi.typep = &type;
1063 +
1064 + if (read_loose_object(data->source->base.odb->repo,
1065 + path, oid, &real_oid, &contents, &oi) < 0) {
1066 + if (contents && !oideq(&real_oid, oid))
1067 + err = error(_("%s: hash-path mismatch, found at: %s"),
1068 + oid_to_hex(&real_oid), path);
1069 + else
1070 + err = error(_("%s: object corrupt or missing: %s"),
1071 + oid_to_hex(oid), path);
1072 + }
1073 + if (err < 0)
1074 + goto out;
1075 +
1076 + if (!contents && type != OBJ_BLOB)
1077 + BUG("read_loose_object streamed a non-blob");
1078 +
1079 + if (data->opts->object_cb(oid, type, size, contents, &eaten,
1080 + data->opts->object_payload)) {
1081 + err = -1;
1082 + goto out;
1083 + }
1084 +
1085 + out:
1086 + if (err)
1087 + data->error_found = true;
1088 + if (!eaten)
1089 + free(contents);
1090 + return 0; /* keep checking other objects, even if we saw an error */
1091 + }
1092 +
1093 + static int fsck_cruft(const char *basename, const char *path,
1094 + void *data UNUSED)
1095 + {
1096 + if (!starts_with(basename, "tmp_obj_"))
1097 + fprintf_ln(stderr, _("bad sha1 file: %s"), path);
1098 + return 0;
1099 + }
1100 +
1101 + static int fsck_subdir(unsigned int nr, const char *path UNUSED, void *cb_data)
1102 + {
1103 + struct fsck_loose_data *data = cb_data;
1104 + display_progress(data->progress, nr + 1);
1105 + return 0;
1106 + }
1107 +
1108 + static int odb_source_loose_fsck(struct odb_source *source,
1109 + struct odb_fsck_options *opts)
1110 + {
1111 + struct odb_source_loose *loose = odb_source_loose_downcast(source);
1112 + struct fsck_loose_data data = {
1113 + .source = loose,
1114 + .opts = opts,
1115 + };
1116 +
1117 + if (opts->flags & ODB_FSCK_VERBOSE)
1118 + fprintf_ln(stderr, _("Checking object directory"));
1119 +
1120 + if (opts->flags & ODB_FSCK_PROGRESS)
1121 + data.progress = start_progress(source->odb->repo,
1122 + _("Checking object directories"), 256);
1123 +
1124 + for_each_loose_file_in_source(source, fsck_loose,
1125 + fsck_cruft, fsck_subdir, &data);
1126 + display_progress(data.progress, 256);
1127 + stop_progress(&data.progress);
1128 +
1129 + return data.error_found ? -1 : 0;
1130 + }
1131 +
1031 1132 struct odb_source_loose *odb_source_loose_new(struct object_database *odb,
1032 1133 const char *path,
1033 1134 bool local)
@@ -1040,6 +1141,7 @@ struct odb_source_loose *odb_source_loose_new(struct object_database *odb,
1040 1141 loose->base.free = odb_source_loose_free;
1041 1142 loose->base.close = odb_source_loose_close;
1042 1143 loose->base.prepare = odb_source_loose_prepare;
1144 + loose->base.fsck = odb_source_loose_fsck;
1043 1145 loose->base.read_object_info = odb_source_loose_read_object_info;
1044 1146 loose->base.read_object_stream = odb_source_loose_read_object_stream;
1045 1147 loose->base.for_each_object = odb_source_loose_for_each_object;
@@ -1053,7 +1155,9 @@ struct odb_source_loose *odb_source_loose_new(struct object_database *odb,
1053 1155 loose->base.write_alternate = odb_source_loose_write_alternate;
1054 1156
1055 1157 if (!is_absolute_path(loose->base.path))
1056 - chdir_notify_register(NULL, odb_source_loose_reparent, loose);
1158 + chdir_notify_register(odb_source_loose_reparent, loose);
1159 +
1160 + loose_object_map_load(loose);
1057 1161
1058 1162 return loose;
1059 1163 }
modified odb/source-loose.h
@@ -41,7 +41,9 @@ struct odb_source_loose *odb_source_loose_new(struct object_database *odb,
41 41 static inline struct odb_source_loose *odb_source_loose_downcast(struct odb_source *source)
42 42 {
43 43 if (source->type != ODB_SOURCE_LOOSE)
44 - BUG("trying to downcast source of type '%d' to loose", source->type);
44 + BUG("trying to downcast source of type '%s' to '%s'",
45 + odb_source_type_to_name(source->type),
46 + odb_source_type_to_name(ODB_SOURCE_LOOSE));
45 47 return container_of(source, struct odb_source_loose, base);
46 48 }
47 49
modified odb/source-packed.c
@@ -2,44 +2,87 @@
2 2 #include "abspath.h"
3 3 #include "chdir-notify.h"
4 4 #include "dir.h"
5 + #include "gettext.h"
6 + #include "fsck.h"
5 7 #include "git-zlib.h"
8 + #include "hex.h"
6 9 #include "list-objects-filter-options.h"
7 10 #include "mergesort.h"
8 11 #include "midx.h"
9 12 #include "odb/source-packed.h"
10 13 #include "odb/streaming.h"
14 + #include "pack.h"
15 + #include "pack-revindex.h"
11 16 #include "packfile.h"
12 17 #include "pack-bitmap.h"
18 + #include "strbuf.h"
19 + #include "progress.h"
20 + #include "run-command.h"
13 21
14 22 static int find_pack_entry(struct odb_source_packed *store,
15 23 const struct object_id *oid,
16 - struct pack_entry *e)
24 + struct pack_entry *e,
25 + enum object_info_flags flags,
26 + struct packed_git **bad_pack)
17 27 {
18 28 struct packfile_list_entry *l;
29 + enum midx_fill_result midx_result = MIDX_FILL_MISS;
19 30
20 31 odb_source_prepare(&store->base, 0);
21 - if (store->midx && fill_midx_entry(store->midx, oid, e))
22 - return 1;
32 + if (store->midx) {
33 + midx_result = midx_fill_entry(store->midx, oid, e, bad_pack);
34 + if (midx_result == MIDX_FILL_HIT)
35 + return 1;
36 + }
23 37
24 38 for (l = store->packs.head; l; l = l->next) {
25 39 struct packed_git *p = l->pack;
26 40
27 - if (!p->multi_pack_index && packfile_fill_entry(p, oid, e)) {
41 + if (!p->multi_pack_index && packfile_fill_entry(p, oid, e, bad_pack)) {
28 42 if (!store->skip_mru_updates)
29 43 packfile_list_prepend(&store->packs, p);
30 44 return 1;
31 45 }
32 46 }
33 47
48 + /*
49 + * Recovery for a concurrent-repack race: a stale MIDX may still name a
50 + * vanished owning pack even though the object survives in another pack
51 + * the same MIDX covers. The regular fallback above skips MIDX-covered
52 + * packs, and repreparing the on-disk pack set does not reload the
53 + * borrowed, cached MIDX, so scan its packs directly for the survivor.
54 + *
55 + * Do this only on the second read, by which point repreparing packs has
56 + * already had a chance to find an object merely relocated into a new,
57 + * uncovered pack; only a genuine hidden duplicate reaches here.
58 + */
59 + if (midx_result == MIDX_FILL_OWNER_UNAVAILABLE &&
60 + (flags & OBJECT_INFO_SECOND_READ)) {
61 + struct multi_pack_index *m = store->midx;
62 + uint32_t i;
63 +
64 + for (i = 0; i < m->num_packs + m->num_packs_in_base; i++) {
65 + struct packed_git *p;
66 +
67 + if (prepare_midx_pack(m, i))
68 + continue;
69 + p = nth_midxed_pack(m, i);
70 + if (p && packfile_fill_entry(p, oid, e, bad_pack))
71 + return 1;
72 + }
73 + }
74 +
34 75 return 0;
35 76 }
36 77
37 - static int odb_source_packed_read_object_info(struct odb_source *source,
38 - const struct object_id *oid,
39 - struct object_info *oi,
40 - enum object_info_flags flags)
78 + static enum odb_read_status odb_source_packed_read_object_info(struct odb_source *source,
79 + const struct object_id *oid,
80 + struct object_info *oi,
81 + enum object_info_flags flags,
82 + struct strbuf *errmsg)
41 83 {
42 84 struct odb_source_packed *packed = odb_source_packed_downcast(source);
85 + struct packed_git *bad_pack = NULL;
43 86 struct pack_entry e;
44 87 int ret;
45 88
@@ -51,33 +94,55 @@ static int odb_source_packed_read_object_info(struct odb_source *source,
51 94 if (flags & OBJECT_INFO_SECOND_READ)
52 95 odb_source_prepare(source, ODB_PREPARE_FLUSH_CACHES);
53 96
54 - if (!find_pack_entry(packed, oid, &e))
55 - return 1;
97 + if (!find_pack_entry(packed, oid, &e, flags, &bad_pack)) {
98 + /*
99 + * The lookup may have failed because the object is known to be
100 + * corrupt in one of the packfiles. Report the object as
101 + * corrupt instead of missing in that case.
102 + */
103 + if (bad_pack) {
104 + ret = -1;
105 + goto out;
106 + }
107 +
108 + ret = ODB_READ_NOT_FOUND;
109 + goto out;
110 + }
56 111
57 112 /*
58 113 * We know that the caller doesn't actually need the
59 114 * information below, so return early.
60 115 */
61 - if (!oi)
62 - return 0;
116 + if (!oi) {
117 + ret = 0;
118 + goto out;
119 + }
63 120
64 121 ret = packed_object_info(packed, e.p, e.offset, oi);
65 122 if (ret < 0) {
123 + bad_pack = e.p;
66 124 mark_bad_packed_object(e.p, oid);
67 - return -1;
125 + goto out;
68 126 }
69 127
70 - return 0;
128 + ret = 0;
129 +
130 + out:
131 + if (ret < 0 && bad_pack && errmsg)
132 + strbuf_addf(errmsg, _("packed object %s (stored in %s) is corrupt"),
133 + oid_to_hex(oid), bad_pack->pack_name);
134 +
135 + return ret;
71 136 }
72 137
73 - static int odb_source_packed_read_object_stream(struct odb_read_stream **out,
138 + static int odb_source_packed_read_object_stream(struct odb_stream **out,
74 139 struct odb_source *source,
75 140 const struct object_id *oid)
76 141 {
77 142 struct odb_source_packed *packed = odb_source_packed_downcast(source);
78 143 struct pack_entry e;
79 144
80 - if (!find_pack_entry(packed, oid, &e))
145 + if (!find_pack_entry(packed, oid, &e, 0, NULL))
81 146 return -1;
82 147
83 148 return packfile_read_object_stream(out, oid, e.p, e.offset);
@@ -583,7 +648,7 @@ static int odb_source_packed_freshen_object(struct odb_source *source,
583 648 timesp = &times;
584 649 }
585 650
586 - if (!find_pack_entry(packed, oid, &e))
651 + if (!find_pack_entry(packed, oid, &e, 0, NULL))
587 652 return 0;
588 653 if (e.p->is_cruft)
589 654 return 0;
@@ -609,8 +674,7 @@ static int odb_source_packed_write_object(struct odb_source *source UNUSED,
609 674 }
610 675
611 676 static int odb_source_packed_write_object_stream(struct odb_source *source UNUSED,
612 - struct odb_write_stream *stream UNUSED,
613 - size_t len UNUSED,
677 + struct odb_stream *stream UNUSED,
614 678 struct object_id *oid UNUSED)
615 679 {
616 680 return error("packed backend cannot write object streams");
@@ -786,8 +850,7 @@ static void odb_source_packed_prepare(struct odb_source *source,
786 850 packed->initialized = true;
787 851 }
788 852
789 - static void odb_source_packed_reparent(const char *name UNUSED,
790 - const char *old_cwd,
853 + static void odb_source_packed_reparent(const char *old_cwd,
791 854 const char *new_cwd,
792 855 void *cb_data)
793 856 {
@@ -816,8 +879,9 @@ static void odb_source_packed_free(struct odb_source *source)
816 879 {
817 880 struct odb_source_packed *packed = odb_source_packed_downcast(source);
818 881
819 - chdir_notify_unregister(NULL, odb_source_packed_reparent, packed);
882 + chdir_notify_unregister(odb_source_packed_reparent, packed);
820 883
884 + odb_source_close(source);
821 885 for (struct packfile_list_entry *e = packed->packs.head; e; e = e->next)
822 886 free(e->pack);
823 887 packfile_list_clear(&packed->packs);
@@ -827,6 +891,117 @@ static void odb_source_packed_free(struct odb_source *source)
827 891 free(packed);
828 892 }
829 893
894 + static int verify_packs(struct odb_source_packed *source,
895 + struct odb_fsck_options *opts)
896 + {
897 + struct progress *progress = NULL;
898 + struct packfile_list_entry *e;
899 + uint32_t total = 0, count = 0;
900 + int ret = 0;
901 +
902 + if (opts->flags & ODB_FSCK_PROGRESS) {
903 + for (e = packfile_store_get_packs(source); e; e = e->next) {
904 + if (open_pack_index(e->pack))
905 + continue;
906 + total += e->pack->num_objects;
907 + }
908 +
909 + progress = start_progress(source->base.odb->repo,
910 + _("Checking objects"), total);
911 + }
912 +
913 + for (e = packfile_store_get_packs(source); e; e = e->next) {
914 + /* verify gives error messages itself */
915 + if (verify_pack(source->base.odb->repo, e->pack,
916 + opts->object_cb, opts->object_payload,
917 + progress, count))
918 + ret = -1;
919 + count += e->pack->num_objects;
920 + }
921 + stop_progress(&progress);
922 +
923 + return ret;
924 + }
925 +
926 + static int verify_reverse_indices(struct odb_source_packed *source,
927 + struct odb_fsck_options *opts)
928 + {
929 + struct progress *progress = NULL;
930 + struct packfile_list_entry *e;
931 + uint32_t pack_count = 0;
932 + int res = 0;
933 +
934 + if (opts->flags & ODB_FSCK_PROGRESS) {
935 + for (e = packfile_store_get_packs(source); e; e = e->next)
936 + pack_count++;
937 + progress = start_delayed_progress(source->base.odb->repo,
938 + "Verifying reverse pack-indexes", pack_count);
939 + pack_count = 0;
940 + }
941 +
942 + for (e = packfile_store_get_packs(source); e; e = e->next) {
943 + int load_error = load_pack_revindex_from_disk(e->pack);
944 +
945 + if (load_error < 0) {
946 + error(_("unable to load rev-index for pack '%s'"), e->pack->pack_name);
947 + res = -1;
948 + } else if (!load_error &&
949 + !load_pack_revindex(source->base.odb->repo, e->pack) &&
950 + verify_pack_revindex(e->pack)) {
951 + error(_("invalid rev-index for pack '%s'"), e->pack->pack_name);
952 + res = -1;
953 + }
954 + display_progress(progress, ++pack_count);
955 + }
956 + stop_progress(&progress);
957 +
958 + return res;
959 + }
960 +
961 + static int verify_midx(struct odb_source_packed *source,
962 + struct odb_fsck_options *opts)
963 + {
964 + struct child_process midx_verify = CHILD_PROCESS_INIT;
965 +
966 + prepare_repo_settings(source->base.odb->repo);
967 + if (!source->base.odb->repo->settings.core_multi_pack_index)
968 + return 0;
969 +
970 + child_process_init(&midx_verify);
971 + midx_verify.git_cmd = 1;
972 + strvec_pushl(&midx_verify.args, "multi-pack-index",
973 + "verify", "--object-dir", source->base.path, NULL);
974 + if (opts->flags & ODB_FSCK_PROGRESS)
975 + strvec_push(&midx_verify.args, "--progress");
976 + else
977 + strvec_push(&midx_verify.args, "--no-progress");
978 + if (run_command(&midx_verify))
979 + return -1;
980 +
981 + return 0;
982 + }
983 +
984 + static int odb_source_packed_fsck(struct odb_source *source,
985 + struct odb_fsck_options *opts)
986 + {
987 + struct odb_source_packed *packed = odb_source_packed_downcast(source);
988 + int ret = 0;
989 +
990 + if ((opts->flags & ODB_FSCK_FULL) && verify_packs(packed, opts) < 0)
991 + ret = -1;
992 +
993 + if (verify_reverse_indices(packed, opts) < 0)
994 + ret = -1;
995 +
996 + if (verify_bitmap_files(packed))
997 + ret = -1;
998 +
999 + if (verify_midx(packed, opts) < 0)
1000 + ret = -1;
1001 +
1002 + return ret;
1003 + }
1004 +
830 1005 struct odb_source_packed *odb_source_packed_new(struct object_database *odb,
831 1006 const char *path,
832 1007 bool local)
@@ -840,6 +1015,7 @@ struct odb_source_packed *odb_source_packed_new(struct object_database *odb,
840 1015 packed->base.free = odb_source_packed_free;
841 1016 packed->base.close = odb_source_packed_close;
842 1017 packed->base.prepare = odb_source_packed_prepare;
1018 + packed->base.fsck = odb_source_packed_fsck;
843 1019 packed->base.read_object_info = odb_source_packed_read_object_info;
844 1020 packed->base.read_object_stream = odb_source_packed_read_object_stream;
845 1021 packed->base.for_each_object = odb_source_packed_for_each_object;
@@ -853,7 +1029,7 @@ struct odb_source_packed *odb_source_packed_new(struct object_database *odb,
853 1029 packed->base.write_alternate = odb_source_packed_write_alternate;
854 1030
855 1031 if (!is_absolute_path(path))
856 - chdir_notify_register(NULL, odb_source_packed_reparent, packed);
1032 + chdir_notify_register(odb_source_packed_reparent, packed);
857 1033
858 1034 return packed;
859 1035 }
modified odb/source-packed.h
@@ -78,7 +78,9 @@ struct odb_source_packed *odb_source_packed_new(struct object_database *odb,
78 78 static inline struct odb_source_packed *odb_source_packed_downcast(struct odb_source *source)
79 79 {
80 80 if (source->type != ODB_SOURCE_PACKED)
81 - BUG("trying to downcast source of type '%d' to packed", source->type);
81 + BUG("trying to downcast source of type '%s' to '%s'",
82 + odb_source_type_to_name(source->type),
83 + odb_source_type_to_name(ODB_SOURCE_PACKED));
82 84 return container_of(source, struct odb_source_packed, base);
83 85 }
84 86
modified odb/source.c
@@ -4,6 +4,25 @@
4 4 #include "odb/source.h"
5 5 #include "packfile.h"
6 6
7 + static const char * const odb_source_names_by_type[] = {
8 + [ODB_SOURCE_UNKNOWN] = "unknown",
9 + [ODB_SOURCE_FILES] = "files",
10 + [ODB_SOURCE_LOOSE] = "loose",
11 + [ODB_SOURCE_PACKED] = "packed",
12 + [ODB_SOURCE_INMEMORY] = "in-memory",
13 + };
14 +
15 + const char *odb_source_type_to_name(enum odb_source_type type)
16 + {
17 + const char *name;
18 + if (type < 0 || type >= ARRAY_SIZE(odb_source_names_by_type))
19 + type = ODB_SOURCE_UNKNOWN;
20 + name = odb_source_names_by_type[type];
21 + if (!name)
22 + BUG("name missing in `odb_source_names_by_type` for '%d'", type);
23 + return name;
24 + }
25 +
7 26 struct odb_source *odb_source_new(struct object_database *odb,
8 27 const char *path,
9 28 bool local)
modified odb/source.h
@@ -1,6 +1,7 @@
1 1 #ifndef ODB_SOURCE_H
2 2 #define ODB_SOURCE_H
3 3
4 + #include "hashmap.h"
4 5 #include "object.h"
5 6 #include "odb.h"
6 7 #include "odb/transaction.h"
@@ -25,8 +26,15 @@ enum odb_source_type {
25 26 ODB_SOURCE_INMEMORY,
26 27 };
27 28
29 + /*
30 + * Convert between the enum and its name. Returns the equivalent of "unknown"
31 + * for unknown types.
32 + */
33 + const char *odb_source_type_to_name(enum odb_source_type type);
34 +
28 35 struct object_id;
29 - struct odb_read_stream;
36 + struct odb_stream;
37 + struct strbuf;
30 38 struct strvec;
31 39
32 40 /*
@@ -44,6 +52,12 @@ struct strvec;
44 52 struct odb_source {
45 53 struct odb_source *next;
46 54
55 + /*
56 + * Entry in the object database's map of sources, keyed by this
57 + * source's path.
58 + */
59 + struct hashmap_entry by_path_entry;
60 +
47 61 /* Object database that owns this object source. */
48 62 struct object_database *odb;
49 63
@@ -83,6 +97,18 @@ struct odb_source {
83 97 */
84 98 void (*close)(struct odb_source *source);
85 99
100 + /*
101 + * This callback is expected to create on-disk data structures that are
102 + * required for this source to operate.
103 + *
104 + * The callback is expected to return 0 on success, a negative error
105 + * code otherwise.
106 + *
107 + * This callback may be NULL in case the source does not need any
108 + * on-disk setup.
109 + */
110 + int (*create_on_disk)(struct odb_source *source);
111 +
86 112 /*
87 113 * This callback is expected to prepare the source so that it becomes
88 114 * ready for use. It optionally clears underlying caches of the object
@@ -110,13 +136,17 @@ struct odb_source {
110 136 * second read in case they know that the first read would have
111 137 * already surfaced the object without reloading any on-disk state.
112 138 *
113 - * The callback is expected to return a negative error code in case
114 - * reading the object has failed, 0 otherwise.
139 + * The callback is expected to return an `enum odb_read_status`. Please
140 + * refer to the individual values that can be returned. In case reading
141 + * the object has failed with a generic error and `errmsg` is non-NULL,
142 + * the callback is expected to populate it with a human-readable
143 + * message that describes the failure.
115 144 */
116 - int (*read_object_info)(struct odb_source *source,
117 - const struct object_id *oid,
118 - struct object_info *oi,
119 - enum object_info_flags flags);
145 + enum odb_read_status (*read_object_info)(struct odb_source *source,
146 + const struct object_id *oid,
147 + struct object_info *oi,
148 + enum object_info_flags flags,
149 + struct strbuf *errmsg);
120 150
121 151 /*
122 152 * This callback is expected to create a new read stream that can be
@@ -125,7 +155,7 @@ struct odb_source {
125 155 * The callback is expected to return a negative error code in case
126 156 * creating the object stream has failed, 0 otherwise.
127 157 */
128 - int (*read_object_stream)(struct odb_read_stream **out,
158 + int (*read_object_stream)(struct odb_stream **out,
129 159 struct odb_source *source,
130 160 const struct object_id *oid);
131 161
@@ -221,7 +251,7 @@ struct odb_source {
221 251 * otherwise.
222 252 */
223 253 int (*write_object_stream)(struct odb_source *source,
224 - struct odb_write_stream *stream, size_t len,
254 + struct odb_stream *stream,
225 255 struct object_id *oid);
226 256
227 257 /*
@@ -263,6 +293,49 @@ struct odb_source {
263 293 */
264 294 int (*write_alternate)(struct odb_source *source,
265 295 const char *alternate);
296 +
297 + /*
298 + * This callback is expected to optimize the object database source.
299 + * Returns 0 on success, a negative error code otherwise.
300 + */
301 + int (*optimize)(struct odb_source *source,
302 + const struct odb_optimize_options *opts);
303 +
304 + /*
305 + * This callback is expected to check whether optimization of the
306 + * object database source is required given the provided options.
307 + * Returns true if optimization should be performed, false otherwise.
308 + */
309 + bool (*optimize_required)(struct odb_source *source,
310 + const struct odb_optimize_options *opts);
311 +
312 + /*
313 + * This callback is expected to start generating a packfile with the
314 + * given options. The pack shall be generated asynchronously so that
315 + * the caller can consume the pack data and progress output while the
316 + * pack is being generated.
317 + *
318 + * This callback is optional. Sources that cannot generate packfiles
319 + * shall leave it unset.
320 + *
321 + * The callback is expected to return 0 on success and populate the
322 + * `out` pointer with the pack generator, a negative error code
323 + * otherwise.
324 + */
325 + int (*generate_pack)(struct odb_source *source,
326 + struct odb_pack_generator **out,
327 + const struct odb_generate_pack_options *opts);
328 +
329 + /*
330 + * This callback is expected to check the integrity of the object source
331 + * and report any errors found via the fsck options. The checks performed
332 + * are backend-specific.
333 + *
334 + * The callback is expected to return 0 on success, a negative error
335 + * code otherwise.
336 + */
337 + int (*fsck)(struct odb_source *source,
338 + struct odb_fsck_options *options);
266 339 };
267 340
268 341 /*
@@ -312,6 +385,17 @@ static inline void odb_source_close(struct odb_source *source)
312 385 source->close(source);
313 386 }
314 387
388 + /*
389 + * Create on-disk data structures that are required for this source to operate
390 + * correctly. Returns 0 on success, a negative error code otherwise.
391 + */
392 + static inline int odb_source_create_on_disk(struct odb_source *source)
393 + {
394 + if (!source->create_on_disk)
395 + return 0;
396 + return source->create_on_disk(source);
397 + }
398 +
315 399 /*
316 400 * Prepare the object database source and clear any caches. Depending on the
317 401 * backend used this may have the effect that concurrently-written objects
@@ -325,21 +409,26 @@ static inline void odb_source_prepare(struct odb_source *source,
325 409
326 410 /*
327 411 * Read an object from the object database source identified by its object ID.
328 - * Returns 0 on success, a negative error code otherwise.
412 + * Please refer to `enum odb_read_status` for the individual error codes.
413 + *
414 + * In case reading the object has failed with a generic error and `errmsg` is
415 + * non-NULL it will be populated with a human-readable message that describes
416 + * the failure.
329 417 */
330 - static inline int odb_source_read_object_info(struct odb_source *source,
331 - const struct object_id *oid,
332 - struct object_info *oi,
333 - enum object_info_flags flags)
418 + static inline enum odb_read_status odb_source_read_object_info(struct odb_source *source,
419 + const struct object_id *oid,
420 + struct object_info *oi,
421 + enum object_info_flags flags,
422 + struct strbuf *errmsg)
334 423 {
335 - return source->read_object_info(source, oid, oi, flags);
424 + return source->read_object_info(source, oid, oi, flags, errmsg);
336 425 }
337 426
338 427 /*
339 428 * Create a new read stream for the given object ID. Returns 0 on success, a
340 429 * negative error code otherwise.
341 430 */
342 - static inline int odb_source_read_object_stream(struct odb_read_stream **out,
431 + static inline int odb_source_read_object_stream(struct odb_stream **out,
343 432 struct odb_source *source,
344 433 const struct object_id *oid)
345 434 {
@@ -436,11 +525,10 @@ static inline int odb_source_write_object(struct odb_source *source,
436 525 * out pointer for the object ID.
437 526 */
438 527 static inline int odb_source_write_object_stream(struct odb_source *source,
439 - struct odb_write_stream *stream,
440 - size_t len,
528 + struct odb_stream *stream,
441 529 struct object_id *oid)
442 530 {
443 - return source->write_object_stream(source, stream, len, oid);
531 + return source->write_object_stream(source, stream, oid);
444 532 }
445 533
446 534 /*
@@ -484,4 +572,51 @@ static inline int odb_source_begin_transaction(struct odb_source *source,
484 572 return source->begin_transaction(source, out, flags);
485 573 }
486 574
575 + /*
576 + * Optimize the object database source. Returns 0 on success, a negative error
577 + * code otherwise.
578 + */
579 + static inline int odb_source_optimize(struct odb_source *source,
580 + const struct odb_optimize_options *opts)
581 + {
582 + return source->optimize(source, opts);
583 + }
584 +
585 + /*
586 + * Check whether optimization of the object database source is required given
587 + * the provided options. Returns true if optimization should be performed,
588 + * false otherwise.
589 + */
590 + static inline bool odb_source_optimize_required(struct odb_source *source,
591 + const struct odb_optimize_options *opts)
592 + {
593 + return source->optimize_required(source, opts);
594 + }
595 +
596 + /*
597 + * Start generating a packfile from the given source with the given options.
598 + * The pack is generated asynchronously; the caller is expected to consume the
599 + * file descriptors exposed via the pack generator and to then wait for
600 + * completion via `odb_pack_generator_finish()`.
601 + *
602 + * Returns 0 on success and populates the `out` pointer with the pack
603 + * generator, a negative error code otherwise.
604 + */
605 + static inline int odb_source_generate_pack(struct odb_source *source,
606 + struct odb_pack_generator **out,
607 + const struct odb_generate_pack_options *opts)
608 + {
609 + return source->generate_pack(source, out, opts);
610 + }
611 +
612 + /*
613 + * Check the integrity of the object database source. The checks performed
614 + * are backend-specific. Returns 0 on success, a negative error code otherwise.
615 + */
616 + static inline int odb_source_fsck(struct odb_source *source,
617 + struct odb_fsck_options *opts)
618 + {
619 + return source->fsck(source, opts);
620 + }
621 +
487 622 #endif
modified odb/streaming.c
@@ -20,8 +20,8 @@
20 20 *****************************************************************/
21 21
22 22 struct odb_filtered_read_stream {
23 - struct odb_read_stream base;
24 - struct odb_read_stream *upstream;
23 + struct odb_stream base;
24 + struct odb_stream *upstream;
25 25 struct stream_filter *filter;
26 26 char ibuf[FILTER_BUFFER];
27 27 char obuf[FILTER_BUFFER];
@@ -30,14 +30,14 @@ struct odb_filtered_read_stream {
30 30 int input_finished;
31 31 };
32 32
33 - static int close_istream_filtered(struct odb_read_stream *_fs)
33 + static int close_istream_filtered(struct odb_stream *_fs)
34 34 {
35 35 struct odb_filtered_read_stream *fs = (struct odb_filtered_read_stream *)_fs;
36 36 free_stream_filter(fs->filter);
37 - return odb_read_stream_close(fs->upstream);
37 + return odb_stream_close(fs->upstream);
38 38 }
39 39
40 - static ssize_t read_istream_filtered(struct odb_read_stream *_fs, char *buf,
40 + static ssize_t read_istream_filtered(struct odb_stream *_fs, char *buf,
41 41 size_t sz)
42 42 {
43 43 struct odb_filtered_read_stream *fs = (struct odb_filtered_read_stream *)_fs;
@@ -86,7 +86,7 @@ static ssize_t read_istream_filtered(struct odb_read_stream *_fs, char *buf,
86 86
87 87 /* refill the input from the upstream */
88 88 if (!fs->input_finished) {
89 - fs->i_end = odb_read_stream_read(fs->upstream, fs->ibuf, FILTER_BUFFER);
89 + fs->i_end = odb_stream_read(fs->upstream, fs->ibuf, FILTER_BUFFER);
90 90 if (fs->i_end < 0)
91 91 return -1;
92 92 if (fs->i_end)
@@ -97,8 +97,8 @@ static ssize_t read_istream_filtered(struct odb_read_stream *_fs, char *buf,
97 97 return filled;
98 98 }
99 99
100 - static struct odb_read_stream *attach_stream_filter(struct odb_read_stream *st,
101 - struct stream_filter *filter)
100 + static struct odb_stream *attach_stream_filter(struct odb_stream *st,
101 + struct stream_filter *filter)
102 102 {
103 103 struct odb_filtered_read_stream *fs;
104 104
@@ -120,19 +120,19 @@ static struct odb_read_stream *attach_stream_filter(struct odb_read_stream *st,
120 120 *****************************************************************/
121 121
122 122 struct odb_incore_read_stream {
123 - struct odb_read_stream base;
123 + struct odb_stream base;
124 124 char *buf; /* from odb_read_object_info_extended() */
125 125 unsigned long read_ptr;
126 126 };
127 127
128 - static int close_istream_incore(struct odb_read_stream *_st)
128 + static int close_istream_incore(struct odb_stream *_st)
129 129 {
130 130 struct odb_incore_read_stream *st = (struct odb_incore_read_stream *)_st;
131 131 free(st->buf);
132 132 return 0;
133 133 }
134 134
135 - static ssize_t read_istream_incore(struct odb_read_stream *_st, char *buf, size_t sz)
135 + static ssize_t read_istream_incore(struct odb_stream *_st, char *buf, size_t sz)
136 136 {
137 137 struct odb_incore_read_stream *st = (struct odb_incore_read_stream *)_st;
138 138 size_t read_size = sz;
@@ -147,7 +147,7 @@ static ssize_t read_istream_incore(struct odb_read_stream *_st, char *buf, size_
147 147 return read_size;
148 148 }
149 149
150 - static int open_istream_incore(struct odb_read_stream **out,
150 + static int open_istream_incore(struct odb_stream **out,
151 151 struct object_database *odb,
152 152 const struct object_id *oid)
153 153 {
@@ -178,13 +178,12 @@ static int open_istream_incore(struct odb_read_stream **out,
178 178 * static helpers variables and functions for users of streaming interface
179 179 *****************************************************************************/
180 180
181 - static int istream_source(struct odb_read_stream **out,
181 + static int istream_source(struct odb_stream **out,
182 182 struct object_database *odb,
183 183 const struct object_id *oid)
184 184 {
185 185 struct odb_source *source;
186 186
187 - odb_prepare_alternates(odb);
188 187 for (source = odb->sources; source; source = source->next)
189 188 if (!odb_source_read_object_stream(out, source, oid))
190 189 return 0;
@@ -196,23 +195,23 @@ static int istream_source(struct odb_read_stream **out,
196 195 * Users of streaming interface
197 196 ****************************************************************/
198 197
199 - int odb_read_stream_close(struct odb_read_stream *st)
198 + int odb_stream_close(struct odb_stream *st)
200 199 {
201 200 int r = st->close(st);
202 201 free(st);
203 202 return r;
204 203 }
205 204
206 - ssize_t odb_read_stream_read(struct odb_read_stream *st, void *buf, size_t sz)
205 + ssize_t odb_stream_read(struct odb_stream *st, void *buf, size_t sz)
207 206 {
208 207 return st->read(st, buf, sz);
209 208 }
210 209
211 - struct odb_read_stream *odb_read_stream_open(struct object_database *odb,
212 - const struct object_id *oid,
213 - struct stream_filter *filter)
210 + struct odb_stream *odb_stream_from_object(struct object_database *odb,
211 + const struct object_id *oid,
212 + struct stream_filter *filter)
214 213 {
215 - struct odb_read_stream *st;
214 + struct odb_stream *st;
216 215 const struct object_id *real = lookup_replace_object(odb->repo, oid);
217 216 int ret = istream_source(&st, odb, real);
218 217
@@ -221,9 +220,9 @@ struct odb_read_stream *odb_read_stream_open(struct object_database *odb,
221 220
222 221 if (filter) {
223 222 /* Add "&& !is_null_stream_filter(filter)" for performance */
224 - struct odb_read_stream *nst = attach_stream_filter(st, filter);
223 + struct odb_stream *nst = attach_stream_filter(st, filter);
225 224 if (!nst) {
226 - odb_read_stream_close(st);
225 + odb_stream_close(st);
227 226 return NULL;
228 227 }
229 228 st = nst;
@@ -232,27 +231,17 @@ struct odb_read_stream *odb_read_stream_open(struct object_database *odb,
232 231 return st;
233 232 }
234 233
235 - ssize_t odb_write_stream_read(struct odb_write_stream *st, void *buf, size_t sz)
236 - {
237 - return st->read(st, buf, sz);
238 - }
239 -
240 - void odb_write_stream_release(struct odb_write_stream *st)
241 - {
242 - free(st->data);
243 - }
244 -
245 234 int odb_stream_blob_to_fd(struct object_database *odb,
246 235 int fd,
247 236 const struct object_id *oid,
248 237 struct stream_filter *filter,
249 238 int can_seek)
250 239 {
251 - struct odb_read_stream *st;
240 + struct odb_stream *st;
252 241 ssize_t kept = 0;
253 242 int result = -1;
254 243
255 - st = odb_read_stream_open(odb, oid, filter);
244 + st = odb_stream_from_object(odb, oid, filter);
256 245 if (!st) {
257 246 if (filter)
258 247 free_stream_filter(filter);
@@ -263,7 +252,7 @@ int odb_stream_blob_to_fd(struct object_database *odb,
263 252 for (;;) {
264 253 char buf[1024 * 16];
265 254 ssize_t wrote, holeto;
266 - ssize_t readlen = odb_read_stream_read(st, buf, sizeof(buf));
255 + ssize_t readlen = odb_stream_read(st, buf, sizeof(buf));
267 256
268 257 if (readlen < 0)
269 258 goto close_and_exit;
@@ -294,47 +283,53 @@ int odb_stream_blob_to_fd(struct object_database *odb,
294 283 result = 0;
295 284
296 285 close_and_exit:
297 - odb_read_stream_close(st);
286 + odb_stream_close(st);
298 287 return result;
299 288 }
300 289
301 - struct read_object_fd_data {
290 + struct fd_stream {
291 + struct odb_stream base;
302 292 int fd;
303 293 size_t remaining;
304 294 };
305 295
306 - static ssize_t read_object_fd(struct odb_write_stream *stream,
307 - unsigned char *buf, size_t len)
296 + static ssize_t fd_stream_read(struct odb_stream *stream,
297 + char *buf, size_t len)
308 298 {
309 - struct read_object_fd_data *data = stream->data;
299 + struct fd_stream *fds = container_of(stream, struct fd_stream, base);
310 300 ssize_t read_result;
311 301 size_t count;
312 302
313 - if (stream->is_finished)
303 + if (!fds->remaining)
314 304 return 0;
315 305
316 - count = data->remaining < len ? data->remaining : len;
317 - read_result = read_in_full(data->fd, buf, count);
306 + count = fds->remaining < len ? fds->remaining : len;
307 + read_result = read_in_full(fds->fd, buf, count);
318 308 if (read_result < 0 || (size_t)read_result != count)
319 309 return -1;
320 310
321 - data->remaining -= count;
322 - if (!data->remaining)
323 - stream->is_finished = 1;
311 + fds->remaining -= count;
324 312
325 313 return read_result;
326 314 }
327 315
328 - void odb_write_stream_from_fd(struct odb_write_stream *stream, int fd,
329 - size_t size)
316 + static int fd_stream_close(struct odb_stream *stream UNUSED)
317 + {
318 + /* The file descriptor is owned by the caller for now. */
319 + return 0;
320 + }
321 +
322 + struct odb_stream *odb_stream_from_fd(int fd, size_t size, enum object_type type)
330 323 {
331 - struct read_object_fd_data *data;
324 + struct fd_stream *fds;
332 325
333 - CALLOC_ARRAY(data, 1);
334 - data->fd = fd;
335 - data->remaining = size;
326 + CALLOC_ARRAY(fds, 1);
327 + fds->base.read = fd_stream_read;
328 + fds->base.close = fd_stream_close;
329 + fds->base.size = size;
330 + fds->base.type = type;
331 + fds->fd = fd;
332 + fds->remaining = size;
336 333
337 - stream->data = data;
338 - stream->read = read_object_fd;
339 - stream->is_finished = 0;
334 + return &fds->base;
340 335 }
modified odb/streaming.h
@@ -8,68 +8,53 @@
8 8 #include "odb.h"
9 9
10 10 struct object_database;
11 - struct odb_read_stream;
11 + struct odb_stream;
12 12 struct stream_filter;
13 13
14 - typedef int (*odb_read_stream_close_fn)(struct odb_read_stream *);
15 - typedef ssize_t (*odb_read_stream_read_fn)(struct odb_read_stream *, char *, size_t);
14 + typedef int (*odb_stream_close_fn)(struct odb_stream *);
15 + typedef ssize_t (*odb_stream_read_fn)(struct odb_stream *, char *, size_t);
16 16
17 17 /*
18 - * A stream that can be used to read an object from the object database without
19 - * loading all of it into memory.
18 + * A stream that can be used to read an object from or write an object into the
19 + * object database without loading all of it into memory.
20 20 */
21 - struct odb_read_stream {
22 - odb_read_stream_close_fn close;
23 - odb_read_stream_read_fn read;
21 + struct odb_stream {
22 + odb_stream_close_fn close;
23 + odb_stream_read_fn read;
24 24 enum object_type type;
25 25 size_t size; /* inflated size of full object */
26 26 };
27 27
28 28 /*
29 - * Create a new object stream for the given object database. An optional filter
30 - * can be used to transform the object's content.
29 + * Create a new object stream for the given object. An optional filter can be
30 + * used to transform the object's content.
31 31 *
32 32 * Returns the stream on success, a `NULL` pointer otherwise.
33 33 */
34 - struct odb_read_stream *odb_read_stream_open(struct object_database *odb,
35 - const struct object_id *oid,
36 - struct stream_filter *filter);
34 + struct odb_stream *odb_stream_from_object(struct object_database *odb,
35 + const struct object_id *oid,
36 + struct stream_filter *filter);
37 37
38 38 /*
39 - * Close the given read stream and release all resources associated with it.
39 + * Create a new object stream for the given file descriptor. This can be used
40 + * to, for example, stream an object into the object database. This function
41 + * does _not_ take ownership of the file descriptor. It's the responsibility of
42 + * the caller to close it after the stream has been closed.
43 + */
44 + struct odb_stream *odb_stream_from_fd(int fd, size_t size, enum object_type type);
45 +
46 + /*
47 + * Close the given object stream and release all resources associated with it.
40 48 * Returns 0 on success, a negative error code otherwise.
41 49 */
42 - int odb_read_stream_close(struct odb_read_stream *stream);
50 + int odb_stream_close(struct odb_stream *stream);
43 51
44 52 /*
45 53 * Read data from the stream into the buffer. Returns 0 on EOF and the number
46 54 * of bytes read on success. Returns a negative error code in case reading from
47 55 * the stream fails.
48 56 */
49 - ssize_t odb_read_stream_read(struct odb_read_stream *stream, void *buf, size_t len);
50 -
51 - /*
52 - * A stream that provides an object to be written to the object database without
53 - * loading all of it into memory.
54 - */
55 - struct odb_write_stream {
56 - ssize_t (*read)(struct odb_write_stream *, unsigned char *, size_t);
57 - void *data;
58 - int is_finished;
59 - };
60 -
61 - /*
62 - * Read data from the stream into the buffer. Returns 0 when finished and the
63 - * number of bytes read on success. Returns a negative error code in case
64 - * reading from the stream fails.
65 - */
66 - ssize_t odb_write_stream_read(struct odb_write_stream *stream, void *buf,
67 - size_t len);
68 -
69 - /*
70 - * Releases memory allocated for underlying stream data.
71 - */
72 - void odb_write_stream_release(struct odb_write_stream *stream);
57 + ssize_t odb_stream_read(struct odb_stream *stream, void *buf, size_t len);
73 58
74 59 /*
75 60 * Look up the object by its ID and write the full contents to the file
@@ -88,10 +73,4 @@ int odb_stream_blob_to_fd(struct object_database *odb,
88 73 struct stream_filter *filter,
89 74 int can_seek);
90 75
91 - /*
92 - * Sets up an ODB write stream that reads from an fd.
93 - */
94 - void odb_write_stream_from_fd(struct odb_write_stream *stream, int fd,
95 - size_t size);
96 -
97 76 #endif /* STREAMING_H */
modified odb/transaction.c
@@ -33,16 +33,37 @@ int odb_transaction_commit(struct odb_transaction *transaction)
33 33
34 34 ret = transaction->commit(transaction);
35 35 transaction->source->odb->transaction = NULL;
36 +
37 + return ret;
38 + }
39 +
40 + int odb_transaction_finalize(struct odb_transaction *transaction)
41 + {
42 + int ret = 0;
43 +
44 + if (!transaction)
45 + return 0;
46 +
47 + if (transaction->finalize)
48 + ret = transaction->finalize(transaction);
49 +
36 50 free(transaction);
37 51
38 52 return ret;
39 53 }
40 54
41 55 int odb_transaction_write_object_stream(struct odb_transaction *transaction,
42 - struct odb_write_stream *stream,
43 - size_t len, struct object_id *oid)
56 + struct odb_stream *stream,
57 + struct object_id *oid)
58 + {
59 + return transaction->write_object_stream(transaction, stream, oid);
60 + }
61 +
62 + int odb_transaction_write_pack(struct odb_transaction *transaction, int pack_fd,
63 + struct strbuf *err_msg,
64 + const struct odb_transaction_write_pack_opts *opts)
44 65 {
45 - return transaction->write_object_stream(transaction, stream, len, oid);
66 + return transaction->write_pack(transaction, pack_fd, err_msg, opts);
46 67 }
47 68
48 69 int odb_transaction_env(struct odb_transaction *transaction, struct strvec *env)
modified odb/transaction.h
@@ -4,6 +4,50 @@
4 4 #include "gettext.h"
5 5 #include "odb.h"
6 6
7 + /*
8 + * Options controlling how odb_transaction_write_pack() ingests a packfile.
9 + */
10 + struct odb_transaction_write_pack_opts {
11 + /*
12 + * Optional fsck severity configuration to apply when incoming objects
13 + * are verified.
14 + */
15 + const char *fsck_msg_types;
16 +
17 + /*
18 + * Path to an alternative shallow file describing the shallow boundaries
19 + * to honor while ingesting the pack.
20 + */
21 + const char *shallow_file;
22 +
23 + /*
24 + * The max size in bytes of the incoming packfile allowed. No limit is
25 + * enforced when set to 0.
26 + */
27 + off_t max_input_size;
28 +
29 + /*
30 + * Whether the validity of incoming objects should be verified.
31 + */
32 + int fsck_objects;
33 +
34 + /*
35 + * Whether to reject an incoming packfile if it is "thin".
36 + */
37 + int reject_thin;
38 +
39 + /*
40 + * Optional file descriptor for reporting progress and errors. Set to 0
41 + * for none.
42 + */
43 + int err_fd;
44 +
45 + /*
46 + * Suppresses progress reporting.
47 + */
48 + int quiet;
49 + };
50 +
7 51 /*
8 52 * A transaction may be started for an object database prior to writing new
9 53 * objects via odb_transaction_begin(). These objects are not committed until
@@ -22,17 +66,33 @@ struct odb_transaction {
22 66 */
23 67 int (*commit)(struct odb_transaction *transaction);
24 68
69 + /*
70 + * Optional ODB source specific callback invoked when the transaction
71 + * needs to perform any deferred cleanup after objects have been
72 + * committed. Returns 0 on success, a negative error code otherwise.
73 + */
74 + int (*finalize)(struct odb_transaction *transaction);
75 +
25 76 /*
26 77 * This callback is expected to write the given object stream into
27 - * the ODB transaction. Note that for now, only blobs support streaming.
78 + * the ODB transaction.
28 79 *
29 80 * The resulting object ID shall be written into the out pointer. The
30 81 * callback is expected to return 0 on success, a negative error code
31 82 * otherwise.
32 83 */
33 84 int (*write_object_stream)(struct odb_transaction *transaction,
34 - struct odb_write_stream *stream, size_t len,
85 + struct odb_stream *stream,
35 86 struct object_id *oid);
87 + /*
88 + * This callback is expected to ingest the packfile readable via
89 + * `pack_fd` into the transaction. Returns 0 on success, a negative
90 + * error code otherwise. On failure, a human-readable description is
91 + * appended to `err_msg`.
92 + */
93 + int (*write_pack)(struct odb_transaction *transaction, int pack_fd,
94 + struct strbuf *err_msg,
95 + const struct odb_transaction_write_pack_opts *opts);
36 96
37 97 /*
38 98 * This callback is expected to populate the provided strvec with the
@@ -75,14 +135,39 @@ static inline void odb_transaction_begin_or_die(struct object_database *odb,
75 135 */
76 136 int odb_transaction_commit(struct odb_transaction *transaction);
77 137
138 + /*
139 + * Finalizes an ODB transaction, performing any deferred cleanup and freeing it.
140 + * Must be called for every successfully started transaction. Note that, if the
141 + * specified transaction is NULL, the function is a no-op. Returns 0 on success,
142 + * a negative error code otherwise.
143 + */
144 + int odb_transaction_finalize(struct odb_transaction *transaction);
145 +
146 + static inline void odb_transaction_commit_and_finalize_or_die(struct odb_transaction *transaction)
147 + {
148 + if (odb_transaction_commit(transaction))
149 + die(_("failed to commit ODB transaction"));
150 + if (odb_transaction_finalize(transaction))
151 + die(_("failed to finalize ODB transaction"));
152 + }
153 +
78 154 /*
79 155 * Writes the object in the provided stream into the transaction. The resulting
80 156 * object ID is written into the out pointer. Returns 0 on success, a negative
81 157 * error code otherwise.
82 158 */
83 159 int odb_transaction_write_object_stream(struct odb_transaction *transaction,
84 - struct odb_write_stream *stream,
85 - size_t len, struct object_id *oid);
160 + struct odb_stream *stream,
161 + struct object_id *oid);
162 +
163 + /*
164 + * Ingests the packfile readable via `pack_fd` into the transaction. Returns 0
165 + * on success, a negative error code otherwise. On failure, a human-readable
166 + * description is appended to `err_msg`.
167 + */
168 + int odb_transaction_write_pack(struct odb_transaction *transaction, int pack_fd,
169 + struct strbuf *err_msg,
170 + const struct odb_transaction_write_pack_opts *opts);
86 171
87 172 /*
88 173 * Populates the provided strvec with the environment variables that a child
modified oss-fuzz/fuzz-pack-headers.c
@@ -9,7 +9,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
9 9 size_t len;
10 10
11 11 unpack_object_header_buffer((const unsigned char *)data,
12 - (unsigned long)size, &type, &len);
12 + size, &type, &len);
13 13
14 14 return 0;
15 15 }
modified pack-bitmap.c
@@ -717,7 +717,6 @@ static int open_bitmap(struct repository *r,
717 717
718 718 assert(!bitmap_git->map);
719 719
720 - odb_prepare_alternates(r->objects);
721 720 for (source = r->objects->sources; source; source = source->next) {
722 721 struct odb_source_files *files = odb_source_files_downcast(source);
723 722
@@ -1569,7 +1568,7 @@ static struct bitmap *find_objects(struct bitmap_index *bitmap_git,
1569 1568
1570 1569 if (base) {
1571 1570 int pos = bitmap_position(bitmap_git, &object->oid);
1572 - if (pos > 0 && bitmap_get(base, pos)) {
1571 + if (pos >= 0 && bitmap_get(base, pos)) {
1573 1572 object->flags |= SEEN;
1574 1573 continue;
1575 1574 }
@@ -3411,29 +3410,22 @@ static int verify_bitmap_file(const struct git_hash_algo *algop,
3411 3410 return res;
3412 3411 }
3413 3412
3414 - int verify_bitmap_files(struct repository *r)
3413 + int verify_bitmap_files(struct odb_source_packed *source)
3415 3414 {
3416 - struct odb_source *source;
3417 - struct packed_git *p;
3415 + struct packfile_list_entry *e;
3416 + struct multi_pack_index *m;
3418 3417 int res = 0;
3419 3418
3420 - odb_prepare_alternates(r->objects);
3421 - for (source = r->objects->sources; source; source = source->next) {
3422 - struct odb_source_files *files = odb_source_files_downcast(source);
3423 - struct multi_pack_index *m = get_multi_pack_index(files->packed);
3424 - char *midx_bitmap_name;
3425 -
3426 - if (!m)
3427 - continue;
3428 -
3429 - midx_bitmap_name = midx_bitmap_filename(m);
3430 - res |= verify_bitmap_file(r->hash_algo, midx_bitmap_name);
3419 + m = get_multi_pack_index(source);
3420 + if (m) {
3421 + char *midx_bitmap_name = midx_bitmap_filename(m);
3422 + res |= verify_bitmap_file(source->base.odb->repo->hash_algo, midx_bitmap_name);
3431 3423 free(midx_bitmap_name);
3432 3424 }
3433 3425
3434 - repo_for_each_pack(r, p) {
3435 - char *pack_bitmap_name = pack_bitmap_filename(p);
3436 - res |= verify_bitmap_file(r->hash_algo, pack_bitmap_name);
3426 + for (e = packfile_store_get_packs(source); e; e = e->next) {
3427 + char *pack_bitmap_name = pack_bitmap_filename(e->pack);
3428 + res |= verify_bitmap_file(source->base.odb->repo->hash_algo, pack_bitmap_name);
3437 3429 free(pack_bitmap_name);
3438 3430 }
3439 3431
modified pack-bitmap.h
@@ -205,7 +205,7 @@ int bitmap_is_midx(struct bitmap_index *bitmap_git);
205 205
206 206 int bitmap_is_preferred_refname(struct repository *r, const char *refname);
207 207
208 - int verify_bitmap_files(struct repository *r);
208 + int verify_bitmap_files(struct odb_source_packed *source);
209 209
210 210 struct ewah_bitmap *read_bitmap(const unsigned char *map,
211 211 size_t map_size, size_t *map_pos);
modified pack-check.c
@@ -34,7 +34,7 @@ int check_pack_crc(struct packed_git *p, struct pack_window **w_curs,
34 34 uint32_t data_crc = crc32(0, NULL, 0);
35 35
36 36 do {
37 - unsigned long avail;
37 + size_t avail;
38 38 void *data = use_pack(p, w_curs, offset, &avail);
39 39 if (avail > len)
40 40 avail = len;
@@ -71,7 +71,7 @@ static int verify_packfile(struct repository *r,
71 71
72 72 git_hash_init(&ctx, r->hash_algo);
73 73 do {
74 - unsigned long remaining;
74 + size_t remaining;
75 75 unsigned char *in = use_pack(p, w_curs, offset, &remaining);
76 76 offset += remaining;
77 77 if (!pack_sig_ofs)
@@ -106,7 +106,7 @@ static int verify_packfile(struct repository *r,
106 106 QSORT(entries, nr_objects, compare_entries);
107 107
108 108 for (i = 0; i < nr_objects; i++) {
109 - struct odb_read_stream *stream = NULL;
109 + struct odb_stream *stream = NULL;
110 110 void *data;
111 111 struct object_id oid;
112 112 enum object_type type;
@@ -171,7 +171,7 @@ static int verify_packfile(struct repository *r,
171 171 display_progress(progress, base_count + i);
172 172
173 173 if (stream)
174 - odb_read_stream_close(stream);
174 + odb_stream_close(stream);
175 175 free(data);
176 176 }
177 177
modified pack-write.c
@@ -469,10 +469,11 @@ void fixup_pack_header_footer(const struct git_hash_algo *hash_algo,
469 469 fsync_component_or_die(FSYNC_COMPONENT_PACK, pack_fd, pack_name);
470 470 }
471 471
472 - char *index_pack_lockfile(struct repository *r, int ip_out, int *is_well_formed)
472 + char *index_pack_lockfile(struct odb_source *source, int ip_out,
473 + int *is_well_formed)
473 474 {
474 475 char packname[GIT_MAX_HEXSZ + 6];
475 - const int len = r->hash_algo->hexsz + 6;
476 + const int len = source->odb->repo->hash_algo->hexsz + 6;
476 477
477 478 /*
478 479 * The first thing we expect from index-pack's output
@@ -489,7 +490,7 @@ char *index_pack_lockfile(struct repository *r, int ip_out, int *is_well_formed)
489 490 packname[len-1] = 0;
490 491 if (skip_prefix(packname, "keep\t", &name))
491 492 return xstrfmt("%s/pack/pack-%s.keep",
492 - repo_get_object_directory(r), name);
493 + source->path, name);
493 494 return NULL;
494 495 }
495 496 if (is_well_formed)
modified pack.h
@@ -7,6 +7,7 @@
7 7 struct packed_git;
8 8 struct pack_window;
9 9 struct repository;
10 + struct odb_source;
10 11
11 12 /*
12 13 * Packed object header
@@ -105,7 +106,8 @@ off_t write_pack_header(struct hashfile *f, uint32_t);
105 106 void fixup_pack_header_footer(const struct git_hash_algo *, int,
106 107 unsigned char *, const char *, uint32_t,
107 108 unsigned char *, off_t);
108 - char *index_pack_lockfile(struct repository *r, int fd, int *is_well_formed);
109 + char *index_pack_lockfile(struct odb_source *source, int fd,
110 + int *is_well_formed);
109 111
110 112 struct ref;
111 113
modified packfile-list.c
@@ -57,11 +57,12 @@ void packfile_list_prepend(struct packfile_list *list, struct packed_git *pack)
57 57 list->tail = entry;
58 58 }
59 59
60 - void packfile_list_append(struct packfile_list *list, struct packed_git *pack)
60 + void packfile_list_append(struct packfile_list *list, struct packed_git *pack,
61 + int skip_dup_check)
61 62 {
62 63 struct packfile_list_entry *entry;
63 64
64 - entry = packfile_list_remove_internal(list, pack);
65 + entry = skip_dup_check ? NULL : packfile_list_remove_internal(list, pack);
65 66 if (!entry) {
66 67 entry = xmalloc(sizeof(*entry));
67 68 entry->pack = pack;
modified packfile-list.h
@@ -15,7 +15,8 @@ struct packfile_list_entry {
15 15 void packfile_list_clear(struct packfile_list *list);
16 16 void packfile_list_remove(struct packfile_list *list, struct packed_git *pack);
17 17 void packfile_list_prepend(struct packfile_list *list, struct packed_git *pack);
18 - void packfile_list_append(struct packfile_list *list, struct packed_git *pack);
18 + void packfile_list_append(struct packfile_list *list, struct packed_git *pack,
19 + int skip_dup_check);
19 20
20 21 /*
21 22 * Find the pack within the "packs" list whose index contains the object
modified packfile.c
@@ -620,7 +620,7 @@ static int in_window(struct repository *r, struct pack_window *win,
620 620 unsigned char *use_pack(struct packed_git *p,
621 621 struct pack_window **w_cursor,
622 622 off_t offset,
623 - unsigned long *left)
623 + size_t *left)
624 624 {
625 625 struct pack_window *win = *w_cursor;
626 626
@@ -781,7 +781,7 @@ void packfile_store_add_pack(struct odb_source_packed *store,
781 781 if (pack->pack_fd != -1)
782 782 pack_open_fds++;
783 783
784 - packfile_list_append(&store->packs, pack);
784 + packfile_list_append(&store->packs, pack, 1);
785 785 strmap_put(&store->packs_by_path, pack->pack_name, pack);
786 786 }
787 787
@@ -866,12 +866,11 @@ struct packfile_list_entry *packfile_store_get_packs(struct odb_source_packed *s
866 866 return store->packs.head;
867 867 }
868 868
869 - unsigned long unpack_object_header_buffer(const unsigned char *buf,
870 - unsigned long len, enum object_type *type, size_t *sizep)
869 + size_t unpack_object_header_buffer(const unsigned char *buf, size_t len,
870 + enum object_type *type, size_t *sizep)
871 871 {
872 872 unsigned shift;
873 - size_t size, c;
874 - unsigned long used = 0;
873 + size_t size, c, used = 0;
875 874
876 875 c = buf[used++];
877 876 *type = (c >> 4) & 7;
@@ -960,8 +959,7 @@ int unpack_object_header(struct packed_git *p,
960 959 size_t *sizep)
961 960 {
962 961 unsigned char *base;
963 - unsigned long left;
964 - unsigned long used;
962 + size_t left, used;
965 963 enum object_type type;
966 964
967 965 /* use_pack() assures us we have [base, base + 20) available
@@ -985,23 +983,6 @@ void mark_bad_packed_object(struct packed_git *p, const struct object_id *oid)
985 983 oidset_insert(&p->bad_objects, oid);
986 984 }
987 985
988 - const struct packed_git *has_packed_and_bad(struct repository *r,
989 - const struct object_id *oid)
990 - {
991 - struct odb_source *source;
992 -
993 - for (source = r->objects->sources; source; source = source->next) {
994 - struct odb_source_files *files = odb_source_files_downcast(source);
995 - struct packfile_list_entry *e;
996 -
997 - for (e = files->packed->packs.head; e; e = e->next)
998 - if (oidset_contains(&e->pack->bad_objects, oid))
999 - return e->pack;
1000 - }
1001 -
1002 - return NULL;
1003 - }
1004 -
1005 986 off_t get_delta_base(struct packed_git *p,
1006 987 struct pack_window **w_curs,
1007 988 off_t *curpos,
@@ -1859,13 +1840,17 @@ int is_pack_valid(struct packed_git *p)
1859 1840
1860 1841 int packfile_fill_entry(struct packed_git *p,
1861 1842 const struct object_id *oid,
1862 - struct pack_entry *e)
1843 + struct pack_entry *e,
1844 + struct packed_git **bad_pack)
1863 1845 {
1864 1846 off_t offset;
1865 1847
1866 1848 if (oidset_size(&p->bad_objects) &&
1867 - oidset_contains(&p->bad_objects, oid))
1849 + oidset_contains(&p->bad_objects, oid)) {
1850 + if (bad_pack && !*bad_pack)
1851 + *bad_pack = p;
1868 1852 return 0;
1853 + }
1869 1854
1870 1855 offset = find_pack_entry_one(oid, p);
1871 1856 if (!offset)
@@ -1938,10 +1923,9 @@ int has_object_pack(struct repository *r, const struct object_id *oid)
1938 1923 {
1939 1924 struct odb_source *source;
1940 1925
1941 - odb_prepare_alternates(r->objects);
1942 1926 for (source = r->objects->sources; source; source = source->next) {
1943 1927 struct odb_source_files *files = odb_source_files_downcast(source);
1944 - if (!odb_source_read_object_info(&files->packed->base, oid, NULL, 0))
1928 + if (!odb_source_read_object_info(&files->packed->base, oid, NULL, 0, NULL))
1945 1929 return 1;
1946 1930 }
1947 1931
@@ -1962,7 +1946,7 @@ int has_object_kept_pack(struct repository *r, const struct object_id *oid,
1962 1946
1963 1947 for (; *cache; cache++) {
1964 1948 struct packed_git *p = *cache;
1965 - if (packfile_fill_entry(p, oid, &e))
1949 + if (packfile_fill_entry(p, oid, &e, NULL))
1966 1950 return 1;
1967 1951 }
1968 1952 }
@@ -2115,7 +2099,7 @@ int parse_pack_header_option(const char *in, unsigned char *out, unsigned int *l
2115 2099 }
2116 2100
2117 2101 struct odb_packed_read_stream {
2118 - struct odb_read_stream base;
2102 + struct odb_stream base;
2119 2103 struct packed_git *pack;
2120 2104 git_zstream z;
2121 2105 enum {
@@ -2127,7 +2111,7 @@ struct odb_packed_read_stream {
2127 2111 off_t pos;
2128 2112 };
2129 2113
2130 - static ssize_t read_istream_pack_non_delta(struct odb_read_stream *_st, char *buf,
2114 + static ssize_t read_istream_pack_non_delta(struct odb_stream *_st, char *buf,
2131 2115 size_t sz)
2132 2116 {
2133 2117 struct odb_packed_read_stream *st = (struct odb_packed_read_stream *)_st;
@@ -2187,7 +2171,7 @@ static ssize_t read_istream_pack_non_delta(struct odb_read_stream *_st, char *bu
2187 2171 return total_read;
2188 2172 }
2189 2173
2190 - static int close_istream_pack_non_delta(struct odb_read_stream *_st)
2174 + static int close_istream_pack_non_delta(struct odb_stream *_st)
2191 2175 {
2192 2176 struct odb_packed_read_stream *st = (struct odb_packed_read_stream *)_st;
2193 2177 if (st->z_state == ODB_PACKED_READ_STREAM_INUSE)
@@ -2195,7 +2179,7 @@ static int close_istream_pack_non_delta(struct odb_read_stream *_st)
2195 2179 return 0;
2196 2180 }
2197 2181
2198 - int packfile_read_object_stream(struct odb_read_stream **out,
2182 + int packfile_read_object_stream(struct odb_stream **out,
2199 2183 const struct object_id *oid,
2200 2184 struct packed_git *pack,
2201 2185 off_t offset)
modified packfile.h
@@ -12,7 +12,7 @@
12 12
13 13 /* in odb.h */
14 14 struct object_info;
15 - struct odb_read_stream;
15 + struct odb_stream;
16 16
17 17 struct packed_git {
18 18 struct pack_window *windows;
@@ -77,8 +77,6 @@ static inline struct repo_for_each_pack_data repo_for_eack_pack_data_init(struct
77 77 {
78 78 struct repo_for_each_pack_data data = { 0 };
79 79
80 - odb_prepare_alternates(repo->objects);
81 -
82 80 for (struct odb_source *source = repo->objects->sources; source; source = source->next) {
83 81 struct odb_source_files *files = odb_source_files_downcast(source);
84 82 struct packfile_list_entry *entry = packfile_store_get_packs(files->packed);
@@ -240,7 +238,8 @@ uint32_t get_pack_fanout(struct packed_git *p, uint32_t value);
240 238
241 239 struct object_database;
242 240
243 - unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t, unsigned long *);
241 + unsigned char *use_pack(struct packed_git *, struct pack_window **, off_t,
242 + size_t *);
244 243 void close_pack_windows(struct packed_git *);
245 244 void close_pack(struct packed_git *);
246 245 void unuse_pack(struct pack_window **);
@@ -294,19 +293,21 @@ off_t find_pack_entry_one(const struct object_id *oid, struct packed_git *);
294 293
295 294 int packfile_fill_entry(struct packed_git *p,
296 295 const struct object_id *oid,
297 - struct pack_entry *e);
296 + struct pack_entry *e,
297 + struct packed_git **bad_pack);
298 298
299 299 int is_pack_valid(struct packed_git *);
300 300 void *unpack_entry(struct repository *r, struct packed_git *, off_t,
301 301 enum object_type *, size_t *);
302 - unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, size_t *sizep);
302 + size_t unpack_object_header_buffer(const unsigned char *buf, size_t len,
303 + enum object_type *type, size_t *sizep);
303 304 size_t get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
304 305 int unpack_object_header(struct packed_git *, struct pack_window **, off_t *, size_t *);
305 306 off_t get_delta_base(struct packed_git *p, struct pack_window **w_curs,
306 307 off_t *curpos, enum object_type type,
307 308 off_t delta_obj_offset);
308 309
309 - int packfile_read_object_stream(struct odb_read_stream **out,
310 + int packfile_read_object_stream(struct odb_stream **out,
310 311 const struct object_id *oid,
311 312 struct packed_git *pack,
312 313 off_t offset);
@@ -328,7 +329,6 @@ int packed_object_info_with_index_pos(struct odb_source_packed *source,
328 329 uint32_t *maybe_index_pos, struct object_info *oi);
329 330
330 331 void mark_bad_packed_object(struct packed_git *, const struct object_id *);
331 - const struct packed_git *has_packed_and_bad(struct repository *, const struct object_id *);
332 332
333 333 int has_object_pack(struct repository *r, const struct object_id *oid);
334 334 int has_object_kept_pack(struct repository *r, const struct object_id *oid,
modified parse-options.c
@@ -1414,6 +1414,8 @@ static enum parse_opt_result usage_with_options_internal(struct parse_opt_ctx_t
1414 1414
1415 1415 if (opts->type == OPTION_SUBCOMMAND)
1416 1416 continue;
1417 + if (!full && (opts->flags & PARSE_OPT_HIDDEN))
1418 + continue;
1417 1419 if (opts->type == OPTION_GROUP) {
1418 1420 fputc('\n', outfile);
1419 1421 need_newline = 0;
@@ -1421,8 +1423,6 @@ static enum parse_opt_result usage_with_options_internal(struct parse_opt_ctx_t
1421 1423 fprintf(outfile, "%s\n", _(opts->help));
1422 1424 continue;
1423 1425 }
1424 - if (!full && (opts->flags & PARSE_OPT_HIDDEN))
1425 - continue;
1426 1426
1427 1427 if (need_newline) {
1428 1428 fputc('\n', outfile);
modified parse-options.h
@@ -237,6 +237,11 @@ struct option {
237 237 .type = OPTION_GROUP, \
238 238 .help = (h), \
239 239 }
240 + #define OPT_HIDDEN_GROUP(h) { \
241 + .type = OPTION_GROUP, \
242 + .help = (h), \
243 + .flags = PARSE_OPT_HIDDEN, \
244 + }
240 245 #define OPT_BIT(s, l, v, h, b) OPT_BIT_F(s, l, v, h, b, 0)
241 246 #define OPT_BITOP(s, l, v, h, set, clear) { \
242 247 .type = OPTION_BITOP, \
modified parse.c
@@ -134,6 +134,15 @@ int git_parse_ssize_t(const char *value, ssize_t *ret)
134 134 return 1;
135 135 }
136 136
137 + int git_parse_size_t(const char *value, size_t *ret)
138 + {
139 + uintmax_t tmp;
140 + if (!git_parse_unsigned(value, &tmp, maximum_signed_value_of_type(size_t)))
141 + return 0;
142 + *ret = tmp;
143 + return 1;
144 + }
145 +
137 146 int git_parse_double(const char *value, double *ret)
138 147 {
139 148 char *end;
modified parse.h
@@ -4,6 +4,7 @@
4 4 int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
5 5 int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max);
6 6 int git_parse_ssize_t(const char *, ssize_t *);
7 + int git_parse_size_t(const char *, size_t *);
7 8 int git_parse_ulong(const char *, unsigned long *);
8 9 int git_parse_uint(const char *value, unsigned int *ret);
9 10 int git_parse_int(const char *value, int *ret);
modified pathspec.c
@@ -749,8 +749,8 @@ void clear_pathspec(struct pathspec *pathspec)
749 749 int i, j;
750 750
751 751 for (i = 0; i < pathspec->nr; i++) {
752 - free(pathspec->items[i].match);
753 - free(pathspec->items[i].original);
752 + free((void *)pathspec->items[i].match);
753 + free((void *)pathspec->items[i].original);
754 754
755 755 for (j = 0; j < pathspec->items[i].attr_match_nr; j++)
756 756 free(pathspec->items[i].attr_match[j].value);
modified pathspec.h
@@ -35,8 +35,8 @@ struct pathspec {
35 35 unsigned magic;
36 36 int max_depth;
37 37 struct pathspec_item {
38 - char *match;
39 - char *original;
38 + const char *match;
39 + const char *original;
40 40 unsigned magic;
41 41 int len, prefix;
42 42 int nowildcard_len;
modified po/AGENTS.md
@@ -93,17 +93,9 @@ msgstr ""
93 93
94 94 **CRITICAL**: Do **not** use `grep '^msgstr ""'` to find untranslated entries;
95 95 multi-line `msgstr` blocks use the same opening line, so grep gives false
96 - positives. Use `msgattrib` (next section).
97 -
98 -
99 - ### Locating untranslated, fuzzy, and obsolete entries
100 -
101 - Use `msgattrib` to list untranslated, fuzzy, and obsolete entries. Task 3
102 - (translating `po/XX.po`) uses these commands.
103 -
104 - - **Untranslated**: `msgattrib --untranslated --no-obsolete po/XX.po`
105 - - **Fuzzy**: `msgattrib --only-fuzzy --no-obsolete po/XX.po`
106 - - **Obsolete** (`#~`): `msgattrib --obsolete --no-wrap po/XX.po`
96 + positives. Use `git-po-helper msg-select` with `--untranslated` / `--fuzzy`
97 + (see Task 3), or `msgattrib` (e.g. `--untranslated`, `--only-fuzzy`,
98 + `--obsolete`).
107 99
108 100
109 101 ### Translating fuzzy entries
@@ -238,8 +230,19 @@ On failure, `msgfmt` prints the line number; fix the PO at that line.
238 230
239 231 [git-po-helper](https://github.com/git-l10n/git-po-helper) supports Git l10n with
240 232 **quality checking** (git-l10n PR conventions) and **AI-assisted translation**
241 - (subcommands for automated workflows). Housekeeping tasks in this document use
242 - it when available; otherwise rely on gettext tools.
233 + (subcommands for automated workflows). Task 3 (translating) and Task 4
234 + (reviewing) **require** `git-po-helper` **>= 0.9.1**. Task 1 and Task 2 use
235 + `make` / gettext tooling instead.
236 +
237 + **Version check**: Before Task 3 or Task 4, run:
238 +
239 + ```shell
240 + git-po-helper version --ge 0.9.1
241 + ```
242 +
243 + If the command is missing or the exit status is non-zero, print the error (use
244 + the command's own output when available) and **refuse** the task; do not
245 + continue.
243 246
244 247
245 248 #### Splitting large PO files
@@ -288,10 +291,10 @@ changed entries; otherwise it contains a valid PO header.
288 291 git-po-helper compare po/XX.po -o po/out.po
289 292
290 293 # Get full context of changes in a specific commit (parent vs commit)
291 - git-po-helper compare --commit <commit> po/XX.po -o po/out.po
294 + git-po-helper compare --json --commit <commit> po/XX.po -o po/out.json
292 295
293 296 # Get full context of changes since a commit (commit vs working tree)
294 - git-po-helper compare --since <commit> po/XX.po -o po/out.po
297 + git-po-helper compare --json --since <commit> po/XX.po -o po/out.json
295 298
296 299 # Get full context between two commits
297 300 git-po-helper compare -r <commit1>..<commit2> po/XX.po -o po/out.po
@@ -476,42 +479,32 @@ When asked to update `po/XX.po` (or the like):
476 479
477 480 ### Task 3: Translating po/XX.po
478 481
479 - To translate `po/XX.po`, use the steps below. The script uses gettext or
480 - `git-po-helper` depending on what is installed; JSON export (when available)
481 - supports batch translation rather than per-entry work.
482 + To translate `po/XX.po`, use the steps below. **Require** `git-po-helper` (see
483 + "Using git-po-helper" for the version check); without a passing check, refuse
484 + the task. Batches are GETTEXT JSON for translation.
482 485
483 486 **Workflow loop**: Steps 1→2→3→4→5→6→7 form a loop. After step 6 succeeds,
484 487 **always** go to step 7, which returns to step 1. The **only** exit to step 8
485 - is when step 2 finds `po/l10n-pending.po` empty. Do not skip step 7 or jump to
488 + is when step 2 finds `po/l10n-pending.json` empty. Do not skip step 7 or jump to
486 489 step 8 after step 6.
487 490
488 491 1. **Extract entries to translate**: **Directly execute** the script below—it is
489 - authoritative; do not reimplement. It generates `po/l10n-pending.po` with
492 + authoritative; do not reimplement. It generates `po/l10n-pending.json` with
490 493 messages that need translation.
491 494
492 495 ```shell
493 496 l10n_extract_pending () {
494 497 test $# -ge 1 || { echo "Usage: l10n_extract_pending <po-file>" >&2; return 1; }
495 498 PO_FILE="$1"
496 - PENDING="po/l10n-pending.po"
497 - PENDING_FUZZY="${PENDING}.fuzzy"
498 - PENDING_REFER="${PENDING}.fuzzy.reference"
499 - PENDING_UNTRANS="${PENDING}.untranslated"
499 + PENDING="po/l10n-pending.json"
500 500 rm -f "$PENDING"
501 501
502 - if command -v git-po-helper >/dev/null 2>&1
503 - then
504 - git-po-helper msg-select --untranslated --fuzzy --no-obsolete -o "$PENDING" "$PO_FILE"
505 - else
506 - msgattrib --untranslated --no-obsolete "$PO_FILE" >"${PENDING_UNTRANS}"
507 - msgattrib --only-fuzzy --no-obsolete --clear-fuzzy --empty "$PO_FILE" >"${PENDING_FUZZY}"
508 - msgattrib --only-fuzzy --no-obsolete "$PO_FILE" >"${PENDING_REFER}"
509 - msgcat --use-first "${PENDING_UNTRANS}" "${PENDING_FUZZY}" >"$PENDING"
510 - rm -f "${PENDING_UNTRANS}" "${PENDING_FUZZY}"
511 - fi
512 - if test -s "$PENDING"
502 + git-po-helper msg-select --json --untranslated --fuzzy --no-obsolete -o "$PENDING" "$PO_FILE"
503 + ENTRY_COUNT=$(git-po-helper stat -c "$PENDING" 2>/dev/null || true)
504 + ENTRY_COUNT=${ENTRY_COUNT:-0}
505 + if test "$ENTRY_COUNT" -gt 0
513 506 then
514 - msgfmt --stat -o /dev/null "$PENDING" || true
507 + git-po-helper stat "$PENDING" || true
515 508 echo "Pending file is not empty; there are still entries to translate."
516 509 else
517 510 echo "No entries need translation."
@@ -522,30 +515,28 @@ step 8 after step 6.
522 515 l10n_extract_pending po/XX.po
523 516 ```
524 517
525 - 2. **Check generated file**: If `po/l10n-pending.po` is empty or does not exist,
526 - translation is complete; go to step 8. Otherwise proceed to step 3.
518 + 2. **Check generated file**: If `po/l10n-pending.json` has no content entries
519 + (or does not exist), translation is complete; go to step 8. Otherwise proceed
520 + to step 3.
527 521
528 522 3. **Prepare one batch for translation**: Batching keeps each run small so the
529 523 model can complete translation within limited context. **BEFORE translating**,
530 524 **directly execute** the script below—it is authoritative; do not reimplement.
531 - Based on which file the script produces: if `po/l10n-todo.json` exists, go to
532 - step 4a; if `po/l10n-todo.po` exists, go to step 4b.
525 + It writes `po/l10n-todo.json`; then go to step 4.
533 526
534 527 ```shell
535 528 l10n_one_batch () {
536 529 test $# -ge 1 || { echo "Usage: l10n_one_batch <po-file> [min_batch_size]" >&2; return 1; }
537 530 PO_FILE="$1"
538 531 min_batch_size=${2:-100}
539 - PENDING="po/l10n-pending.po"
532 + PENDING="po/l10n-pending.json"
540 533 TODO_JSON="po/l10n-todo.json"
541 - TODO_PO="po/l10n-todo.po"
542 534 DONE_JSON="po/l10n-done.json"
543 - DONE_PO="po/l10n-done.po"
544 - rm -f "$TODO_JSON" "$TODO_PO" "$DONE_JSON" "$DONE_PO"
545 -
546 - ENTRY_COUNT=$(grep -c '^msgid ' "$PENDING" 2>/dev/null || echo 0)
547 - ENTRY_COUNT=$((ENTRY_COUNT > 0 ? ENTRY_COUNT - 1 : 0))
535 + DONE_PO_TMP="po/l10n-done.po.tmp"
536 + rm -f "$TODO_JSON" "$DONE_JSON" "$DONE_PO_TMP"
548 537
538 + ENTRY_COUNT=$(git-po-helper stat -c "$PENDING" 2>/dev/null || true)
539 + ENTRY_COUNT=${ENTRY_COUNT:-0}
549 540 if test "$ENTRY_COUNT" -gt $min_batch_size
550 541 then
551 542 if test "$ENTRY_COUNT" -gt $((min_batch_size * 8))
@@ -557,39 +548,18 @@ step 8 after step 6.
557 548 else
558 549 NUM=$min_batch_size
559 550 fi
560 - BATCHING=1
551 + git-po-helper msg-select --json --head "$NUM" -o "$TODO_JSON" "$PENDING"
552 + echo "Processing batch of $NUM entries (out of $ENTRY_COUNT remaining)"
561 553 else
562 - NUM=$ENTRY_COUNT
563 - BATCHING=
564 - fi
565 -
566 - if command -v git-po-helper >/dev/null 2>&1
567 - then
568 - if test -n "$BATCHING"
569 - then
570 - git-po-helper msg-select --json --head "$NUM" -o "$TODO_JSON" "$PENDING"
571 - echo "Processing batch of $NUM entries (out of $ENTRY_COUNT remaining)"
572 - else
573 - git-po-helper msg-select --json -o "$TODO_JSON" "$PENDING"
574 - echo "Processing all $ENTRY_COUNT entries at once"
575 - fi
576 - else
577 - if test -n "$BATCHING"
578 - then
579 - awk -v num="$NUM" '/^msgid / && count++ > num {exit} 1' "$PENDING" |
580 - tac | awk '/^$/ {found=1} found' | tac >"$TODO_PO"
581 - echo "Processing batch of $NUM entries (out of $ENTRY_COUNT remaining)"
582 - else
583 - cp "$PENDING" "$TODO_PO"
584 - echo "Processing all $ENTRY_COUNT entries at once"
585 - fi
554 + git-po-helper msg-select --json -o "$TODO_JSON" "$PENDING"
555 + echo "Processing all $ENTRY_COUNT entries at once"
586 556 fi
587 557 }
588 558 # Prepare one batch; shrink 2nd arg when batches exceed agent capacity.
589 559 l10n_one_batch po/XX.po 100
590 560 ```
591 561
592 - 4a. **Translate JSON batch** (`po/l10n-todo.json` → `po/l10n-done.json`):
562 + 4. **Translate JSON batch** (`po/l10n-todo.json` → `po/l10n-done.json`):
593 563
594 564 - **Task**: Translate `po/l10n-todo.json` (input, GETTEXT JSON) into
595 565 `po/l10n-done.json` (output, GETTEXT JSON). See the "GETTEXT JSON format"
@@ -604,32 +574,20 @@ step 8 after step 6.
604 574 (for plural entries); clear the fuzzy flag (omit or set `fuzzy` to `false`).
605 575 Do **not** modify `msgid` or `msgid_plural`.
606 576
607 - 4b. **Translate PO batch** (`po/l10n-todo.po` → `po/l10n-done.po`):
608 -
609 - - **Task**: Translate `po/l10n-todo.po` (input, GETTEXT PO) into
610 - `po/l10n-done.po` (output, GETTEXT PO).
611 - - **Reference glossary**: Read the glossary from the pending file header
612 - (see "Glossary Section" above) and use it for consistent terminology.
613 - - **When translating**: Follow the "Quality checklist" above for correctness
614 - and quality. Preserve escape sequences (`\n`, `\"`, `\\`, `\t`), placeholders,
615 - and quotes as in `msgid`. Modify `msgstr` and `msgstr[n]` (for plural
616 - entries); remove the `#, fuzzy` tag from comments when done. Do **not**
617 - modify `msgid` or `msgid_plural`.
618 -
619 - 5. **Validate `po/l10n-done.po`**:
577 + 5. **Validate `po/l10n-done.po.tmp`**:
620 578
621 579 Run the validation script below. If it fails, fix per the errors and notes,
622 580 re-run until it succeeds.
623 581
624 582 ```shell
625 583 l10n_validate_done () {
626 - DONE_PO="po/l10n-done.po"
584 + DONE_PO_TMP="po/l10n-done.po.tmp"
627 585 DONE_JSON="po/l10n-done.json"
628 - PENDING="po/l10n-pending.po"
586 + PENDING="po/l10n-pending.json"
629 587
630 - if test -f "$DONE_JSON" && { ! test -f "$DONE_PO" || test "$DONE_JSON" -nt "$DONE_PO"; }
588 + if test -f "$DONE_JSON" && { ! test -f "$DONE_PO_TMP" || test "$DONE_JSON" -nt "$DONE_PO_TMP"; }
631 589 then
632 - git-po-helper msg-cat --unset-fuzzy -o "$DONE_PO" "$DONE_JSON" || {
590 + git-po-helper msg-cat --unset-fuzzy -o "$DONE_PO_TMP" "$DONE_JSON" || {
633 591 echo "ERROR [JSON to PO conversion]: Fix $DONE_JSON and re-run." >&2
634 592 return 1
635 593 }
@@ -637,22 +595,22 @@ step 8 after step 6.
637 595
638 596 # Check 1: msgid should not be modified
639 597 MSGID_OUT=$(git-po-helper compare -q --msgid --assert-no-changes \
640 - "$PENDING" "$DONE_PO" 2>&1)
598 + "$PENDING" "$DONE_PO_TMP" 2>&1)
641 599 MSGID_RC=$?
642 600 if test $MSGID_RC -ne 0 || test -n "$MSGID_OUT"
643 601 then
644 602 echo "ERROR [msgid modified]: The following entries appeared after" >&2
645 - echo "translation because msgid was altered. Fix in $DONE_PO." >&2
603 + echo "translation because msgid was altered. Fix in $DONE_PO_TMP." >&2
646 604 echo "$MSGID_OUT" >&2
647 605 return 1
648 606 fi
649 607
650 608 # Check 2: PO format (see "Validating PO File Format" for error handling)
651 - MSGFMT_OUT=$(msgfmt --check -o /dev/null "$DONE_PO" 2>&1)
609 + MSGFMT_OUT=$(msgfmt --check -o /dev/null "$DONE_PO_TMP" 2>&1)
652 610 MSGFMT_RC=$?
653 611 if test $MSGFMT_RC -ne 0
654 612 then
655 - echo "ERROR [PO format]: Fix errors in $DONE_PO." >&2
613 + echo "ERROR [PO format]: Fix errors in $DONE_PO_TMP." >&2
656 614 echo "$MSGFMT_OUT" >&2
657 615 return 1
658 616 fi
@@ -662,46 +620,43 @@ step 8 after step 6.
662 620 l10n_validate_done
663 621 ```
664 622
665 - If the script fails, fix **directly in `po/l10n-done.po`**. Re-run
623 + If the script fails, fix **directly in `po/l10n-done.po.tmp`**. Re-run
666 624 `l10n_validate_done` until it succeeds. Editing `po/l10n-done.json` is not
667 625 recommended because it adds an extra JSON-to-PO conversion step. Use the
668 626 error message to decide:
669 627
670 628 - **`[msgid modified]`**: The listed entries have altered `msgid`; restore
671 - them to match `po/l10n-pending.po`.
629 + them to match `po/l10n-pending.json`.
672 630 - **`[PO format]`**: `msgfmt` reports line numbers; fix the errors in place.
673 631 See "Validating PO File Format" for common issues.
674 632
675 633
676 634 6. **Merge translation results into `po/XX.po`**: Run the script below. If it
677 635 fails, fix the file the error names: **`[JSON to PO conversion]`** →
678 - `po/l10n-done.json`; **`[msgcat merge]`** → `po/l10n-done.po`. Re-run until
636 + `po/l10n-done.json`; **`[msgcat merge]`** → `po/l10n-done.po.tmp`. Re-run until
679 637 it succeeds.
680 638
681 639 ```shell
682 640 l10n_merge_batch () {
683 641 test $# -ge 1 || { echo "Usage: l10n_merge_batch <po-file>" >&2; return 1; }
684 642 PO_FILE="$1"
685 - DONE_PO="po/l10n-done.po"
643 + DONE_PO_TMP="po/l10n-done.po.tmp"
686 644 DONE_JSON="po/l10n-done.json"
687 645 MERGED="po/l10n-done.merged"
688 - PENDING="po/l10n-pending.po"
689 - PENDING_REFER="${PENDING}.fuzzy.reference"
690 646 TODO_JSON="po/l10n-todo.json"
691 - TODO_PO="po/l10n-todo.po"
692 - if test -f "$DONE_JSON" && { ! test -f "$DONE_PO" || test "$DONE_JSON" -nt "$DONE_PO"; }
647 + if test -f "$DONE_JSON" && { ! test -f "$DONE_PO_TMP" || test "$DONE_JSON" -nt "$DONE_PO_TMP"; }
693 648 then
694 - git-po-helper msg-cat --unset-fuzzy -o "$DONE_PO" "$DONE_JSON" || {
649 + git-po-helper msg-cat --unset-fuzzy -o "$DONE_PO_TMP" "$DONE_JSON" || {
695 650 echo "ERROR [JSON to PO conversion]: Fix $DONE_JSON and re-run." >&2
696 651 return 1
697 652 }
698 653 fi
699 - msgcat --use-first "$DONE_PO" "$PO_FILE" >"$MERGED" || {
700 - echo "ERROR [msgcat merge]: Fix errors in $DONE_PO and re-run." >&2
654 + msgcat --use-first "$DONE_PO_TMP" "$PO_FILE" >"$MERGED" || {
655 + echo "ERROR [msgcat merge]: Fix errors in $DONE_PO_TMP and re-run." >&2
701 656 return 1
702 657 }
703 658 mv "$MERGED" "$PO_FILE"
704 - rm -f "$TODO_JSON" "$TODO_PO" "$DONE_JSON" "$DONE_PO" "$PENDING_REFER"
659 + rm -f "$TODO_JSON" "$DONE_JSON" "$DONE_PO_TMP"
705 660 }
706 661 # Run the merge. Example: l10n_merge_batch po/zh_CN.po
707 662 l10n_merge_batch po/XX.po
@@ -726,15 +681,16 @@ commit. When asked to review, follow the steps below.
726 681
727 682 **Workflow**: Follow steps in order. Do **NOT** use `git show`, `git diff`,
728 683 `git format-patch`, or similar to get changes—they break PO context; use **only**
729 - `git-po-helper compare` for extraction. Without `git-po-helper`, refuse the task.
730 - Steps 3→4→5→6→7 loop: after step 6, **always** go to step 7 (back to step 3).
731 - The **only** ways to step 8 are when step 4 finds `po/review-todo.json` missing
732 - or empty (no batch left to review), or when step 1 finds `po/review-result.json`
733 - already present.
684 + `git-po-helper compare` for extraction. **Require** `git-po-helper` (see
685 + "Using git-po-helper" for the version check); without a passing check, refuse
686 + the task. Steps 3→4→5→6→7 loop: after step 6, **always** go to step 7 (back to
687 + step 3). The **only** ways to step 8 are when step 4 finds `po/review-todo.json`
688 + missing or empty (no batch left to review), or when step 1 finds
689 + `po/review-result.json` already present.
734 690
735 691 1. **Check for existing review (resume support)**: Evaluate the following in order:
736 692
737 - - If `po/review-input.po` does **not** exist, proceed to step 2 (Extract
693 + - If `po/review-input.json` does **not** exist, proceed to step 2 (Extract
738 694 entries) for a fresh start.
739 695 - Else If `po/review-result.json` exists, go to step 8 (only after loop exits).
740 696 - Else If `po/review-done.json` exists, go to step 6 (Rename result).
@@ -742,9 +698,9 @@ already present.
742 698 batch).
743 699 - Else go to step 3 (Prepare one batch).
744 700
745 - 2. **Extract entries**: Run `git-po-helper compare` with the desired range and
746 - redirect the output to `po/review-input.po`. See "Comparing PO files for
747 - translation and review" under git-po-helper for options.
701 + 2. **Extract entries**: Run `git-po-helper compare --json` with the desired range
702 + and write the output to `po/review-input.json` (use `-o`). See "Comparing PO
703 + files for translation and review" under git-po-helper for options.
748 704
749 705 3. **Prepare one batch**: Batching keeps each run small so the model can
750 706 complete review within limited context. **Directly execute** the script
@@ -753,27 +709,32 @@ already present.
753 709 ```shell
754 710 review_one_batch () {
755 711 min_batch_size=${1:-100}
756 - INPUT_PO="po/review-input.po"
757 - PENDING="po/review-pending.po"
712 + INPUT_JSON="po/review-input.json"
713 + PENDING="po/review-pending.json"
758 714 TODO="po/review-todo.json"
759 715 DONE="po/review-done.json"
760 716 BATCH_FILE="po/review-batch.txt"
761 717
762 - if test ! -f "$INPUT_PO"
718 + if test ! -f "$INPUT_JSON"
763 719 then
764 720 rm -f "$TODO"
765 - echo >&2 "cannot find $INPUT_PO, nothing for review"
721 + echo >&2 "cannot find $INPUT_JSON, nothing for review"
766 722 return 1
767 723 fi
768 - if test ! -f "$PENDING" || test "$INPUT_PO" -nt "$PENDING"
724 + if test ! -f "$PENDING" || test "$INPUT_JSON" -nt "$PENDING"
769 725 then
770 - rm -f "$BATCH_FILE" "$TODO" "$DONE"
726 + # zsh aborts on unmatched globs; allow empty expansion here.
727 + if test -n "$ZSH_VERSION"
728 + then
729 + setopt local_options null_glob
730 + fi
771 731 rm -f po/review-result*.json
772 - cp "$INPUT_PO" "$PENDING"
732 + rm -f "$BATCH_FILE" "$TODO" "$DONE"
733 + cp "$INPUT_JSON" "$PENDING"
773 734 fi
774 735
775 - ENTRY_COUNT=$(grep -c '^msgid ' "$PENDING" 2>/dev/null || echo 0)
776 - ENTRY_COUNT=$((ENTRY_COUNT > 0 ? ENTRY_COUNT - 1 : 0))
736 + ENTRY_COUNT=$(git-po-helper stat -c "$PENDING" 2>/dev/null || true)
737 + ENTRY_COUNT=${ENTRY_COUNT:-0}
777 738 if test "$ENTRY_COUNT" -eq 0
778 739 then
779 740 rm -f "$TODO"
@@ -796,12 +757,13 @@ already present.
796 757 NUM=$ENTRY_COUNT
797 758 fi
798 759
799 - BATCH=$(cat "$BATCH_FILE" 2>/dev/null || echo 0)
760 + BATCH=$(cat "$BATCH_FILE" 2>/dev/null || true)
761 + BATCH=${BATCH:-0}
800 762 BATCH=$((BATCH + 1))
801 763 echo "$BATCH" >"$BATCH_FILE"
802 764
803 765 git-po-helper msg-select --json --head "$NUM" -o "$TODO" "$PENDING"
804 - git-po-helper msg-select --since "$((NUM + 1))" -o "${PENDING}.tmp" "$PENDING"
766 + git-po-helper msg-select --json --since "$((NUM + 1))" -o "${PENDING}.tmp" "$PENDING"
805 767 mv "${PENDING}.tmp" "$PENDING"
806 768 echo "Processing batch $BATCH ($NUM entries out of $ENTRY_COUNT)"
807 769 }
modified po/TEAMS
@@ -1,6 +1,10 @@
1 1 Core Git translation language teams
2 2 (please keep the list sorted alphabetically on language field)
3 3
4 + Language: af (Afrikaans)
5 + Repository: https://github.com/Topsy2003Turvey/git-po
6 + Leader: Stéfan Driaan Turvey <stefanturvey1912@gmail.com>
7 +
4 8 Language: bg (Bulgarian)
5 9 Repository: https://github.com/git-l10n/git-po
6 10 Leader: Alexander Shopov <ash@kambanaria.org>
@@ -31,7 +35,7 @@ Members: Sébastien Helleu <flashcode@flashtux.org>
31 35
32 36 Language: ga (Irish)
33 37 Repository: https://github.com/aindriu80/git-po
34 - Members: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
38 + Leader: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
35 39
36 40 Language: id (Indonesian)
37 41 Repository: https://github.com/bagasme/git-po
@@ -54,6 +58,10 @@ Language: pl (Polish)
54 58 Repository: https://github.com/Arusekk/git-po
55 59 Members: Arusekk <arek_koz@o2.pl>
56 60
61 + Language: pt_BR (Portuguese - Brazil)
62 + Repository: https://github.com/Daniel-Pereira-Linux/git-po
63 + Leader: Daniel Pereira <danielmaraboo@gmail.com>
64 +
57 65 Language: pt_PT (Portuguese - Portugal)
58 66 Repository: https://gitlab.com/alexandre1985/git-pt/
59 67 Members: Daniel Santos <dacs.git@brilhante.top>
added po/af.po mode 100644
@@ -0,0 +1,26353 @@
1 + # Afrikaans translations for Git package.
2 + # Copyright (C) 2026 THE Git'S COPYRIGHT HOLDER
3 + # This file is distributed under the same license as the Git package.
4 + # Automatically generated, 2026.
5 + #
6 + msgid ""
7 + msgstr ""
8 + "Project-Id-Version: Git\n"
9 + "Report-Msgid-Bugs-To: Git Mailing List <git@vger.kernel.org>\n"
10 + "POT-Creation-Date: 2026-09-23 23:13+0000\n"
11 + "PO-Revision-Date: 2026-09-27 11:40+0200\n"
12 + "Last-Translator: Stéfan Driaan Turvey <stefanturvey1912@gmail.com>\n"
13 + "Language-Team: Stéfan Driaan Turvey <stefanturvey1912@gmail.com>\n"
14 + "Language: af\n"
15 + "MIME-Version: 1.0\n"
16 + "Content-Type: text/plain; charset=UTF-8\n"
17 + "Content-Transfer-Encoding: 8bit\n"
18 + "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 + "X-Generator: Poedit 3.9\n"
20 + "X-Poedit-SourceCharset: UTF-8\n"
21 +
22 + #, c-format
23 + msgid "Huh (%s)?"
24 + msgstr "Hè (%s)?"
25 +
26 + msgid "could not read index"
27 + msgstr "kon nie indeks lees nie"
28 +
29 + msgid "binary"
30 + msgstr "binêr"
31 +
32 + msgid "nothing"
33 + msgstr "niks"
34 +
35 + msgid "unchanged"
36 + msgstr "onveranderd"
37 +
38 + msgid "Update"
39 + msgstr "Bywerk"
40 +
41 + #, c-format
42 + msgid "could not stage '%s'"
43 + msgstr "kon nie '%s' plaas nie"
44 +
45 + msgid "could not write index"
46 + msgstr "kon nie indeks skryf nie"
47 +
48 + #, c-format
49 + msgid "updated %d path\n"
50 + msgid_plural "updated %d paths\n"
51 + msgstr[0] "%d pad bygewerk\n"
52 + msgstr[1] "%d paaie bygewerk\n"
53 +
54 + #, c-format
55 + msgid "note: %s is untracked now.\n"
56 + msgstr "let wel: %s is nou onnaspoorbaar.\n"
57 +
58 + #, c-format
59 + msgid "make_cache_entry failed for path '%s'"
60 + msgstr "make_cache_entry het misluk vir pad '%s'"
61 +
62 + msgid "Revert"
63 + msgstr "Omkeer"
64 +
65 + msgid "Could not parse HEAD^{tree}"
66 + msgstr "Kon nie HEAD^{tree} ontleed nie"
67 +
68 + #, c-format
69 + msgid "reverted %d path\n"
70 + msgid_plural "reverted %d paths\n"
71 + msgstr[0] "%d pad omgekeer\n"
72 + msgstr[1] "%d paaie omgekeer\n"
73 +
74 + #, c-format
75 + msgid "No untracked files.\n"
76 + msgstr "Geen onnaspoorbare lêers nie.\n"
77 +
78 + msgid "Add untracked"
79 + msgstr "Voeg onnaspoorbares by"
80 +
81 + #, c-format
82 + msgid "added %d path\n"
83 + msgid_plural "added %d paths\n"
84 + msgstr[0] "%d pad bygevoeg\n"
85 + msgstr[1] "%d paaie bygevoeg\n"
86 +
87 + #, c-format
88 + msgid "ignoring unmerged: %s"
89 + msgstr "ignoreer nie saamgesmelt nie: %s"
90 +
91 + #, c-format
92 + msgid "Only binary files changed.\n"
93 + msgstr "Slegs binêre lêers het verander.\n"
94 +
95 + #, c-format
96 + msgid "No changes.\n"
97 + msgstr "Geen veranderinge nie.\n"
98 +
99 + msgid "Patch update"
100 + msgstr "Lapbywerking"
101 +
102 + msgid "Review diff"
103 + msgstr "Hersien verskil"
104 +
105 + msgid "show paths with changes"
106 + msgstr "wys paaie met veranderinge"
107 +
108 + msgid "add working tree state to the staged set of changes"
109 + msgstr "voeg werkboomtoestand by die geplaasde stel veranderinge"
110 +
111 + msgid "revert staged set of changes back to the HEAD version"
112 + msgstr "keer geplaasde stel veranderinge terug na die HEAD-weergawe"
113 +
114 + msgid "pick hunks and update selectively"
115 + msgstr "kies brokke en werk selektief by"
116 +
117 + msgid "view diff between HEAD and index"
118 + msgstr "bekyk verskil tussen HEAD en indeks"
119 +
120 + msgid "add contents of untracked files to the staged set of changes"
121 + msgstr "voeg inhoud van onnaspoorbare lêers by die geplaasde stel veranderinge"
122 +
123 + msgid "Prompt help:"
124 + msgstr "Hulp by die invoer:"
125 +
126 + msgid "select a single item"
127 + msgstr "kies 'n enkele item"
128 +
129 + msgid "select a range of items"
130 + msgstr "kies 'n reeks items"
131 +
132 + msgid "select multiple ranges"
133 + msgstr "kies veelvuldige reekse"
134 +
135 + msgid "select item based on unique prefix"
136 + msgstr "kies item op grond van unieke voorvoegsel"
137 +
138 + msgid "unselect specified items"
139 + msgstr "ontkies gespesifiseerde items"
140 +
141 + msgid "choose all items"
142 + msgstr "kies alle items"
143 +
144 + msgid "(empty) finish selecting"
145 + msgstr "(leeg) voltooi keuse"
146 +
147 + msgid "select a numbered item"
148 + msgstr "kies 'n genommerde item"
149 +
150 + msgid "(empty) select nothing"
151 + msgstr "(leeg) kies niks"
152 +
153 + msgid "*** Commands ***"
154 + msgstr "*** Opdragte ***"
155 +
156 + msgid "What now"
157 + msgstr "Wat nou"
158 +
159 + msgid "staged"
160 + msgstr "geplaas"
161 +
162 + msgid "unstaged"
163 + msgstr "ongeplaas"
164 +
165 + msgid "path"
166 + msgstr "pad"
167 +
168 + msgid "could not refresh index"
169 + msgstr "kon nie indeks verfris nie"
170 +
171 + #, c-format
172 + msgid "Bye.\n"
173 + msgstr "Totsiens.\n"
174 +
175 + #, c-format
176 + msgid "Stage mode change%s [y,n,q,a,d%s,?]? "
177 + msgstr "Plaas modusverandering%s [y,n,q,a,d%s,?]? "
178 +
179 + #, c-format
180 + msgid "Stage deletion%s [y,n,q,a,d%s,?]? "
181 + msgstr "Plaas skrapping%s [y,n,q,a,d%s,?]? "
182 +
183 + #, c-format
184 + msgid "Stage addition%s [y,n,q,a,d%s,?]? "
185 + msgstr "Plaas toevoeging%s [y,n,q,a,d%s,?]? "
186 +
187 + #, c-format
188 + msgid "Stage this hunk%s [y,n,q,a,d%s,?]? "
189 + msgstr "Plaas hierdie brok%s [y,n,q,a,d%s,?]? "
190 +
191 + msgid ""
192 + "If the patch applies cleanly, the edited hunk will immediately be marked for "
193 + "staging."
194 + msgstr ""
195 + "As die lap skoon toegepas word, sal die geredigeerde brok onmiddellik vir "
196 + "plasing gemerk word."
197 +
198 + msgid ""
199 + "y - stage this hunk\n"
200 + "n - do not stage this hunk\n"
201 + "q - quit; do not stage this hunk or any of the remaining ones\n"
202 + "a - stage this hunk and all later hunks in the file\n"
203 + "d - do not stage this hunk or any of the later hunks in the file\n"
204 + msgstr ""
205 + "y - plaas hierdie brok\n"
206 + "n - moenie hierdie brok plaas nie\n"
207 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes plaas nie\n"
208 + "a - plaas hierdie brok en alle latere brokke in die lêer\n"
209 + "d - moenie hierdie brok of enige van die latere brokke in die lêer plaas "
210 + "nie\n"
211 +
212 + #, c-format
213 + msgid "Stash mode change%s [y,n,q,a,d%s,?]? "
214 + msgstr "Bêre modusverandering weg%s [y,n,q,a,d%s,?]? "
215 +
216 + #, c-format
217 + msgid "Stash deletion%s [y,n,q,a,d%s,?]? "
218 + msgstr "Bêre skrapping weg%s [y,n,q,a,d%s,?]? "
219 +
220 + #, c-format
221 + msgid "Stash addition%s [y,n,q,a,d%s,?]? "
222 + msgstr "Bêre toevoeging weg%s [y,n,q,a,d%s,?]? "
223 +
224 + #, c-format
225 + msgid "Stash this hunk%s [y,n,q,a,d%s,?]? "
226 + msgstr "Bêre hierdie brok weg%s [y,n,q,a,d%s,?]? "
227 +
228 + msgid ""
229 + "If the patch applies cleanly, the edited hunk will immediately be marked for "
230 + "stashing."
231 + msgstr ""
232 + "As die lap skoon toegepas word, sal die geredigeerde brok onmiddellik vir "
233 + "wegbêre gemerk word."
234 +
235 + msgid ""
236 + "y - stash this hunk\n"
237 + "n - do not stash this hunk\n"
238 + "q - quit; do not stash this hunk or any of the remaining ones\n"
239 + "a - stash this hunk and all later hunks in the file\n"
240 + "d - do not stash this hunk or any of the later hunks in the file\n"
241 + msgstr ""
242 + "y - bêre hierdie brok weg\n"
243 + "n - moenie hierdie brok wegbêre nie\n"
244 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes wegbêre nie\n"
245 + "a - bêre hierdie brok en alle latere brokke in die lêer weg\n"
246 + "d - moenie hierdie brok of enige van die latere brokke in die lêer wegbêre "
247 + "nie\n"
248 +
249 + #, c-format
250 + msgid "Unstage mode change%s [y,n,q,a,d%s,?]? "
251 + msgstr "Ontplaas modusverandering%s [y,n,q,a,d%s,?]? "
252 +
253 + #, c-format
254 + msgid "Unstage deletion%s [y,n,q,a,d%s,?]? "
255 + msgstr "Ontplaas skrapping%s [y,n,q,a,d%s,?]? "
256 +
257 + #, c-format
258 + msgid "Unstage addition%s [y,n,q,a,d%s,?]? "
259 + msgstr "Ontplaas toevoeging%s [y,n,q,a,d%s,?]? "
260 +
261 + #, c-format
262 + msgid "Unstage this hunk%s [y,n,q,a,d%s,?]? "
263 + msgstr "Ontplaas hierdie brok%s [y,n,q,a,d%s,?]? "
264 +
265 + msgid ""
266 + "If the patch applies cleanly, the edited hunk will immediately be marked for "
267 + "unstaging."
268 + msgstr ""
269 + "As die lap skoon toegepas word, sal die geredigeerde brok onmiddellik vir "
270 + "ontplasing gemerk word."
271 +
272 + msgid ""
273 + "y - unstage this hunk\n"
274 + "n - do not unstage this hunk\n"
275 + "q - quit; do not unstage this hunk or any of the remaining ones\n"
276 + "a - unstage this hunk and all later hunks in the file\n"
277 + "d - do not unstage this hunk or any of the later hunks in the file\n"
278 + msgstr ""
279 + "y - ontplaas hierdie brok\n"
280 + "n - moenie hierdie brok ontplaas nie\n"
281 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes ontplaas nie\n"
282 + "a - ontplaas hierdie brok en alle latere brokke in die lêer\n"
283 + "d - moenie hierdie brok of enige van die latere brokke in die lêer ontplaas "
284 + "nie\n"
285 +
286 + #, c-format
287 + msgid "Apply mode change to index%s [y,n,q,a,d%s,?]? "
288 + msgstr "Pas modusverandering op indeks toe%s [y,n,q,a,d%s,?]? "
289 +
290 + #, c-format
291 + msgid "Apply deletion to index%s [y,n,q,a,d%s,?]? "
292 + msgstr "Pas skrapping op indeks toe%s [y,n,q,a,d%s,?]? "
293 +
294 + #, c-format
295 + msgid "Apply addition to index%s [y,n,q,a,d%s,?]? "
296 + msgstr "Pas toevoeging op indeks toe%s [y,n,q,a,d%s,?]? "
297 +
298 + #, c-format
299 + msgid "Apply this hunk to index%s [y,n,q,a,d%s,?]? "
300 + msgstr "Pas hierdie brok op indeks toe%s [y,n,q,a,d%s,?]? "
301 +
302 + msgid ""
303 + "If the patch applies cleanly, the edited hunk will immediately be marked for "
304 + "applying."
305 + msgstr ""
306 + "As die lap skoon toegepas word, sal die geredigeerde brok onmiddellik vir "
307 + "toepassing gemerk word."
308 +
309 + msgid ""
310 + "y - apply this hunk to index\n"
311 + "n - do not apply this hunk to index\n"
312 + "q - quit; do not apply this hunk or any of the remaining ones\n"
313 + "a - apply this hunk and all later hunks in the file\n"
314 + "d - do not apply this hunk or any of the later hunks in the file\n"
315 + msgstr ""
316 + "y - pas hierdie brok op indeks toe\n"
317 + "n - moenie hierdie brok op indeks toepas nie\n"
318 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes toepas nie\n"
319 + "a - pas hierdie brok en alle latere brokke in die lêer toe\n"
320 + "d - moenie hierdie brok of enige van die latere brokke in die lêer toepas "
321 + "nie\n"
322 +
323 + #, c-format
324 + msgid "Discard mode change from worktree%s [y,n,q,a,d%s,?]? "
325 + msgstr "Verwerp modusverandering uit werkboom%s [y,n,q,a,d%s,?]? "
326 +
327 + #, c-format
328 + msgid "Discard deletion from worktree%s [y,n,q,a,d%s,?]? "
329 + msgstr "Verwerp skrapping uit werkboom%s [y,n,q,a,d%s,?]? "
330 +
331 + #, c-format
332 + msgid "Discard addition from worktree%s [y,n,q,a,d%s,?]? "
333 + msgstr "Verwerp toevoeging uit werkboom%s [y,n,q,a,d%s,?]? "
334 +
335 + #, c-format
336 + msgid "Discard this hunk from worktree%s [y,n,q,a,d%s,?]? "
337 + msgstr "Verwerp hierdie brok uit werkboom%s [y,n,q,a,d%s,?]? "
338 +
339 + msgid ""
340 + "If the patch applies cleanly, the edited hunk will immediately be marked for "
341 + "discarding."
342 + msgstr ""
343 + "As die lap skoon toegepas word, sal die geredigeerde brok onmiddellik vir "
344 + "verwerping gemerk word."
345 +
346 + msgid ""
347 + "y - discard this hunk from worktree\n"
348 + "n - do not discard this hunk from worktree\n"
349 + "q - quit; do not discard this hunk or any of the remaining ones\n"
350 + "a - discard this hunk and all later hunks in the file\n"
351 + "d - do not discard this hunk or any of the later hunks in the file\n"
352 + msgstr ""
353 + "y - verwerp hierdie brok uit werkboom\n"
354 + "n - moenie hierdie brok uit werkboom verwerp nie\n"
355 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes verwerp nie\n"
356 + "a - verwerp hierdie brok en alle latere brokke in die lêer\n"
357 + "d - moenie hierdie brok of enige van die latere brokke in die lêer verwerp "
358 + "nie\n"
359 +
360 + #, c-format
361 + msgid "Discard mode change from index and worktree%s [y,n,q,a,d%s,?]? "
362 + msgstr "Verwerp modusverandering uit indeks en werkboom%s [y,n,q,a,d%s,?]? "
363 +
364 + #, c-format
365 + msgid "Discard deletion from index and worktree%s [y,n,q,a,d%s,?]? "
366 + msgstr "Verwerp skrapping uit indeks en werkboom%s [y,n,q,a,d%s,?]? "
367 +
368 + #, c-format
369 + msgid "Discard addition from index and worktree%s [y,n,q,a,d%s,?]? "
370 + msgstr "Verwerp toevoeging uit indeks en werkboom%s [y,n,q,a,d%s,?]? "
371 +
372 + #, c-format
373 + msgid "Discard this hunk from index and worktree%s [y,n,q,a,d%s,?]? "
374 + msgstr "Verwerp hierdie brok uit indeks en werkboom%s [y,n,q,a,d%s,?]? "
375 +
376 + msgid ""
377 + "y - discard this hunk from index and worktree\n"
378 + "n - do not discard this hunk from index and worktree\n"
379 + "q - quit; do not discard this hunk or any of the remaining ones\n"
380 + "a - discard this hunk and all later hunks in the file\n"
381 + "d - do not discard this hunk or any of the later hunks in the file\n"
382 + msgstr ""
383 + "y - verwerp hierdie brok uit indeks en werkboom\n"
384 + "n - moenie hierdie brok uit indeks en werkboom verwerp nie\n"
385 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes verwerp nie\n"
386 + "a - verwerp hierdie brok en alle latere brokke in die lêer\n"
387 + "d - moenie hierdie brok of enige van die latere brokke in die lêer verwerp "
388 + "nie\n"
389 +
390 + #, c-format
391 + msgid "Apply mode change to index and worktree%s [y,n,q,a,d%s,?]? "
392 + msgstr "Pas modusverandering op indeks en werkboom toe%s [y,n,q,a,d%s,?]? "
393 +
394 + #, c-format
395 + msgid "Apply deletion to index and worktree%s [y,n,q,a,d%s,?]? "
396 + msgstr "Pas skrapping op indeks en werkboom toe%s [y,n,q,a,d%s,?]? "
397 +
398 + #, c-format
399 + msgid "Apply addition to index and worktree%s [y,n,q,a,d%s,?]? "
400 + msgstr "Pas toevoeging op indeks en werkboom toe%s [y,n,q,a,d%s,?]? "
401 +
402 + #, c-format
403 + msgid "Apply this hunk to index and worktree%s [y,n,q,a,d%s,?]? "
404 + msgstr "Pas hierdie brok op indeks en werkboom toe%s [y,n,q,a,d%s,?]? "
405 +
406 + msgid ""
407 + "y - apply this hunk to index and worktree\n"
408 + "n - do not apply this hunk to index and worktree\n"
409 + "q - quit; do not apply this hunk or any of the remaining ones\n"
410 + "a - apply this hunk and all later hunks in the file\n"
411 + "d - do not apply this hunk or any of the later hunks in the file\n"
412 + msgstr ""
413 + "y - pas hierdie brok op indeks en werkboom toe\n"
414 + "n - moenie hierdie brok op indeks en werkboom toepas nie\n"
415 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes toepas nie\n"
416 + "a - pas hierdie brok en alle latere brokke in die lêer toe\n"
417 + "d - moenie hierdie brok of enige van die latere brokke in die lêer toepas "
418 + "nie\n"
419 +
420 + #, c-format
421 + msgid "Apply mode change to worktree%s [y,n,q,a,d%s,?]? "
422 + msgstr "Pas modusverandering op werkboom toe%s [y,n,q,a,d%s,?]? "
423 +
424 + #, c-format
425 + msgid "Apply deletion to worktree%s [y,n,q,a,d%s,?]? "
426 + msgstr "Pas skrapping op werkboom toe%s [y,n,q,a,d%s,?]? "
427 +
428 + #, c-format
429 + msgid "Apply addition to worktree%s [y,n,q,a,d%s,?]? "
430 + msgstr "Pas toevoeging op werkboom toe%s [y,n,q,a,d%s,?]? "
431 +
432 + #, c-format
433 + msgid "Apply this hunk to worktree%s [y,n,q,a,d%s,?]? "
434 + msgstr "Pas hierdie brok op werkboom toe%s [y,n,q,a,d%s,?]? "
435 +
436 + msgid ""
437 + "y - apply this hunk to worktree\n"
438 + "n - do not apply this hunk to worktree\n"
439 + "q - quit; do not apply this hunk or any of the remaining ones\n"
440 + "a - apply this hunk and all later hunks in the file\n"
441 + "d - do not apply this hunk or any of the later hunks in the file\n"
442 + msgstr ""
443 + "y - pas hierdie brok op werkboom toe\n"
444 + "n - moenie hierdie brok op werkboom toepas nie\n"
445 + "q - verlaat; moenie hierdie brok of enige van die oorblywendes toepas nie\n"
446 + "a - pas hierdie brok en alle latere brokke in die lêer toe\n"
447 + "d - moenie hierdie brok of enige van die latere brokke in die lêer toepas "
448 + "nie\n"
449 +
450 + #, c-format
451 + msgid "%s cannot be negative"
452 + msgstr "%s kan nie negatief wees nie"
453 +
454 + #, c-format
455 + msgid "could not parse hunk header '%.*s'"
456 + msgstr "kon nie brokkopstuk '%.*s' ontleed nie"
457 +
458 + msgid "could not parse diff"
459 + msgstr "kon nie verskil ontleed nie"
460 +
461 + msgid "could not parse colored diff"
462 + msgstr "kon nie gekleurde verskil ontleed nie"
463 +
464 + #, c-format
465 + msgid "failed to run '%s'"
466 + msgstr "kon nie '%s' uitvoer nie"
467 +
468 + msgid "mismatched output from interactive.diffFilter"
469 + msgstr "afvoer van interactive.diffFilter stem nie ooreen nie"
470 +
471 + msgid ""
472 + "Your filter must maintain a one-to-one correspondence\n"
473 + "between its input and output lines."
474 + msgstr ""
475 + "Jou filter moet 'n een-tot-een-ooreenkoms tussen sy\n"
476 + "invoer- en afvoerreëls handhaaf."
477 +
478 + #, c-format
479 + msgid ""
480 + "expected context line #%d in\n"
481 + "%.*s"
482 + msgstr ""
483 + "het konteksreël #%d verwag in\n"
484 + "%.*s"
485 +
486 + #, c-format
487 + msgid ""
488 + "hunks do not overlap:\n"
489 + "%.*s\n"
490 + "\tdoes not end with:\n"
491 + "%.*s"
492 + msgstr ""
493 + "brokke oorvleuel nie:\n"
494 + "%.*s\n"
495 + "\teindig nie met:\n"
496 + "%.*s"
497 +
498 + msgid "Manual hunk edit mode -- see bottom for a quick guide.\n"
499 + msgstr "Handmatige brokredigeermodus -- sien onderaan vir 'n vinnige gids.\n"
500 +
501 + #, c-format
502 + msgid ""
503 + "---\n"
504 + "To remove '%c' lines, make them ' ' lines (context).\n"
505 + "To remove '%c' lines, delete them.\n"
506 + "Lines starting with %s will be removed.\n"
507 + msgstr ""
508 + "---\n"
509 + "Om '%c'-reëls te verwyder, maak hulle ' '-reëls (konteks).\n"
510 + "Om '%c'-reëls te verwyder, skrap hulle.\n"
511 + "Reëls wat met %s begin, sal verwyder word.\n"
512 +
513 + msgid ""
514 + "If it does not apply cleanly, you will be given an opportunity to\n"
515 + "edit again. If all lines of the hunk are removed, then the edit is\n"
516 + "aborted and the hunk is left unchanged.\n"
517 + msgstr ""
518 + "As dit nie skoon toegepas word nie, sal jy 'n geleentheid kry om\n"
519 + "weer te redigeer. As alle reëls van die brok verwyder word, word die\n"
520 + "redigering gestaak en bly die brok onveranderd.\n"
521 +
522 + msgid "could not parse hunk header"
523 + msgstr "kon nie brokkopstuk ontleed nie"
524 +
525 + msgid "'git apply --cached' failed"
526 + msgstr "'git apply --cached' het misluk"
527 +
528 + #. TRANSLATORS: do not translate [y/n]
529 + #. The program will only accept that input at this point.
530 + #. Consider translating (saying "no" discards!) as
531 + #. (saying "n" for "no" discards!) if the translation
532 + #. of the word "no" does not start with n.
533 + #.
534 + msgid ""
535 + "Your edited hunk does not apply. Edit again (saying \"no\" discards!) [y/n]? "
536 + msgstr ""
537 + "Jou geredigeerde brok is nie van toepassing nie. Redigeer weer (\"n\" vir "
538 + "\"nee\" verwerp!) [y/n]? "
539 +
540 + msgid "The selected hunks do not apply to the index!"
541 + msgstr "Die gekose brokke is nie op die indeks van toepassing nie!"
542 +
543 + msgid "Apply them to the worktree anyway? "
544 + msgstr "Pas hulle in elk geval op die werkboom toe? "
545 +
546 + msgid "Nothing was applied.\n"
547 + msgstr "Niks is toegepas nie.\n"
548 +
549 + #, c-format
550 + msgid ""
551 + "j - go to the next undecided hunk, roll over at the bottom\n"
552 + "J - go to the next hunk, roll over at the bottom\n"
553 + "k - go to the previous undecided hunk, roll over at the top\n"
554 + "K - go to the previous hunk, roll over at the top\n"
555 + "g - select a hunk to go to\n"
556 + "/ - search for a hunk matching the given regex\n"
557 + "s - split the current hunk into smaller hunks\n"
558 + "e - manually edit the current hunk\n"
559 + "p - print the current hunk\n"
560 + "P - print the current hunk using the pager\n"
561 + "> - go to the next file, roll over at the bottom\n"
562 + "< - go to the previous file, roll over at the top\n"
563 + "? - print help\n"
564 + "HUNKS SUMMARY - Hunks: %d, USE: %d, SKIP: %d\n"
565 + msgstr ""
566 + "j - gaan na die volgende onbesliste brok, begin weer bo aan die einde\n"
567 + "J - gaan na die volgende brok, begin weer bo aan die einde\n"
568 + "k - gaan na die vorige onbesliste brok, begin weer onder aan die begin\n"
569 + "K - gaan na die vorige brok, begin weer onder aan die begin\n"
570 + "g - kies 'n brok om na toe te gaan\n"
571 + "/ - soek vir 'n brok wat by die gegewe regex pas\n"
572 + "s - verdeel die huidige brok in kleiner brokke\n"
573 + "e - redigeer die huidige brok handmatig\n"
574 + "p - druk die huidige brok\n"
575 + "P - druk die huidige brok met die bladsyblaaier\n"
576 + "> - gaan na die volgende lêer, begin weer bo aan die einde\n"
577 + "< - gaan na die vorige lêer, begin weer onder aan die begin\n"
578 + "? - druk hulp\n"
579 + "BROKOPSOMMING - Brokke: %d, GEBRUIK: %d, OORSLAAN: %d\n"
580 +
581 + msgid "'git apply' failed"
582 + msgstr "'git apply' het misluk"
583 +
584 + msgid " (was: y)"
585 + msgstr " (was: y)"
586 +
587 + msgid " (was: n)"
588 + msgstr " (was: n)"
589 +
590 + #, c-format
591 + msgid "Only one letter is expected, got '%s'"
592 + msgstr "Slegs een letter word verwag, het '%s' gekry"
593 +
594 + msgid "No next file"
595 + msgstr "Geen volgende lêer nie"
596 +
597 + msgid "No previous file"
598 + msgstr "Geen vorige lêer nie"
599 +
600 + msgid "No other hunk"
601 + msgstr "Geen ander brok nie"
602 +
603 + msgid "No other undecided hunk"
604 + msgstr "Geen ander onbesliste brok nie"
605 +
606 + msgid "No other hunks to goto"
607 + msgstr "Geen ander brokke om na toe te gaan nie"
608 +
609 + msgid "go to which hunk (<ret> to see more)? "
610 + msgstr "gaan na watter brok (<ret> om meer te sien)? "
611 +
612 + msgid "go to which hunk? "
613 + msgstr "gaan na watter brok? "
614 +
615 + #, c-format
616 + msgid "Invalid number: '%s'"
617 + msgstr "Ongeldige nommer: '%s'"
618 +
619 + #, c-format
620 + msgid "Sorry, only %d hunk available."
621 + msgid_plural "Sorry, only %d hunks available."
622 + msgstr[0] "Jammer, slegs %d brok beskikbaar."
623 + msgstr[1] "Jammer, slegs %d brokke beskikbaar."
624 +
625 + msgid "No other hunks to search"
626 + msgstr "Geen ander brokke om te deursoek nie"
627 +
628 + msgid "search for regex? "
629 + msgstr "soek vir regex? "
630 +
631 + #, c-format
632 + msgid "Malformed search regexp %s: %s"
633 + msgstr "Misvormde soek-regexp %s: %s"
634 +
635 + msgid "No hunk matches the given pattern"
636 + msgstr "Geen brok pas by die gegewe patroon nie"
637 +
638 + msgid "Sorry, cannot split this hunk"
639 + msgstr "Jammer, kan nie hierdie brok verdeel nie"
640 +
641 + #, c-format
642 + msgid "Split into %d hunks."
643 + msgstr "In %d brokke verdeel."
644 +
645 + msgid "Sorry, cannot edit this hunk"
646 + msgstr "Jammer, kan nie hierdie brok redigeer nie"
647 +
648 + #, c-format
649 + msgid "Unknown command '%s' (use '?' for help)"
650 + msgstr "Onbekende opdrag '%s' (gebruik '?' vir hulp)"
651 +
652 + msgid "No changes."
653 + msgstr "Geen veranderinge nie."
654 +
655 + msgid "Only binary files changed."
656 + msgstr "Slegs binêre lêers het verander."
657 +
658 + #, c-format
659 + msgid "Stage mode change [y,n,q,a,d%s,?]? "
660 + msgstr "Plaas modusverandering [y,n,q,a,d%s,?]? "
661 +
662 + #, c-format
663 + msgid "Stage deletion [y,n,q,a,d%s,?]? "
664 + msgstr "Plaas skrapping [y,n,q,a,d%s,?]? "
665 +
666 + #, c-format
667 + msgid "Stage addition [y,n,q,a,d%s,?]? "
668 + msgstr "Plaas toevoeging [y,n,q,a,d%s,?]? "
669 +
670 + #, c-format
671 + msgid "Stage this hunk [y,n,q,a,d%s,?]? "
672 + msgstr "Plaas hierdie brok [y,n,q,a,d%s,?]? "
673 +
674 + msgid "Revision does not refer to a commit"
675 + msgstr "Hersiening verwys nie na 'n vaslegging nie"
676 +
677 + #, c-format
678 + msgid ""
679 + "\n"
680 + "Disable this message with \"git config set advice.%s false\""
681 + msgstr ""
682 + "\n"
683 + "Deaktiveer hierdie boodskap met \"git config set advice.%s false\""
684 +
685 + #, c-format
686 + msgid "%shint:%s%.*s%s\n"
687 + msgstr "%swenk:%s%.*s%s\n"
688 +
689 + msgid "Cherry-picking is not possible because you have unmerged files."
690 + msgstr ""
691 + "Kersiepluk is nie moontlik nie, omdat jy lêers het wat nie saamgesmelt is "
692 + "nie."
693 +
694 + msgid "Committing is not possible because you have unmerged files."
695 + msgstr ""
696 + "Vaslê is nie moontlik nie, omdat jy lêers het wat nie saamgesmelt is nie."
697 +
698 + msgid "Merging is not possible because you have unmerged files."
699 + msgstr ""
700 + "Saamsmelting is nie moontlik nie, omdat jy lêers het wat nie saamgesmelt is "
701 + "nie."
702 +
703 + msgid "Pulling is not possible because you have unmerged files."
704 + msgstr "Jy kan nie trek nie, omdat jy lêers het wat nie saamgesmelt is nie."
705 +
706 + msgid "Reverting is not possible because you have unmerged files."
707 + msgstr ""
708 + "Omkering is nie moontlik nie, omdat jy lêers het wat nie saamgesmelt is nie."
709 +
710 + msgid "Rebasing is not possible because you have unmerged files."
711 + msgstr ""
712 + "Herbasering is nie moontlik nie, omdat jy lêers het wat nie saamgesmelt is "
713 + "nie."
714 +
715 + msgid ""
716 + "Fix them up in the work tree, and then use 'git add/rm <file>'\n"
717 + "as appropriate to mark resolution and make a commit."
718 + msgstr ""
719 + "Herstel hulle in die werkboom, en gebruik dan 'git add/rm <lêer>'\n"
720 + "soos toepaslik om die oplossing te merk en 'n vaslegging te maak."
721 +
722 + msgid "Exiting because of an unresolved conflict."
723 + msgstr "Verlaat weens 'n onopgeloste konflik."
724 +
725 + msgid "You have not concluded your merge (MERGE_HEAD exists)."
726 + msgstr "Jy het nie jou saamsmelting voltooi nie (MERGE_HEAD bestaan)."
727 +
728 + msgid "Please, commit your changes before merging."
729 + msgstr "Lê asseblief jou veranderinge vas voordat jy saamsmelt."
730 +
731 + msgid "Exiting because of unfinished merge."
732 + msgstr "Verlaat weens onvoltooide saamsmelting."
733 +
734 + msgid ""
735 + "Diverging branches can't be fast-forwarded, you need to either:\n"
736 + "\n"
737 + "\tgit merge --no-ff\n"
738 + "\n"
739 + "or:\n"
740 + "\n"
741 + "\tgit rebase\n"
742 + msgstr ""
743 + "Uiteenlopende takke kan nie vooruitgespoel word nie, jy moet óf:\n"
744 + "\n"
745 + "\tgit merge --no-ff\n"
746 + "\n"
747 + "óf:\n"
748 + "\n"
749 + "\tgit rebase\n"
750 +
751 + msgid "Not possible to fast-forward, aborting."
752 + msgstr "Vooruitspoel is nie moontlik nie, staak."
753 +
754 + #, c-format
755 + msgid ""
756 + "The following paths and/or pathspecs matched paths that exist\n"
757 + "outside of your sparse-checkout definition, so will not be\n"
758 + "updated in the index:\n"
759 + msgstr ""
760 + "Die volgende paaie en/of padspesifikasies pas by paaie wat buite\n"
761 + "jou yl-uitcheck-definisie bestaan, en sal dus nie in die indeks\n"
762 + "bygewerk word nie:\n"
763 +
764 + msgid ""
765 + "If you intend to update such entries, try one of the following:\n"
766 + "* Use the --sparse option.\n"
767 + "* Disable or modify the sparsity rules."
768 + msgstr ""
769 + "As jy van plan is om sulke inskrywings by te werk, probeer een van die "
770 + "volgende:\n"
771 + "* Gebruik die opsie --sparse.\n"
772 + "* Deaktiveer of wysig die yl-reëls."
773 +
774 + #, c-format
775 + msgid ""
776 + "Note: switching to '%s'.\n"
777 + "\n"
778 + "You are in 'detached HEAD' state. You can look around, make experimental\n"
779 + "changes and commit them, and you can discard any commits you make in this\n"
780 + "state without impacting any branches by switching back to a branch.\n"
781 + "\n"
782 + "If you want to create a new branch to retain commits you create, you may\n"
783 + "do so (now or later) by using -c with the switch command. Example:\n"
784 + "\n"
785 + " git switch -c <new-branch-name>\n"
786 + "\n"
787 + "Or undo this operation with:\n"
788 + "\n"
789 + " git switch -\n"
790 + "\n"
791 + "Turn off this advice by setting config variable advice.detachedHead to "
792 + "false\n"
793 + "\n"
794 + msgstr ""
795 + "Let wel: skakel oor na '%s'.\n"
796 + "\n"
797 + "Jy is in 'ontkoppelde HEAD'-toestand. Jy kan rondkyk, eksperimentele\n"
798 + "veranderinge maak en hulle vaslê, en jy kan enige vasleggings wat jy in\n"
799 + "hierdie toestand maak verwerp sonder om enige takke te beïnvloed, deur\n"
800 + "terug te skakel na 'n tak.\n"
801 + "\n"
802 + "As jy 'n nuwe tak wil skep om vasleggings wat jy maak te behou, kan jy\n"
803 + "dit (nou of later) doen deur -c met die switch-opdrag te gebruik. "
804 + "Voorbeeld:\n"
805 + "\n"
806 + " git switch -c <nuwe-taknaam>\n"
807 + "\n"
808 + "Of ontdoen hierdie bewerking met:\n"
809 + "\n"
810 + " git switch -\n"
811 + "\n"
812 + "Skakel hierdie advies af deur die konfigurasieveranderlike "
813 + "advice.detachedHead op false te stel\n"
814 + "\n"
815 +
816 + #, c-format
817 + msgid ""
818 + "The following paths have been moved outside the\n"
819 + "sparse-checkout definition but are not sparse due to local\n"
820 + "modifications.\n"
821 + msgstr ""
822 + "Die volgende paaie is buite die yl-uitcheck-definisie\n"
823 + "geskuif, maar is nie yl nie weens plaaslike\n"
824 + "wysigings.\n"
825 +
826 + msgid ""
827 + "To correct the sparsity of these paths, do the following:\n"
828 + "* Use \"git add --sparse <paths>\" to update the index\n"
829 + "* Use \"git sparse-checkout reapply\" to apply the sparsity rules"
830 + msgstr ""
831 + "Om die ylheid van hierdie paaie reg te stel, doen die volgende:\n"
832 + "* Gebruik \"git add --sparse <paaie>\" om die indeks by te werk\n"
833 + "* Gebruik \"git sparse-checkout reapply\" om die yl-reëls toe te pas"
834 +
835 + msgid "cmdline ends with \\"
836 + msgstr "opdragreël eindig met \\"
837 +
838 + msgid "unclosed quote"
839 + msgstr "ongeslote aanhalingsteken"
840 +
841 + msgid "too many arguments"
842 + msgstr "te veel argumente"
843 +
844 + #, c-format
845 + msgid "unrecognized whitespace option '%s'"
846 + msgstr "onherkende witspasie-opsie '%s'"
847 +
848 + #, c-format
849 + msgid "unrecognized whitespace ignore option '%s'"
850 + msgstr "onherkende witspasie-ignoreeropsie '%s'"
851 +
852 + #, c-format
853 + msgid "options '%s' and '%s' cannot be used together"
854 + msgstr "opsies '%s' en '%s' kan nie saam gebruik word nie"
855 +
856 + #, c-format
857 + msgid "'%s' outside a repository"
858 + msgstr "'%s' buite 'n bewaarplek"
859 +
860 + msgid "failed to read patch"
861 + msgstr "kon nie lap lees nie"
862 +
863 + msgid "patch too large"
864 + msgstr "lap te groot"
865 +
866 + #, c-format
867 + msgid "Cannot prepare timestamp regexp %s"
868 + msgstr "Kan nie tydstempel-regexp %s voorberei nie"
869 +
870 + #, c-format
871 + msgid "regexec returned %d for input: %s"
872 + msgstr "regexec het %d teruggegee vir invoer: %s"
873 +
874 + #, c-format
875 + msgid "unable to find filename in patch at %s:%d"
876 + msgstr "kan nie lêernaam in lap by %s:%d vind nie"
877 +
878 + #, c-format
879 + msgid "git apply: bad git-diff - expected /dev/null, got %s at %s:%d"
880 + msgstr ""
881 + "git apply: slegte git-diff - het /dev/null verwag, het %s gekry by %s:%d"
882 +
883 + #, c-format
884 + msgid "git apply: bad git-diff - expected /dev/null, got %s on line %d"
885 + msgstr ""
886 + "git apply: slegte git-diff - het /dev/null verwag, het %s gekry op reël %d"
887 +
888 + #, c-format
889 + msgid "git apply: bad git-diff - inconsistent new filename at %s:%d"
890 + msgstr "git apply: slegte git-diff - inkonsekwente nuwe lêernaam by %s:%d"
891 +
892 + #, c-format
893 + msgid "git apply: bad git-diff - inconsistent old filename at %s:%d"
894 + msgstr "git apply: slegte git-diff - inkonsekwente ou lêernaam by %s:%d"
895 +
896 + #, c-format
897 + msgid "git apply: bad git-diff - inconsistent new filename on line %d"
898 + msgstr "git apply: slegte git-diff - inkonsekwente nuwe lêernaam op reël %d"
899 +
900 + #, c-format
901 + msgid "git apply: bad git-diff - inconsistent old filename on line %d"
902 + msgstr "git apply: slegte git-diff - inkonsekwente ou lêernaam op reël %d"
903 +
904 + #, c-format
905 + msgid "git apply: bad git-diff - expected /dev/null at %s:%d"
906 + msgstr "git apply: slegte git-diff - het /dev/null verwag by %s:%d"
907 +
908 + #, c-format
909 + msgid "git apply: bad git-diff - expected /dev/null on line %d"
910 + msgstr "git apply: slegte git-diff - het /dev/null verwag op reël %d"
911 +
912 + #, c-format
913 + msgid "invalid mode at %s:%d: %s"
914 + msgstr "ongeldige modus by %s:%d: %s"
915 +
916 + #, c-format
917 + msgid "invalid mode on line %d: %s"
918 + msgstr "ongeldige modus op reël %d: %s"
919 +
920 + #, c-format
921 + msgid "inconsistent header lines %d and %d"
922 + msgstr "inkonsekwente kopstukreëls %d en %d"
923 +
924 + #, c-format
925 + msgid ""
926 + "git diff header lacks filename information when removing %d leading pathname "
927 + "component at %s:%d"
928 + msgid_plural ""
929 + "git diff header lacks filename information when removing %d leading pathname "
930 + "components at %s:%d"
931 + msgstr[0] ""
932 + "kopstuk van git diff kort lêernaaminligting wanneer %d voorste "
933 + "padnaamkomponent verwyder word by %s:%d"
934 + msgstr[1] ""
935 + "kopstuk van git diff kort lêernaaminligting wanneer %d voorste "
936 + "padnaamkomponente verwyder word by %s:%d"
937 +
938 + #, c-format
939 + msgid ""
940 + "git diff header lacks filename information when removing %d leading pathname "
941 + "component (line %d)"
942 + msgid_plural ""
943 + "git diff header lacks filename information when removing %d leading pathname "
944 + "components (line %d)"
945 + msgstr[0] ""
946 + "kopstuk van git diff kort lêernaaminligting wanneer %d voorste "
947 + "padnaamkomponent verwyder word (reël %d)"
948 + msgstr[1] ""
949 + "kopstuk van git diff kort lêernaaminligting wanneer %d voorste "
950 + "padnaamkomponente verwyder word (reël %d)"
951 +
952 + #, c-format
953 + msgid "git diff header lacks filename information at %s:%d"
954 + msgstr "kopstuk van git diff kort lêernaaminligting by %s:%d"
955 +
956 + #, c-format
957 + msgid "git diff header lacks filename information (line %d)"
958 + msgstr "kopstuk van git diff kort lêernaaminligting (reël %d)"
959 +
960 + #, c-format
961 + msgid "recount: unexpected line: %.*s"
962 + msgstr "hertel: onverwagte reël: %.*s"
963 +
964 + #, c-format
965 + msgid "patch fragment without header at %s:%d: %.*s"
966 + msgstr "lapfragment sonder kopstuk by %s:%d: %.*s"
967 +
968 + msgid "new file depends on old contents"
969 + msgstr "nuwe lêer hang van ou inhoud af"
970 +
971 + msgid "deleted file still has contents"
972 + msgstr "geskrapte lêer het steeds inhoud"
973 +
974 + #, c-format
975 + msgid "corrupt patch at %s:%d"
976 + msgstr "korrupte lap by %s:%d"
977 +
978 + #, c-format
979 + msgid "new file %s depends on old contents"
980 + msgstr "nuwe lêer %s hang van ou inhoud af"
981 +
982 + #, c-format
983 + msgid "deleted file %s still has contents"
984 + msgstr "geskrapte lêer %s het steeds inhoud"
985 +
986 + #, c-format
987 + msgid "** warning: file %s becomes empty but is not deleted"
988 + msgstr "** waarskuwing: lêer %s word leeg, maar is nie geskrap nie"
989 +
990 + #, c-format
991 + msgid "corrupt binary patch at %s:%d: %.*s"
992 + msgstr "korrupte binêre lap by %s:%d: %.*s"
993 +
994 + #, c-format
995 + msgid "unrecognized binary patch at %s:%d"
996 + msgstr "onherkende binêre lap by %s:%d"
997 +
998 + #, c-format
999 + msgid "patch with only garbage at %s:%d"
1000 + msgstr "lap met slegs rommel by %s:%d"
1001 +
1002 + #, c-format
1003 + msgid "unable to read symlink %s"
1004 + msgstr "kan nie simboliese skakel %s lees nie"
1005 +
1006 + #, c-format
1007 + msgid "unable to open or read %s"
1008 + msgstr "kan nie %s oopmaak of lees nie"
1009 +
1010 + #, c-format
1011 + msgid "invalid start of line: '%c'"
1012 + msgstr "ongeldige begin van reël: '%c'"
1013 +
1014 + #, c-format
1015 + msgid "Hunk #%d succeeded at %d (offset %d line)."
1016 + msgid_plural "Hunk #%d succeeded at %d (offset %d lines)."
1017 + msgstr[0] "Brok #%d het geslaag by %d (verskuiwing %d reël)."
1018 + msgstr[1] "Brok #%d het geslaag by %d (verskuiwing %d reëls)."
1019 +
1020 + #, c-format
1021 + msgid "Context reduced to (%ld/%ld) to apply fragment at %d"
1022 + msgstr "Konteks verminder tot (%ld/%ld) om fragment by %d toe te pas"
1023 +
1024 + #, c-format
1025 + msgid ""
1026 + "while searching for:\n"
1027 + "%.*s"
1028 + msgstr ""
1029 + "terwyl gesoek is na:\n"
1030 + "%.*s"
1031 +
1032 + #, c-format
1033 + msgid "missing binary patch data for '%s'"
1034 + msgstr "ontbrekende binêre lapdata vir '%s'"
1035 +
1036 + #, c-format
1037 + msgid "cannot reverse-apply a binary patch without the reverse hunk to '%s'"
1038 + msgstr ""
1039 + "kan nie 'n binêre lap omgekeerd toepas sonder die omgekeerde brok op '%s' nie"
1040 +
1041 + #, c-format
1042 + msgid "cannot apply binary patch to '%s' without full index line"
1043 + msgstr "kan nie binêre lap op '%s' toepas sonder volledige indeksreël nie"
1044 +
1045 + #, c-format
1046 + msgid ""
1047 + "the patch applies to '%s' (%s), which does not match the current contents."
1048 + msgstr ""
1049 + "die lap is van toepassing op '%s' (%s), wat nie met die huidige inhoud "
1050 + "ooreenstem nie."
1051 +
1052 + #, c-format
1053 + msgid "the patch applies to an empty '%s' but it is not empty"
1054 + msgstr "die lap is van toepassing op 'n leë '%s', maar dit is nie leeg nie"
1055 +
1056 + #, c-format
1057 + msgid "the necessary postimage %s for '%s' cannot be read"
1058 + msgstr "die nodige na-beeld %s vir '%s' kan nie gelees word nie"
1059 +
1060 + #, c-format
1061 + msgid "binary patch does not apply to '%s'"
1062 + msgstr "binêre lap is nie op '%s' van toepassing nie"
1063 +
1064 + #, c-format
1065 + msgid "binary patch to '%s' creates incorrect result (expecting %s, got %s)"
1066 + msgstr ""
1067 + "binêre lap op '%s' lewer verkeerde resultaat (het %s verwag, het %s gekry)"
1068 +
1069 + #, c-format
1070 + msgid "patch failed: %s:%ld"
1071 + msgstr "lap het misluk: %s:%ld"
1072 +
1073 + #, c-format
1074 + msgid "cannot checkout %s"
1075 + msgstr "kan nie %s uitcheck nie"
1076 +
1077 + #, c-format
1078 + msgid "failed to read %s"
1079 + msgstr "kon nie %s lees nie"
1080 +
1081 + #, c-format
1082 + msgid "reading from '%s' beyond a symbolic link"
1083 + msgstr "lees vanaf '%s' agter 'n simboliese skakel"
1084 +
1085 + #, c-format
1086 + msgid "path %s has been renamed/deleted"
1087 + msgstr "pad %s is hernoem/geskrap"
1088 +
1089 + #, c-format
1090 + msgid "%s: does not exist in index"
1091 + msgstr "%s: bestaan nie in indeks nie"
1092 +
1093 + #, c-format
1094 + msgid "%s: does not match index"
1095 + msgstr "%s: stem nie met indeks ooreen nie"
1096 +
1097 + msgid "repository lacks the necessary blob to perform 3-way merge."
1098 + msgstr ""
1099 + "bewaarplek kort die nodige blob om 'n 3-rigting-saamsmelting uit te voer."
1100 +
1101 + #, c-format
1102 + msgid "Performing three-way merge...\n"
1103 + msgstr "Voer drierigting-saamsmelting uit...\n"
1104 +
1105 + #, c-format
1106 + msgid "cannot read the current contents of '%s'"
1107 + msgstr "kan nie die huidige inhoud van '%s' lees nie"
1108 +
1109 + #, c-format
1110 + msgid "Failed to perform three-way merge...\n"
1111 + msgstr "Kon nie drierigting-saamsmelting uitvoer nie...\n"
1112 +
1113 + #, c-format
1114 + msgid "Applied patch to '%s' with conflicts.\n"
1115 + msgstr "Lap op '%s' toegepas met konflikte.\n"
1116 +
1117 + #, c-format
1118 + msgid "Applied patch to '%s' cleanly.\n"
1119 + msgstr "Lap skoon op '%s' toegepas.\n"
1120 +
1121 + #, c-format
1122 + msgid "Falling back to direct application...\n"
1123 + msgstr "Val terug op direkte toepassing...\n"
1124 +
1125 + msgid "removal patch leaves file contents"
1126 + msgstr "verwyderingslap laat lêerinhoud agter"
1127 +
1128 + #, c-format
1129 + msgid "%s: wrong type"
1130 + msgstr "%s: verkeerde tipe"
1131 +
1132 + #, c-format
1133 + msgid "%s has type %o, expected %o"
1134 + msgstr "%s het tipe %o, %o verwag"
1135 +
1136 + #, c-format
1137 + msgid "invalid path '%s'"
1138 + msgstr "ongeldige pad '%s'"
1139 +
1140 + #, c-format
1141 + msgid "%s: already exists in index"
1142 + msgstr "%s: bestaan reeds in indeks"
1143 +
1144 + #, c-format
1145 + msgid "%s: already exists in working directory"
1146 + msgstr "%s: bestaan reeds in werkgids"
1147 +
1148 + #, c-format
1149 + msgid "new mode (%o) of %s does not match old mode (%o)"
1150 + msgstr "nuwe modus (%o) van %s stem nie ooreen met ou modus (%o) nie"
1151 +
1152 + #, c-format
1153 + msgid "new mode (%o) of %s does not match old mode (%o) of %s"
1154 + msgstr "nuwe modus (%o) van %s stem nie ooreen met ou modus (%o) van %s nie"
1155 +
1156 + #, c-format
1157 + msgid "affected file '%s' is beyond a symbolic link"
1158 + msgstr "geaffekteerde lêer '%s' is agter 'n simboliese skakel"
1159 +
1160 + #, c-format
1161 + msgid "%s: patch does not apply"
1162 + msgstr "%s: lap is nie van toepassing nie"
1163 +
1164 + #, c-format
1165 + msgid "Checking patch %s..."
1166 + msgstr "Kontroleer lap %s..."
1167 +
1168 + #, c-format
1169 + msgid "sha1 information is lacking or useless for submodule %s"
1170 + msgstr "sha1-inligting ontbreek of is nutteloos vir submodule %s"
1171 +
1172 + #, c-format
1173 + msgid "mode change for %s, which is not in current HEAD"
1174 + msgstr "modusverandering vir %s, wat nie in huidige HEAD is nie"
1175 +
1176 + #, c-format
1177 + msgid "sha1 information is lacking or useless (%s)."
1178 + msgstr "sha1-inligting ontbreek of is nutteloos (%s)."
1179 +
1180 + #, c-format
1181 + msgid "could not add %s to temporary index"
1182 + msgstr "kon nie %s by tydelike indeks voeg nie"
1183 +
1184 + #, c-format
1185 + msgid "could not write temporary index to %s"
1186 + msgstr "kon nie tydelike indeks na %s skryf nie"
1187 +
1188 + #, c-format
1189 + msgid "unable to remove %s from index"
1190 + msgstr "kan nie %s uit indeks verwyder nie"
1191 +
1192 + #, c-format
1193 + msgid "corrupt patch for submodule %s"
1194 + msgstr "korrupte lap vir submodule %s"
1195 +
1196 + #, c-format
1197 + msgid "unable to stat newly created file '%s'"
1198 + msgstr "kan nie stat op nuutgeskepte lêer '%s' uitvoer nie"
1199 +
1200 + #, c-format
1201 + msgid "unable to create backing store for newly created file %s"
1202 + msgstr "kan nie rugsteunberging vir nuutgeskepte lêer %s skep nie"
1203 +
1204 + #, c-format
1205 + msgid "unable to add cache entry for %s"
1206 + msgstr "kan nie kasinskrywing vir %s byvoeg nie"
1207 +
1208 + #, c-format
1209 + msgid "failed to write to '%s'"
1210 + msgstr "kon nie na '%s' skryf nie"
1211 +
1212 + #, c-format
1213 + msgid "closing file '%s'"
1214 + msgstr "maak lêer '%s' toe"
1215 +
1216 + #, c-format
1217 + msgid "unable to write file '%s' mode %o"
1218 + msgstr "kan nie lêer '%s' met modus %o skryf nie"
1219 +
1220 + #, c-format
1221 + msgid "Applied patch %s cleanly."
1222 + msgstr "Lap %s skoon toegepas."
1223 +
1224 + msgid "internal error"
1225 + msgstr "interne fout"
1226 +
1227 + #, c-format
1228 + msgid "Applying patch %%s with %d reject..."
1229 + msgid_plural "Applying patch %%s with %d rejects..."
1230 + msgstr[0] "Pas lap %%s toe met %d verwerping..."
1231 + msgstr[1] "Pas lap %%s toe met %d verwerpings..."
1232 +
1233 + #, c-format
1234 + msgid "cannot open %s"
1235 + msgstr "kan nie %s oopmaak nie"
1236 +
1237 + #, c-format
1238 + msgid "cannot unlink '%s'"
1239 + msgstr "kan nie '%s' ontkoppel nie"
1240 +
1241 + #, c-format
1242 + msgid "Hunk #%d applied cleanly."
1243 + msgstr "Brok #%d skoon toegepas."
1244 +
1245 + #, c-format
1246 + msgid "Rejected hunk #%d."
1247 + msgstr "Brok #%d verwerp."
1248 +
1249 + #, c-format
1250 + msgid "Skipped patch '%s'."
1251 + msgstr "Lap '%s' oorgeslaan."
1252 +
1253 + msgid "No valid patches in input (allow with \"--allow-empty\")"
1254 + msgstr "Geen geldige lappe in invoer nie (laat toe met \"--allow-empty\")"
1255 +
1256 + msgid "unable to read index file"
1257 + msgstr "kan nie indekslêer lees nie"
1258 +
1259 + #, c-format
1260 + msgid "option -p expects a non-negative integer, got '%s'"
1261 + msgstr "opsie -p verwag 'n nie-negatiewe heelgetal, het '%s' gekry"
1262 +
1263 + #, c-format
1264 + msgid "unable to normalize directory: '%s'"
1265 + msgstr "kan nie gids normaliseer nie: '%s'"
1266 +
1267 + #, c-format
1268 + msgid "can't open patch '%s': %s"
1269 + msgstr "kan nie lap '%s' oopmaak nie: %s"
1270 +
1271 + #, c-format
1272 + msgid "squelched %d whitespace error"
1273 + msgid_plural "squelched %d whitespace errors"
1274 + msgstr[0] "%d witspasiefout onderdruk"
1275 + msgstr[1] "%d witspasiefoute onderdruk"
1276 +
1277 + #, c-format
1278 + msgid "%d line adds whitespace errors."
1279 + msgid_plural "%d lines add whitespace errors."
1280 + msgstr[0] "%d reël voeg witspasiefoute by."
1281 + msgstr[1] "%d reëls voeg witspasiefoute by."
1282 +
1283 + #, c-format
1284 + msgid "%d line applied after fixing whitespace errors."
1285 + msgid_plural "%d lines applied after fixing whitespace errors."
1286 + msgstr[0] "%d reël toegepas nadat witspasiefoute reggestel is."
1287 + msgstr[1] "%d reëls toegepas nadat witspasiefoute reggestel is."
1288 +
1289 + msgid "Unable to write new index file"
1290 + msgstr "Kan nie nuwe indekslêer skryf nie"
1291 +
1292 + msgid "don't apply changes matching the given path"
1293 + msgstr "moenie veranderinge toepas wat by die gegewe pad pas nie"
1294 +
1295 + msgid "apply changes matching the given path"
1296 + msgstr "pas veranderinge toe wat by die gegewe pad pas"
1297 +
1298 + msgid "num"
1299 + msgstr "getal"
1300 +
1301 + msgid "remove <num> leading slashes from traditional diff paths"
1302 + msgstr "verwyder <getal> voorste skuinsstrepe van tradisionele diff-paaie"
1303 +
1304 + msgid "ignore additions made by the patch"
1305 + msgstr "ignoreer toevoegings wat deur die lap gemaak is"
1306 +
1307 + msgid "instead of applying the patch, output diffstat for the input"
1308 + msgstr ""
1309 + "in plaas daarvan om die lap toe te pas, voer diffstat vir die invoer af"
1310 +
1311 + msgid "show number of added and deleted lines in decimal notation"
1312 + msgstr "wys aantal bygevoegde en geskrapte reëls in desimale notasie"
1313 +
1314 + msgid "instead of applying the patch, output a summary for the input"
1315 + msgstr ""
1316 + "in plaas daarvan om die lap toe te pas, voer 'n opsomming vir die invoer af"
1317 +
1318 + msgid "instead of applying the patch, see if the patch is applicable"
1319 + msgstr ""
1320 + "in plaas daarvan om die lap toe te pas, kyk of die lap van toepassing is"
1321 +
1322 + msgid "make sure the patch is applicable to the current index"
1323 + msgstr "maak seker dat die lap op die huidige indeks van toepassing is"
1324 +
1325 + msgid "mark new files with `git add --intent-to-add`"
1326 + msgstr "merk nuwe lêers met `git add --intent-to-add`"
1327 +
1328 + msgid "apply a patch without touching the working tree"
1329 + msgstr "pas 'n lap toe sonder om die werkboom aan te raak"
1330 +
1331 + msgid "accept a patch that touches outside the working area"
1332 + msgstr "aanvaar 'n lap wat buite die werkarea raak"
1333 +
1334 + msgid "also apply the patch (use with --stat/--summary/--check)"
1335 + msgstr "pas ook die lap toe (gebruik met --stat/--summary/--check)"
1336 +
1337 + msgid "attempt three-way merge, fall back on normal patch if that fails"
1338 + msgstr ""
1339 + "probeer drierigting-saamsmelting, val terug op normale lap as dit misluk"
1340 +
1341 + msgid "for conflicts, use our version"
1342 + msgstr "gebruik ons weergawe vir konflikte"
1343 +
1344 + msgid "for conflicts, use their version"
1345 + msgstr "gebruik hulle weergawe vir konflikte"
1346 +
1347 + msgid "for conflicts, use a union version"
1348 + msgstr "gebruik 'n verenigde weergawe vir konflikte"
1349 +
1350 + msgid "build a temporary index based on embedded index information"
1351 + msgstr "bou 'n tydelike indeks gebaseer op ingebedde indeksinligting"
1352 +
1353 + msgid "paths are separated with NUL character"
1354 + msgstr "paaie word met NUL-karakter geskei"
1355 +
1356 + msgid "ensure at least <n> lines of context match"
1357 + msgstr "verseker dat ten minste <n> konteksreëls ooreenstem"
1358 +
1359 + msgid "action"
1360 + msgstr "aksie"
1361 +
1362 + msgid "detect new or modified lines that have whitespace errors"
1363 + msgstr "bespeur nuwe of gewysigde reëls wat witspasiefoute het"
1364 +
1365 + msgid "ignore changes in whitespace when finding context"
1366 + msgstr "ignoreer veranderinge in witspasie wanneer konteks gesoek word"
1367 +
1368 + msgid "apply the patch in reverse"
1369 + msgstr "pas die lap omgekeerd toe"
1370 +
1371 + msgid "don't expect at least one line of context"
1372 + msgstr "moenie ten minste een konteksreël verwag nie"
1373 +
1374 + msgid "leave the rejected hunks in corresponding *.rej files"
1375 + msgstr "laat die verwerpte brokke in ooreenstemmende *.rej-lêers"
1376 +
1377 + msgid "allow overlapping hunks"
1378 + msgstr "laat oorvleuelende brokke toe"
1379 +
1380 + msgid "tolerate incorrectly detected missing new-line at the end of file"
1381 + msgstr ""
1382 + "verdra verkeerdelik bespeurde ontbrekende nuwe reël aan die einde van lêer"
1383 +
1384 + msgid "do not trust the line counts in the hunk headers"
1385 + msgstr "moenie die reëltellings in die brokkopstukke vertrou nie"
1386 +
1387 + msgid "root"
1388 + msgstr "wortel"
1389 +
1390 + msgid "prepend <root> to all filenames"
1391 + msgstr "voeg <wortel> voor alle lêername"
1392 +
1393 + msgid "don't return error for empty patches"
1394 + msgstr "moenie fout teruggee vir leë lappe nie"
1395 +
1396 + msgid "--ours, --theirs, and --union require --3way"
1397 + msgstr "--ours, --theirs en --union vereis --3way"
1398 +
1399 + #, c-format
1400 + msgid "cannot stream blob %s"
1401 + msgstr "kan nie blob %s stroom nie"
1402 +
1403 + #, c-format
1404 + msgid "unsupported file mode: 0%o (SHA1: %s)"
1405 + msgstr "nie-ondersteunde lêermodus: 0%o (SHA1: %s)"
1406 +
1407 + #, c-format
1408 + msgid "deflate error (%d)"
1409 + msgstr "deflate-fout (%d)"
1410 +
1411 + #, c-format
1412 + msgid "unable to start '%s' filter"
1413 + msgstr "kan nie '%s'-filter begin nie"
1414 +
1415 + msgid "unable to redirect descriptor"
1416 + msgstr "kan nie beskrywer herlei nie"
1417 +
1418 + #, c-format
1419 + msgid "'%s' filter reported error"
1420 + msgstr "'%s'-filter het fout gerapporteer"
1421 +
1422 + #, c-format
1423 + msgid "path is not valid UTF-8: %s"
1424 + msgstr "pad is nie geldige UTF-8 nie: %s"
1425 +
1426 + #, c-format
1427 + msgid "path too long (%d chars, SHA1: %s): %s"
1428 + msgstr "pad te lank (%d karakters, SHA1: %s): %s"
1429 +
1430 + #, c-format
1431 + msgid "timestamp too large for this system: %<PRIuMAX>"
1432 + msgstr "tydstempel te groot vir hierdie stelsel: %<PRIuMAX>"
1433 +
1434 + msgid "git archive [<options>] <tree-ish> [<path>...]"
1435 + msgstr "git archive [<opsies>] <boomagtige> [<pad>...]"
1436 +
1437 + msgid ""
1438 + "git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...]"
1439 + msgstr ""
1440 + "git archive --remote <bewaarplek> [--exec <opdrag>] [<opsies>] <boomagtige> "
1441 + "[<pad>...]"
1442 +
1443 + msgid "git archive --remote <repo> [--exec <cmd>] --list"
1444 + msgstr "git archive --remote <bewaarplek> [--exec <opdrag>] --list"
1445 +
1446 + #, c-format
1447 + msgid "cannot read '%s'"
1448 + msgstr "kan nie '%s' lees nie"
1449 +
1450 + #, c-format
1451 + msgid "pathspec '%s' matches files outside the current directory"
1452 + msgstr "padspesifikasie '%s' pas by lêers buite die huidige gids"
1453 +
1454 + #, c-format
1455 + msgid "pathspec '%s' did not match any files"
1456 + msgstr "padspesifikasie '%s' het nie by enige lêers gepas nie"
1457 +
1458 + #, c-format
1459 + msgid "no such ref: %.*s"
1460 + msgstr "geen sodanige verwysing nie: %.*s"
1461 +
1462 + #, c-format
1463 + msgid "not a valid object name: %s"
1464 + msgstr "nie 'n geldige objeknaam nie: %s"
1465 +
1466 + #, c-format
1467 + msgid "not a tree object: %s"
1468 + msgstr "nie 'n boomobjek nie: %s"
1469 +
1470 + #, c-format
1471 + msgid "failed to unpack tree object %s"
1472 + msgstr "kon nie boomobjek %s uitpak nie"
1473 +
1474 + #, c-format
1475 + msgid "File not found: %s"
1476 + msgstr "Lêer nie gevind nie: %s"
1477 +
1478 + #, c-format
1479 + msgid "Not a regular file: %s"
1480 + msgstr "Nie 'n gewone lêer nie: %s"
1481 +
1482 + #, c-format
1483 + msgid "unclosed quote: '%s'"
1484 + msgstr "ongeslote aanhalingsteken: '%s'"
1485 +
1486 + #, c-format
1487 + msgid "missing colon: '%s'"
1488 + msgstr "ontbrekende dubbelpunt: '%s'"
1489 +
1490 + #, c-format
1491 + msgid "empty file name: '%s'"
1492 + msgstr "leë lêernaam: '%s'"
1493 +
1494 + msgid "fmt"
1495 + msgstr "formaat"
1496 +
1497 + msgid "archive format"
1498 + msgstr "argiefformaat"
1499 +
1500 + msgid "prefix"
1501 + msgstr "voorvoegsel"
1502 +
1503 + msgid "prepend prefix to each pathname in the archive"
1504 + msgstr "voeg voorvoegsel voor elke padnaam in die argief"
1505 +
1506 + msgid "file"
1507 + msgstr "lêer"
1508 +
1509 + msgid "add untracked file to archive"
1510 + msgstr "voeg onnaspoorbare lêer by argief"
1511 +
1512 + msgid "path:content"
1513 + msgstr "pad:inhoud"
1514 +
1515 + msgid "write the archive to this file"
1516 + msgstr "skryf die argief na hierdie lêer"
1517 +
1518 + msgid "read .gitattributes in working directory"
1519 + msgstr "lees .gitattributes in werkgids"
1520 +
1521 + msgid "report archived files on stderr"
1522 + msgstr "rapporteer geargiveerde lêers op stderr"
1523 +
1524 + msgid "time"
1525 + msgstr "tyd"
1526 +
1527 + msgid "set modification time of archive entries"
1528 + msgstr "stel wysigingstyd van argiefinskrywings"
1529 +
1530 + msgid "set compression level"
1531 + msgstr "stel kompressievlak"
1532 +
1533 + msgid "list supported archive formats"
1534 + msgstr "lys ondersteunde argiefformate"
1535 +
1536 + msgid "repo"
1537 + msgstr "bewaarplek"
1538 +
1539 + msgid "retrieve the archive from remote repository <repo>"
1540 + msgstr "haal die argief van afgeleë bewaarplek <bewaarplek>"
1541 +
1542 + msgid "command"
1543 + msgstr "opdrag"
1544 +
1545 + msgid "path to the remote git-upload-archive command"
1546 + msgstr "pad na die afgeleë opdrag git-upload-archive"
1547 +
1548 + msgid "Unexpected option --remote"
1549 + msgstr "Onverwagte opsie --remote"
1550 +
1551 + #, c-format
1552 + msgid "the option '%s' requires '%s'"
1553 + msgstr "die opsie '%s' vereis '%s'"
1554 +
1555 + msgid "Unexpected option --output"
1556 + msgstr "Onverwagte opsie --output"
1557 +
1558 + #, c-format
1559 + msgid "extra command line parameter '%s'"
1560 + msgstr "ekstra opdragreëlparameter '%s'"
1561 +
1562 + #, c-format
1563 + msgid "Unknown archive format '%s'"
1564 + msgstr "Onbekende argiefformaat '%s'"
1565 +
1566 + #, c-format
1567 + msgid "Argument not supported for format '%s': -%d"
1568 + msgstr "Argument nie ondersteun vir formaat '%s' nie: -%d"
1569 +
1570 + #, c-format
1571 + msgid "%.*s is not a valid attribute name"
1572 + msgstr "%.*s is nie 'n geldige attribuutnaam nie"
1573 +
1574 + msgid "unable to add additional attribute"
1575 + msgstr "kan nie bykomende attribuut byvoeg nie"
1576 +
1577 + #, c-format
1578 + msgid "ignoring overly long attributes line %d"
1579 + msgstr "ignoreer oormatig lang attribuutreël %d"
1580 +
1581 + #, c-format
1582 + msgid "%s not allowed: %s:%d"
1583 + msgstr "%s nie toegelaat nie: %s:%d"
1584 +
1585 + msgid ""
1586 + "Negative patterns are ignored in git attributes\n"
1587 + "Use '\\!' for literal leading exclamation."
1588 + msgstr ""
1589 + "Negatiewe patrone word in Git-attribute geïgnoreer\n"
1590 + "Gebruik '\\!' vir 'n letterlike voorste uitroepteken."
1591 +
1592 + #, c-format
1593 + msgid "cannot fstat gitattributes file '%s'"
1594 + msgstr "kan nie fstat op gitattributes-lêer '%s' uitvoer nie"
1595 +
1596 + #, c-format
1597 + msgid "ignoring overly large gitattributes file '%s'"
1598 + msgstr "ignoreer oormatig groot gitattributes-lêer '%s'"
1599 +
1600 + #, c-format
1601 + msgid "ignoring overly large gitattributes blob '%s'"
1602 + msgstr "ignoreer oormatig groot gitattributes-blob '%s'"
1603 +
1604 + msgid "cannot use --attr-source or GIT_ATTR_SOURCE without repo"
1605 + msgstr "kan nie --attr-source of GIT_ATTR_SOURCE sonder bewaarplek gebruik nie"
1606 +
1607 + msgid "bad --attr-source or GIT_ATTR_SOURCE"
1608 + msgstr "slegte --attr-source of GIT_ATTR_SOURCE"
1609 +
1610 + #, c-format
1611 + msgid "unable to stat '%s'"
1612 + msgstr "kan nie stat op '%s' uitvoer nie"
1613 +
1614 + #, c-format
1615 + msgid "unable to read %s"
1616 + msgstr "kan nie %s lees nie"
1617 +
1618 + #, c-format
1619 + msgid "Badly quoted content in file '%s': %s"
1620 + msgstr "Sleg aangehaalde inhoud in lêer '%s': %s"
1621 +
1622 + #, c-format
1623 + msgid "We cannot bisect more!\n"
1624 + msgstr "Ons kan nie verder halveer nie!\n"
1625 +
1626 + #, c-format
1627 + msgid "Not a valid commit name %s"
1628 + msgstr "Nie 'n geldige vasleggingnaam nie: %s"
1629 +
1630 + #, c-format
1631 + msgid ""
1632 + "The merge base %s is bad.\n"
1633 + "This means the bug has been fixed between %s and [%s].\n"
1634 + msgstr ""
1635 + "Die saamsmeltbasis %s is sleg.\n"
1636 + "Dit beteken die fout is tussen %s en [%s] reggestel.\n"
1637 +
1638 + #, c-format
1639 + msgid ""
1640 + "The merge base %s is new.\n"
1641 + "The property has changed between %s and [%s].\n"
1642 + msgstr ""
1643 + "Die saamsmeltbasis %s is nuut.\n"
1644 + "Die eienskap het tussen %s en [%s] verander.\n"
1645 +
1646 + #, c-format
1647 + msgid ""
1648 + "The merge base %s is '%s'.\n"
1649 + "This means the first '%s' commit is between %s and [%s].\n"
1650 + msgstr ""
1651 + "Die saamsmeltbasis %s is '%s'.\n"
1652 + "Dit beteken die eerste '%s'-vaslegging is tussen %s en [%s].\n"
1653 +
1654 + #, c-format
1655 + msgid ""
1656 + "Some '%s' revs are not ancestors of the '%s' rev.\n"
1657 + "git bisect cannot work properly in this case.\n"
1658 + "Maybe you mistook '%s' and '%s' revs?\n"
1659 + msgstr ""
1660 + "Sommige '%s'-hersienings is nie voorsate van die '%s'-hersiening nie.\n"
1661 + "git bisect kan nie in hierdie geval behoorlik werk nie.\n"
1662 + "Het jy dalk '%s'- en '%s'-hersienings verwar?\n"
1663 +
1664 + #, c-format
1665 + msgid ""
1666 + "the merge base between %s and [%s] must be skipped.\n"
1667 + "So we cannot be sure the first '%s' commit is between %s and %s.\n"
1668 + "We continue anyway."
1669 + msgstr ""
1670 + "die saamsmeltbasis tussen %s en [%s] moet oorgeslaan word.\n"
1671 + "Ons kan dus nie seker wees dat die eerste '%s'-vaslegging tussen %s en %s is "
1672 + "nie.\n"
1673 + "Ons gaan in elk geval voort."
1674 +
1675 + #, c-format
1676 + msgid "Bisecting: a merge base must be tested\n"
1677 + msgstr "Halveer: 'n saamsmeltbasis moet getoets word\n"
1678 +
1679 + #, c-format
1680 + msgid "a '%s' revision is needed"
1681 + msgstr "'n '%s'-hersiening is nodig"
1682 +
1683 + #, c-format
1684 + msgid "could not create file '%s'"
1685 + msgstr "kon nie lêer '%s' skep nie"
1686 +
1687 + #, c-format
1688 + msgid "unable to start 'show' for object '%s'"
1689 + msgstr "kan nie 'show' vir objek '%s' begin nie"
1690 +
1691 + #, c-format
1692 + msgid "could not read file '%s'"
1693 + msgstr "kon nie lêer '%s' lees nie"
1694 +
1695 + #, c-format
1696 + msgid "could not read bad term from file '%s'"
1697 + msgstr "kon nie slegte term uit lêer '%s' lees nie"
1698 +
1699 + #, c-format
1700 + msgid "could not read good term from file '%s'"
1701 + msgstr "kon nie goeie term uit lêer '%s' lees nie"
1702 +
1703 + msgid "reading bisect refs failed"
1704 + msgstr "kon nie halveringsverwysings lees nie"
1705 +
1706 + #, c-format
1707 + msgid "%s was both '%s' and '%s'\n"
1708 + msgstr "%s was beide '%s' en '%s'\n"
1709 +
1710 + #, c-format
1711 + msgid ""
1712 + "No testable commit found.\n"
1713 + "Maybe you started with bad path arguments?\n"
1714 + msgstr ""
1715 + "Geen toetsbare vaslegging gevind nie.\n"
1716 + "Het jy dalk met slegte padargumente begin?\n"
1717 +
1718 + #, c-format
1719 + msgid "(roughly %d step)"
1720 + msgid_plural "(roughly %d steps)"
1721 + msgstr[0] "(ongeveer %d stap)"
1722 + msgstr[1] "(ongeveer %d stappe)"
1723 +
1724 + #. TRANSLATORS: the last %s will be replaced with "(roughly %d
1725 + #. steps)" translation.
1726 + #.
1727 + #, c-format
1728 + msgid "Bisecting: %d revision left to test after this %s\n"
1729 + msgid_plural "Bisecting: %d revisions left to test after this %s\n"
1730 + msgstr[0] "Halvering: %d hersiening oor om te toets ná hierdie een %s\n"
1731 + msgstr[1] "Halvering: %d hersienings oor om te toets ná hierdie een %s\n"
1732 +
1733 + msgid "--contents and --reverse do not blend well."
1734 + msgstr "--contents en --reverse werk nie goed saam nie."
1735 +
1736 + msgid "--reverse and --first-parent together require specified latest commit"
1737 + msgstr ""
1738 + "--reverse en --first-parent saam vereis 'n gespesifiseerde jongste vaslegging"
1739 +
1740 + msgid "revision walk setup failed"
1741 + msgstr "hersieningswandeling-opstelling het misluk"
1742 +
1743 + msgid ""
1744 + "--reverse --first-parent together require range along first-parent chain"
1745 + msgstr ""
1746 + "--reverse --first-parent saam vereis 'n reeks langs die eerste-ouer-ketting"
1747 +
1748 + #, c-format
1749 + msgid "no such path %s in %s"
1750 + msgstr "geen pad %s in %s nie"
1751 +
1752 + #, c-format
1753 + msgid "cannot read blob %s for path %s"
1754 + msgstr "kan nie blob %s vir pad %s lees nie"
1755 +
1756 + msgid ""
1757 + "cannot inherit upstream tracking configuration of multiple refs when "
1758 + "rebasing is requested"
1759 + msgstr ""
1760 + "kan nie stroomop-volgkonfigurasie van veelvuldige verwysings erf wanneer "
1761 + "herbasering versoek word nie"
1762 +
1763 + #, c-format
1764 + msgid "not setting branch '%s' as its own upstream"
1765 + msgstr "tak '%s' word nie as sy eie stroomop gestel nie"
1766 +
1767 + #, c-format
1768 + msgid "branch '%s' set up to track '%s' by rebasing."
1769 + msgstr "tak '%s' is opgestel om '%s' deur herbasering te volg."
1770 +
1771 + #, c-format
1772 + msgid "branch '%s' set up to track '%s'."
1773 + msgstr "tak '%s' is opgestel om '%s' te volg."
1774 +
1775 + #, c-format
1776 + msgid "branch '%s' set up to track:"
1777 + msgstr "tak '%s' is opgestel om te volg:"
1778 +
1779 + msgid "unable to write upstream branch configuration"
1780 + msgstr "kan nie stroomop-takkonfigurasie skryf nie"
1781 +
1782 + msgid ""
1783 + "\n"
1784 + "After fixing the error cause you may try to fix up\n"
1785 + "the remote tracking information by invoking:"
1786 + msgstr ""
1787 + "\n"
1788 + "Nadat jy die oorsaak van die fout reggestel het, kan jy probeer\n"
1789 + "om die afgeleë volginligting reg te stel deur die volgende uit te voer:"
1790 +
1791 + #, c-format
1792 + msgid "asked to inherit tracking from '%s', but no remote is set"
1793 + msgstr "gevra om volging van '%s' te erf, maar geen afgeleë is gestel nie"
1794 +
1795 + #, c-format
1796 + msgid "asked to inherit tracking from '%s', but no merge configuration is set"
1797 + msgstr ""
1798 + "gevra om volging van '%s' te erf, maar geen saamsmeltkonfigurasie is gestel "
1799 + "nie"
1800 +
1801 + #, c-format
1802 + msgid "not tracking: ambiguous information for ref '%s'"
1803 + msgstr "volg nie: dubbelsinnige inligting vir verwysing '%s'"
1804 +
1805 + #. #-#-#-#-# branch.c.po #-#-#-#-#
1806 + #. TRANSLATORS: This is a line listing a remote with duplicate
1807 + #. refspecs in the advice message below. For RTL languages you'll
1808 + #. probably want to swap the "%s" and leading " " space around.
1809 + #.
1810 + #. #-#-#-#-# object-name.c.po #-#-#-#-#
1811 + #. TRANSLATORS: This is line item of ambiguous object output
1812 + #. from describe_ambiguous_object() above. For RTL languages
1813 + #. you'll probably want to swap the "%s" and leading " " space
1814 + #. around.
1815 + #.
1816 + #, c-format
1817 + msgid " %s\n"
1818 + msgstr " %s\n"
1819 +
1820 + #. TRANSLATORS: The second argument is a \n-delimited list of
1821 + #. duplicate refspecs, composed above.
1822 + #.
1823 + #, c-format
1824 + msgid ""
1825 + "There are multiple remotes whose fetch refspecs map to the remote\n"
1826 + "tracking ref '%s':\n"
1827 + "%s\n"
1828 + "This is typically a configuration error.\n"
1829 + "\n"
1830 + "To support setting up tracking branches, ensure that\n"
1831 + "different remotes' fetch refspecs map into different\n"
1832 + "tracking namespaces."
1833 + msgstr ""
1834 + "Daar is veelvuldige afgeleës waarvan die haal-verwysingspesifikasies na die\n"
1835 + "afgeleë volgverwysing '%s' karteer:\n"
1836 + "%s\n"
1837 + "Dit is gewoonlik 'n konfigurasiefout.\n"
1838 + "\n"
1839 + "Om die opstel van volgtakke te ondersteun, maak seker dat\n"
1840 + "verskillende afgeleës se haal-verwysingspesifikasies na verskillende\n"
1841 + "volg-naamruimtes karteer."
1842 +
1843 + #, c-format
1844 + msgid "'%s' is not a valid branch name"
1845 + msgstr "'%s' is nie 'n geldige taknaam nie"
1846 +
1847 + msgid "See 'git help check-ref-format'"
1848 + msgstr "Sien 'git help check-ref-format'"
1849 +
1850 + #, c-format
1851 + msgid "a branch named '%s' already exists"
1852 + msgstr "'n tak genaamd '%s' bestaan reeds"
1853 +
1854 + #, c-format
1855 + msgid "cannot force update the branch '%s' used by worktree at '%s'"
1856 + msgstr ""
1857 + "kan nie tak '%s' wat deur die werkboom by '%s' gebruik word, geforseerd "
1858 + "bywerk nie"
1859 +
1860 + #, c-format
1861 + msgid "cannot set up tracking information; starting point '%s' is not a branch"
1862 + msgstr "kan nie volginligting opstel nie; beginpunt '%s' is nie 'n tak nie"
1863 +
1864 + #, c-format
1865 + msgid "the requested upstream branch '%s' does not exist"
1866 + msgstr "die versoekte stroomop-tak '%s' bestaan nie"
1867 +
1868 + msgid ""
1869 + "\n"
1870 + "If you are planning on basing your work on an upstream\n"
1871 + "branch that already exists at the remote, you may need to\n"
1872 + "run \"git fetch\" to retrieve it.\n"
1873 + "\n"
1874 + "If you are planning to push out a new local branch that\n"
1875 + "will track its remote counterpart, you may want to use\n"
1876 + "\"git push -u\" to set the upstream config as you push."
1877 + msgstr ""
1878 + "\n"
1879 + "As jy beplan om jou werk op 'n stroomop-tak te baseer wat\n"
1880 + "reeds by die afgeleë bestaan, moet jy dalk \"git fetch\"\n"
1881 + "uitvoer om dit te haal.\n"
1882 + "\n"
1883 + "As jy beplan om 'n nuwe plaaslike tak uit te stoot wat sy\n"
1884 + "afgeleë eweknie sal volg, wil jy dalk \"git push -u\" gebruik\n"
1885 + "om die stroomop-konfigurasie te stel terwyl jy stoot."
1886 +
1887 + #, c-format
1888 + msgid "not a valid object name: '%s'"
1889 + msgstr "nie 'n geldige objeknaam nie: '%s'"
1890 +
1891 + #, c-format
1892 + msgid "ambiguous object name: '%s'"
1893 + msgstr "dubbelsinnige objeknaam: '%s'"
1894 +
1895 + #, c-format
1896 + msgid "not a valid branch point: '%s'"
1897 + msgstr "nie 'n geldige vertakkingspunt nie: '%s'"
1898 +
1899 + #, c-format
1900 + msgid "submodule '%s': unable to find submodule"
1901 + msgstr "submodule '%s': kan nie submodule vind nie"
1902 +
1903 + #, c-format
1904 + msgid ""
1905 + "You may try updating the submodules using 'git checkout --no-recurse-"
1906 + "submodules %s && git submodule update --init'"
1907 + msgstr ""
1908 + "Jy kan probeer om die submodules by te werk met 'git checkout --no-recurse-"
1909 + "submodules %s && git submodule update --init'"
1910 +
1911 + #, c-format
1912 + msgid "submodule '%s': cannot create branch '%s'"
1913 + msgstr "submodule '%s': kan nie tak '%s' skep nie"
1914 +
1915 + #, c-format
1916 + msgid "'%s' is already used by worktree at '%s'"
1917 + msgstr "'%s' word reeds deur die werkboom by '%s' gebruik"
1918 +
1919 + msgid "git add [<options>] [--] <pathspec>..."
1920 + msgstr "git add [<opsies>] [--] <padspesifikasie>..."
1921 +
1922 + #, c-format
1923 + msgid "cannot chmod %cx '%s'"
1924 + msgstr "kan nie chmod %cx '%s' uitvoer nie"
1925 +
1926 + msgid "Unstaged changes after refreshing the index:"
1927 + msgstr "Ongeplaasde veranderinge ná die verfrissing van die indeks:"
1928 +
1929 + msgid "could not read the index"
1930 + msgstr "kon nie die indeks lees nie"
1931 +
1932 + msgid "editing patch failed"
1933 + msgstr "kon nie lap wysig nie"
1934 +
1935 + #, c-format
1936 + msgid "could not stat '%s'"
1937 + msgstr "kon nie stat op '%s' uitvoer nie"
1938 +
1939 + msgid "empty patch. aborted"
1940 + msgstr "leë lap. gestaak"
1941 +
1942 + msgid "could not initialize apply state"
1943 + msgstr "kon nie toepassingstoestand inisialiseer nie"
1944 +
1945 + msgid "could not check apply state"
1946 + msgstr "kon nie toepassingstoestand nagaan nie"
1947 +
1948 + #, c-format
1949 + msgid "could not apply '%s'"
1950 + msgstr "kon nie '%s' toepas nie"
1951 +
1952 + msgid "The following paths are ignored by one of your .gitignore files:\n"
1953 + msgstr ""
1954 + "Die volgende paaie word deur een van jou .gitignore-lêers geïgnoreer:\n"
1955 +
1956 + msgid "dry run"
1957 + msgstr "proeflopie"
1958 +
1959 + msgid "be verbose"
1960 + msgstr "wees breedsprakig"
1961 +
1962 + msgid "interactive picking"
1963 + msgstr "interaktiewe uitsoek"
1964 +
1965 + msgid "select hunks interactively"
1966 + msgstr "kies brokke interaktief"
1967 +
1968 + msgid "auto advance to the next file when selecting hunks interactively"
1969 + msgstr ""
1970 + "skuif outomaties aan na die volgende lêer wanneer brokke interaktief gekies "
1971 + "word"
1972 +
1973 + msgid "edit current diff and apply"
1974 + msgstr "wysig huidige verskil en pas toe"
1975 +
1976 + msgid "allow adding otherwise ignored files"
1977 + msgstr "laat toe dat andersins geïgnoreerde lêers bygevoeg word"
1978 +
1979 + msgid "update tracked files"
1980 + msgstr "werk nagespoorde lêers by"
1981 +
1982 + msgid "renormalize EOL of tracked files (implies -u)"
1983 + msgstr "hernormaliseer reëleindes van nagespoorde lêers (impliseer -u)"
1984 +
1985 + msgid "add conflict-resolved tracked files"
1986 + msgstr "voeg nagespoorde lêers met opgeloste konflikte by"
1987 +
1988 + msgid "record only the fact that the path will be added later"
1989 + msgstr "teken slegs aan dat die pad later bygevoeg sal word"
1990 +
1991 + msgid "add changes from all tracked and untracked files"
1992 + msgstr "voeg veranderinge van alle nagespoorde en onnaspoorbare lêers by"
1993 +
1994 + msgid "ignore paths removed in the working tree (same as --no-all)"
1995 + msgstr "ignoreer paaie wat in die werkboom verwyder is (dieselfde as --no-all)"
1996 +
1997 + msgid "don't add, only refresh the index"
1998 + msgstr "moenie byvoeg nie, verfris slegs die indeks"
1999 +
2000 + msgid "just skip files which cannot be added because of errors"
2001 + msgstr "slaan net lêers oor wat weens foute nie bygevoeg kan word nie"
2002 +
2003 + msgid "check if - even missing - files are ignored in dry run"
2004 + msgstr ""
2005 + "kontroleer in 'n droë lopie of lêers - selfs ontbrekende - geïgnoreer word"
2006 +
2007 + msgid "allow updating entries outside of the sparse-checkout cone"
2008 + msgstr "laat bywerking van inskrywings buite die yl-uitcheck-keël toe"
2009 +
2010 + msgid "override the executable bit of the listed files"
2011 + msgstr "oorskryf die uitvoerbare bis van die gelyste lêers"
2012 +
2013 + msgid "warn when adding an embedded repository"
2014 + msgstr "waarsku wanneer 'n ingebedde bewaarplek bygevoeg word"
2015 +
2016 + #, c-format
2017 + msgid ""
2018 + "You've added another git repository inside your current repository.\n"
2019 + "Clones of the outer repository will not contain the contents of\n"
2020 + "the embedded repository and will not know how to obtain it.\n"
2021 + "If you meant to add a submodule, use:\n"
2022 + "\n"
2023 + "\tgit submodule add <url> %s\n"
2024 + "\n"
2025 + "If you added this path by mistake, you can remove it from the\n"
2026 + "index with:\n"
2027 + "\n"
2028 + "\tgit rm --cached %s\n"
2029 + "\n"
2030 + "See \"git help submodule\" for more information."
2031 + msgstr ""
2032 + "Jy het 'n ander Git-bewaarplek binne jou huidige bewaarplek bygevoeg.\n"
2033 + "Klone van die buitenste bewaarplek sal nie die inhoud van die\n"
2034 + "ingebedde bewaarplek bevat nie en sal nie weet hoe om dit te verkry nie.\n"
2035 + "As jy bedoel het om 'n submodule by te voeg, gebruik:\n"
2036 + "\n"
2037 + "\tgit submodule add <url> %s\n"
2038 + "\n"
2039 + "As jy hierdie pad per ongeluk bygevoeg het, kan jy dit uit die\n"
2040 + "indeks verwyder met:\n"
2041 + "\n"
2042 + "\tgit rm --cached %s\n"
2043 + "\n"
2044 + "Sien \"git help submodule\" vir meer inligting."
2045 +
2046 + #, c-format
2047 + msgid "adding embedded git repository: %s"
2048 + msgstr "voeg ingebedde Git-bewaarplek by: %s"
2049 +
2050 + msgid "Use -f if you really want to add them."
2051 + msgstr "Gebruik -f as jy hulle regtig wil byvoeg."
2052 +
2053 + msgid "adding files failed"
2054 + msgstr "kon nie lêers byvoeg nie"
2055 +
2056 + #, c-format
2057 + msgid "updating file '%s' failed"
2058 + msgstr "bywerk van lêer '%s' het misluk"
2059 +
2060 + #, c-format
2061 + msgid ""
2062 + "the following paths still have conflict markers:\n"
2063 + "%s"
2064 + msgstr ""
2065 + "die volgende paaie het steeds konflikmerkers:\n"
2066 + "%s"
2067 +
2068 + #, c-format
2069 + msgid "cannot lstat: '%s'"
2070 + msgstr "kan nie lstat doen nie: '%s'"
2071 +
2072 + #, c-format
2073 + msgid "'%s' cannot be negative"
2074 + msgstr "'%s' kan nie negatief wees nie"
2075 +
2076 + #, c-format
2077 + msgid "--chmod param '%s' must be either -x or +x"
2078 + msgstr "parameter --chmod '%s' moet óf -x óf +x wees"
2079 +
2080 + #, c-format
2081 + msgid "'%s' and pathspec arguments cannot be used together"
2082 + msgstr "'%s' en padspesifikasie-argumente kan nie saam gebruik word nie"
2083 +
2084 + #, c-format
2085 + msgid "Nothing specified, nothing added.\n"
2086 + msgstr "Niks gespesifiseer nie, niks bygevoeg nie.\n"
2087 +
2088 + msgid "Maybe you wanted to say 'git add .'?"
2089 + msgstr "Wou jy dalk 'git add .' sê?"
2090 +
2091 + msgid "index file corrupt"
2092 + msgstr "indekslêer is korrup"
2093 +
2094 + msgid "unable to write new index file"
2095 + msgstr "kan nie nuwe indekslêer skryf nie"
2096 +
2097 + #, c-format
2098 + msgid "bad action '%s' for '%s'"
2099 + msgstr "slegte aksie '%s' vir '%s'"
2100 +
2101 + #, c-format
2102 + msgid "invalid value for '%s': '%s'"
2103 + msgstr "ongeldige waarde vir '%s': '%s'"
2104 +
2105 + #, c-format
2106 + msgid "could not read '%s'"
2107 + msgstr "kon nie '%s' lees nie"
2108 +
2109 + msgid "could not parse author script"
2110 + msgstr "kon nie outeurskrip ontleed nie"
2111 +
2112 + #, c-format
2113 + msgid "could not parse %s"
2114 + msgstr "kon nie %s ontleed nie"
2115 +
2116 + #, c-format
2117 + msgid "'%s' was deleted by the applypatch-msg hook"
2118 + msgstr "'%s' is deur die applypatch-msg-haak geskrap"
2119 +
2120 + #, c-format
2121 + msgid "Malformed input line: '%s'."
2122 + msgstr "Misvormde invoerreël: '%s'."
2123 +
2124 + #, c-format
2125 + msgid "Failed to copy notes from '%s' to '%s'"
2126 + msgstr "Kon nie notas van '%s' na '%s' kopieer nie"
2127 +
2128 + msgid "fseek failed"
2129 + msgstr "fseek het misluk"
2130 +
2131 + #, c-format
2132 + msgid "could not open '%s' for reading"
2133 + msgstr "kon nie '%s' oopmaak om te lees nie"
2134 +
2135 + #, c-format
2136 + msgid "could not open '%s' for writing"
2137 + msgstr "kon nie '%s' oopmaak om te skryf nie"
2138 +
2139 + #, c-format
2140 + msgid "could not parse patch '%s'"
2141 + msgstr "kon nie lap '%s' ontleed nie"
2142 +
2143 + msgid "Only one StGIT patch series can be applied at once"
2144 + msgstr "Slegs een StGIT-lapreeks kan op 'n slag toegepas word"
2145 +
2146 + msgid "invalid timestamp"
2147 + msgstr "ongeldige tydstempel"
2148 +
2149 + msgid "invalid Date line"
2150 + msgstr "ongeldige Date-reël"
2151 +
2152 + msgid "invalid timezone offset"
2153 + msgstr "ongeldige tydsone-afwyking"
2154 +
2155 + msgid "Patch format detection failed."
2156 + msgstr "Kon nie lapformaat bespeur nie."
2157 +
2158 + #, c-format
2159 + msgid "failed to create directory '%s'"
2160 + msgstr "kon nie gids '%s' skep nie"
2161 +
2162 + msgid "Failed to split patches."
2163 + msgstr "Kon nie lappe verdeel nie."
2164 +
2165 + #, c-format
2166 + msgid "When you have resolved this problem, run \"%s --continue\".\n"
2167 + msgstr "Wanneer jy hierdie probleem opgelos het, voer \"%s --continue\" uit.\n"
2168 +
2169 + #, c-format
2170 + msgid "If you prefer to skip this patch, run \"%s --skip\" instead.\n"
2171 + msgstr ""
2172 + "As jy verkies om hierdie lap oor te slaan, voer eerder \"%s --skip\" uit.\n"
2173 +
2174 + #, c-format
2175 + msgid ""
2176 + "To record the empty patch as an empty commit, run \"%s --allow-empty\".\n"
2177 + msgstr ""
2178 + "Om die leë lap as 'n leë vaslegging aan te teken, voer \"%s --allow-empty\" "
2179 + "uit.\n"
2180 +
2181 + #, c-format
2182 + msgid "To restore the original branch and stop patching, run \"%s --abort\"."
2183 + msgstr ""
2184 + "Om die oorspronklike tak te herstel en op te hou lap, voer \"%s --abort\" "
2185 + "uit."
2186 +
2187 + msgid "Patch sent with format=flowed; space at the end of lines might be lost."
2188 + msgstr ""
2189 + "Lap is met format=flowed gestuur; spasies aan die einde van reëls kan "
2190 + "verlore gaan."
2191 +
2192 + #, c-format
2193 + msgid "missing author line in commit %s"
2194 + msgstr "outeurreël ontbreek in vaslegging %s"
2195 +
2196 + #, c-format
2197 + msgid "invalid ident line: %.*s"
2198 + msgstr "ongeldige identiteitsreël: %.*s"
2199 +
2200 + #, c-format
2201 + msgid "unable to parse commit %s"
2202 + msgstr "kan nie vaslegging %s ontleed nie"
2203 +
2204 + msgid "Repository lacks necessary blobs to fall back on 3-way merge."
2205 + msgstr ""
2206 + "Bewaarplek het nie die nodige blobs om op 'n 3-rigting-saamsmelting terug te "
2207 + "val nie."
2208 +
2209 + msgid "Using index info to reconstruct a base tree..."
2210 + msgstr "Gebruik indeksinligting om 'n basisboom te herbou..."
2211 +
2212 + msgid ""
2213 + "Did you hand edit your patch?\n"
2214 + "It does not apply to blobs recorded in its index."
2215 + msgstr ""
2216 + "Het jy jou lap met die hand gewysig?\n"
2217 + "Dit pas nie op die blobs wat in sy indeks aangeteken is nie."
2218 +
2219 + msgid "Falling back to patching base and 3-way merge..."
2220 + msgstr "Val terug op die lap van die basis en 3-rigting-saamsmelting..."
2221 +
2222 + msgid "Failed to merge in the changes."
2223 + msgstr "Kon nie die veranderinge saamsmelt nie."
2224 +
2225 + msgid "git write-tree failed to write a tree"
2226 + msgstr "git write-tree kon nie 'n boom skryf nie"
2227 +
2228 + msgid "applying to an empty history"
2229 + msgstr "pas toe op 'n leë geskiedenis"
2230 +
2231 + msgid "failed to write commit object"
2232 + msgstr "kon nie vasleggingsobjek skryf nie"
2233 +
2234 + #, c-format
2235 + msgid "cannot resume: %s does not exist."
2236 + msgstr "kan nie hervat nie: %s bestaan nie."
2237 +
2238 + msgid "Commit Body is:"
2239 + msgstr "Vasleggingsinhoud is:"
2240 +
2241 + #. TRANSLATORS: Make sure to include [y], [n], [e], [v] and [a]
2242 + #. in your translation. The program will only accept English
2243 + #. input at this point.
2244 + #.
2245 + #, c-format
2246 + msgid "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all: "
2247 + msgstr "Pas toe? ja [y]/nee [n]/wysig [e]/bekyk lap [v]/aanvaar alles [a]: "
2248 +
2249 + msgid "unable to write index file"
2250 + msgstr "kan nie indekslêer skryf nie"
2251 +
2252 + #, c-format
2253 + msgid "Dirty index: cannot apply patches (dirty: %s)"
2254 + msgstr "Vuil indeks: kan nie lappe toepas nie (vuil: %s)"
2255 +
2256 + #, c-format
2257 + msgid "Skipping: %.*s"
2258 + msgstr "Slaan oor: %.*s"
2259 +
2260 + #, c-format
2261 + msgid "Creating an empty commit: %.*s"
2262 + msgstr "Skep 'n leë vaslegging: %.*s"
2263 +
2264 + msgid "Patch is empty."
2265 + msgstr "Lap is leeg."
2266 +
2267 + #, c-format
2268 + msgid "Applying: %.*s"
2269 + msgstr "Pas toe: %.*s"
2270 +
2271 + msgid "No changes -- Patch already applied."
2272 + msgstr "Geen veranderinge nie -- lap is reeds toegepas."
2273 +
2274 + #, c-format
2275 + msgid "Patch failed at %s %.*s"
2276 + msgstr "Lap het misluk by %s %.*s"
2277 +
2278 + msgid "Use 'git am --show-current-patch=diff' to see the failed patch"
2279 + msgstr "Gebruik 'git am --show-current-patch=diff' om die mislukte lap te sien"
2280 +
2281 + msgid "No changes - recorded it as an empty commit."
2282 + msgstr "Geen veranderinge nie - as 'n leë vaslegging aangeteken."
2283 +
2284 + msgid ""
2285 + "No changes - did you forget to use 'git add'?\n"
2286 + "If there is nothing left to stage, chances are that something else\n"
2287 + "already introduced the same changes; you might want to skip this patch."
2288 + msgstr ""
2289 + "Geen veranderinge nie - het jy vergeet om 'git add' te gebruik?\n"
2290 + "As daar niks oor is om te plaas nie, is die kans goed dat iets anders\n"
2291 + "reeds dieselfde veranderinge ingevoer het; jy wil dalk hierdie lap oorslaan."
2292 +
2293 + msgid ""
2294 + "You still have unmerged paths in your index.\n"
2295 + "You should 'git add' each file with resolved conflicts to mark them as "
2296 + "such.\n"
2297 + "You might run `git rm` on a file to accept \"deleted by them\" for it."
2298 + msgstr ""
2299 + "Jy het steeds paaie in jou indeks wat nie saamgesmelt is nie.\n"
2300 + "Jy moet 'git add' op elke lêer met opgeloste konflikte uitvoer om hulle as "
2301 + "sodanig te merk.\n"
2302 + "Jy kan `git rm` op 'n lêer uitvoer om \"deur hulle geskrap\" daarvoor te "
2303 + "aanvaar."
2304 +
2305 + #, c-format
2306 + msgid "Could not parse object '%s'."
2307 + msgstr "Kon nie objek '%s' ontleed nie."
2308 +
2309 + msgid "failed to clean index"
2310 + msgstr "kon nie indeks skoonmaak nie"
2311 +
2312 + msgid ""
2313 + "You seem to have moved HEAD since the last 'am' failure.\n"
2314 + "Not rewinding to ORIG_HEAD"
2315 + msgstr ""
2316 + "Dit lyk of jy HEAD sedert die laaste 'am'-mislukking geskuif het.\n"
2317 + "Spoel nie terug na ORIG_HEAD nie"
2318 +
2319 + #, c-format
2320 + msgid "failed to read '%s'"
2321 + msgstr "kon nie '%s' lees nie"
2322 +
2323 + msgid "git am [<options>] [(<mbox> | <Maildir>)...]"
2324 + msgstr "git am [<opsies>] [(<mbox> | <Maildir>)...]"
2325 +
2326 + msgid "git am [<options>] (--continue | --skip | --abort)"
2327 + msgstr "git am [<opsies>] (--continue | --skip | --abort)"
2328 +
2329 + msgid "run interactively"
2330 + msgstr "voer interaktief uit"
2331 +
2332 + msgid "bypass pre-applypatch and applypatch-msg hooks"
2333 + msgstr "omseil die pre-applypatch- en applypatch-msg-hake"
2334 +
2335 + msgid "historical option -- no-op"
2336 + msgstr "historiese opsie -- doen niks"
2337 +
2338 + msgid "allow fall back on 3way merging if needed"
2339 + msgstr "laat terugval op 3-rigting-saamsmelting toe indien nodig"
2340 +
2341 + msgid "be quiet"
2342 + msgstr "wees stil"
2343 +
2344 + msgid "add a Signed-off-by trailer to the commit message"
2345 + msgstr "voeg 'n Signed-off-by-aanhangsel by die vasleggingsboodskap"
2346 +
2347 + msgid "recode into utf8 (default)"
2348 + msgstr "herkodeer na utf8 (verstek)"
2349 +
2350 + msgid "pass -k flag to git-mailinfo"
2351 + msgstr "gee die -k-vlag aan git-mailinfo deur"
2352 +
2353 + msgid "pass -b flag to git-mailinfo"
2354 + msgstr "gee die -b-vlag aan git-mailinfo deur"
2355 +
2356 + msgid "pass -m flag to git-mailinfo"
2357 + msgstr "gee die -m-vlag aan git-mailinfo deur"
2358 +
2359 + msgid "pass --keep-cr flag to git-mailsplit for mbox format"
2360 + msgstr "gee die vlag --keep-cr aan git-mailsplit deur vir mbox-formaat"
2361 +
2362 + msgid "strip everything before a scissors line"
2363 + msgstr "stroop alles voor 'n skêrreël af"
2364 +
2365 + msgid "pass it through git-mailinfo"
2366 + msgstr "gee dit deur aan git-mailinfo"
2367 +
2368 + msgid "pass it through git-apply"
2369 + msgstr "gee dit deur aan git-apply"
2370 +
2371 + msgid "n"
2372 + msgstr "n"
2373 +
2374 + msgid "format"
2375 + msgstr "formaat"
2376 +
2377 + msgid "format the patch(es) are in"
2378 + msgstr "formaat waarin die lap(pe) is"
2379 +
2380 + msgid "override error message when patch failure occurs"
2381 + msgstr "oorskryf die foutboodskap wanneer 'n lap misluk"
2382 +
2383 + msgid "continue applying patches after resolving a conflict"
2384 + msgstr "gaan voort om lappe toe te pas nadat 'n konflik opgelos is"
2385 +
2386 + msgid "synonyms for --continue"
2387 + msgstr "sinonieme vir --continue"
2388 +
2389 + msgid "skip the current patch"
2390 + msgstr "slaan die huidige lap oor"
2391 +
2392 + msgid "restore the original branch and abort the patching operation"
2393 + msgstr "herstel die oorspronklike tak en staak die lapbewerking"
2394 +
2395 + msgid "abort the patching operation but keep HEAD where it is"
2396 + msgstr "staak die lapbewerking, maar hou HEAD waar dit is"
2397 +
2398 + msgid "show the patch being applied"
2399 + msgstr "wys die lap wat toegepas word"
2400 +
2401 + msgid "try to apply current patch again"
2402 + msgstr "probeer die huidige lap weer toepas"
2403 +
2404 + msgid "record the empty patch as an empty commit"
2405 + msgstr "teken die leë lap as 'n leë vaslegging aan"
2406 +
2407 + msgid "lie about committer date"
2408 + msgstr "lieg oor die vasleggerdatum"
2409 +
2410 + msgid "use current timestamp for author date"
2411 + msgstr "gebruik huidige tydstempel vir outeurdatum"
2412 +
2413 + msgid "key-id"
2414 + msgstr "sleutel-id"
2415 +
2416 + msgid "GPG-sign commits"
2417 + msgstr "onderteken vasleggings met GPG"
2418 +
2419 + msgid "how to handle empty patches"
2420 + msgstr "hoe om leë lappe te hanteer"
2421 +
2422 + msgid "(internal use for git-rebase)"
2423 + msgstr "(interne gebruik vir git-rebase)"
2424 +
2425 + msgid ""
2426 + "The -b/--binary option has been a no-op for long time, and\n"
2427 + "it will be removed. Please do not use it anymore."
2428 + msgstr ""
2429 + "Die opsie -b/--binary doen al lank niks nie, en\n"
2430 + "dit sal verwyder word. Moet dit asseblief nie meer gebruik nie."
2431 +
2432 + msgid "failed to read the index"
2433 + msgstr "kon nie die indeks lees nie"
2434 +
2435 + #, c-format
2436 + msgid "previous rebase directory %s still exists but mbox given."
2437 + msgstr "vorige herbaseringsgids %s bestaan steeds, maar mbox is gegee."
2438 +
2439 + #, c-format
2440 + msgid ""
2441 + "Stray %s directory found.\n"
2442 + "Use \"git am --abort\" to remove it."
2443 + msgstr ""
2444 + "Verdwaalde %s-gids gevind.\n"
2445 + "Gebruik \"git am --abort\" om dit te verwyder."
2446 +
2447 + msgid "Resolve operation not in progress, we are not resuming."
2448 + msgstr "Geen oplossingsbewerking is aan die gang nie, ons hervat nie."
2449 +
2450 + msgid "interactive mode requires patches on the command line"
2451 + msgstr "interaktiewe modus vereis lappe op die opdragreël"
2452 +
2453 + msgid "git apply [<options>] [<patch>...]"
2454 + msgstr "git apply [<opsies>] [<lap>...]"
2455 +
2456 + msgid "could not redirect output"
2457 + msgstr "kon nie afvoer herlei nie"
2458 +
2459 + msgid "git archive: expected ACK/NAK, got a flush packet"
2460 + msgstr "git archive: het ACK/NAK verwag, maar 'n spoelpakkie ontvang"
2461 +
2462 + #, c-format
2463 + msgid "git archive: NACK %s"
2464 + msgstr "git archive: NACK %s"
2465 +
2466 + msgid "git archive: protocol error"
2467 + msgstr "git archive: protokolfout"
2468 +
2469 + msgid "git archive: expected a flush"
2470 + msgstr "git archive: het 'n spoeling verwag"
2471 +
2472 + msgid ""
2473 + "git backfill [--min-batch-size=<n>] [--[no-]sparse] [--[no-]include-edges] "
2474 + "[<revision-range>]"
2475 + msgstr ""
2476 + "git backfill [--min-batch-size=<n>] [--[no-]sparse] [--[no-]include-edges] "
2477 + "[<hersieningsreeks>]"
2478 +
2479 + #, c-format
2480 + msgid "'%s' cannot be used with 'git backfill'"
2481 + msgstr "'%s' kan nie saam met 'git backfill' gebruik word nie"
2482 +
2483 + msgid "cannot backfill with these filter options"
2484 + msgstr "kan nie met hierdie filteropsies terugvul nie"
2485 +
2486 + msgid "cannot backfill with blob size limits"
2487 + msgstr "kan nie met blob-groottelimiete terugvul nie"
2488 +
2489 + msgid "problem loading sparse-checkout"
2490 + msgstr "probleem met die laai van yl-uitcheck"
2491 +
2492 + msgid "Minimum number of objects to request at a time"
2493 + msgstr "Minimum aantal objekte om op 'n slag aan te vra"
2494 +
2495 + msgid "Restrict the missing objects to the current sparse-checkout"
2496 + msgstr "Beperk die ontbrekende objekte tot die huidige yl-uitcheck"
2497 +
2498 + msgid "Include blobs from boundary commits in the backfill"
2499 + msgstr "Sluit blobs van grensvasleggings by die terugvulling in"
2500 +
2501 + #, c-format
2502 + msgid "unrecognized argument: %s"
2503 + msgstr "onherkende argument: %s"
2504 +
2505 + msgid ""
2506 + "git bisect start [--term-(bad|new)=<term-new> --term-(good|old)=<term-old>]\n"
2507 + " [--no-checkout] [--first-parent] [--reset-when-"
2508 + "found[=<where>]] [<bad> [<good>...]] [--] [<pathspec>...]"
2509 + msgstr ""
2510 + "git bisect start [--term-(bad|new)=<term-nuut> --term-(good|old)=<term-"
2511 + "oud>]\n"
2512 + " [--no-checkout] [--first-parent] [--reset-when-"
2513 + "found[=<waar>]] [<sleg> [<goed>...]] [--] [<padspesifikasie>...]"
2514 +
2515 + msgid "git bisect (bad|new|<term-new>) [<rev>]"
2516 + msgstr "git bisect (bad|new|<term-nuut>) [<hersiening>]"
2517 +
2518 + msgid "git bisect (good|old|<term-old>) [<rev>...]"
2519 + msgstr "git bisect (good|old|<term-oud>) [<hersiening>...]"
2520 +
2521 + msgid "git bisect skip [(<rev>|<range>)...]"
2522 + msgstr "git bisect skip [(<hersiening>|<reeks>)...]"
2523 +
2524 + msgid "git bisect reset [<commit>]"
2525 + msgstr "git bisect reset [<vaslegging>]"
2526 +
2527 + msgid "git bisect replay <logfile>"
2528 + msgstr "git bisect replay <loglêer>"
2529 +
2530 + msgid "git bisect run [--reset-when-found[=<where>]] <cmd> [<arg>...]"
2531 + msgstr "git bisect run [--reset-when-found[=<waar>]] <opdrag> [<arg>...]"
2532 +
2533 + #, c-format
2534 + msgid "cannot open file '%s' in mode '%s'"
2535 + msgstr "kan nie lêer '%s' in modus '%s' oopmaak nie"
2536 +
2537 + #, c-format
2538 + msgid "could not write to file '%s'"
2539 + msgstr "kon nie na lêer '%s' skryf nie"
2540 +
2541 + #, c-format
2542 + msgid "cannot open file '%s' for reading"
2543 + msgstr "kan nie lêer '%s' oopmaak om te lees nie"
2544 +
2545 + #, c-format
2546 + msgid "'%s' is not a valid term"
2547 + msgstr "'%s' is nie 'n geldige term nie"
2548 +
2549 + #, c-format
2550 + msgid "can't use the builtin command '%s' as a term"
2551 + msgstr "kan nie die ingeboude opdrag '%s' as 'n term gebruik nie"
2552 +
2553 + #, c-format
2554 + msgid "can't change the meaning of the term '%s'"
2555 + msgstr "kan nie die betekenis van die term '%s' verander nie"
2556 +
2557 + msgid "please use two different terms"
2558 + msgstr "gebruik asseblief twee verskillende terme"
2559 +
2560 + #, c-format
2561 + msgid "We are not bisecting.\n"
2562 + msgstr "Ons is nie besig om te halveer nie.\n"
2563 +
2564 + #, c-format
2565 + msgid "'%s' is not a valid commit"
2566 + msgstr "'%s' is nie 'n geldige vaslegging nie"
2567 +
2568 + #, c-format
2569 + msgid ""
2570 + "could not check out original HEAD '%s'. Try 'git bisect reset <commit>'."
2571 + msgstr ""
2572 + "kon nie oorspronklike HEAD '%s' uitcheck nie. Probeer 'git bisect reset "
2573 + "<vaslegging>'."
2574 +
2575 + #, c-format
2576 + msgid "invalid value for '--reset-when-found': '%s'"
2577 + msgstr "ongeldige waarde vir '--reset-when-found': '%s'"
2578 +
2579 + #, c-format
2580 + msgid "Bad bisect_write argument: %s"
2581 + msgstr "Slegte bisect_write-argument: %s"
2582 +
2583 + #, c-format
2584 + msgid "couldn't get the oid of the rev '%s'"
2585 + msgstr "kon nie die oid van hersiening '%s' kry nie"
2586 +
2587 + #, c-format
2588 + msgid "couldn't open the file '%s'"
2589 + msgstr "kon nie die lêer '%s' oopmaak nie"
2590 +
2591 + #, c-format
2592 + msgid "Invalid command: you're currently in a %s/%s bisect"
2593 + msgstr "Ongeldige opdrag: jy is tans in 'n %s/%s-halvering"
2594 +
2595 + #, c-format
2596 + msgid ""
2597 + "You need to give me at least one %s and %s revision.\n"
2598 + "You can use \"git bisect %s\" and \"git bisect %s\" for that."
2599 + msgstr ""
2600 + "Jy moet my ten minste een %s- en %s-hersiening gee.\n"
2601 + "Jy kan \"git bisect %s\" en \"git bisect %s\" daarvoor gebruik."
2602 +
2603 + #, c-format
2604 + msgid ""
2605 + "You need to start by \"git bisect start\".\n"
2606 + "You then need to give me at least one %s and %s revision.\n"
2607 + "You can use \"git bisect %s\" and \"git bisect %s\" for that."
2608 + msgstr ""
2609 + "Jy moet begin met \"git bisect start\".\n"
2610 + "Daarna moet jy my ten minste een %s- en %s-hersiening gee.\n"
2611 + "Jy kan \"git bisect %s\" en \"git bisect %s\" daarvoor gebruik."
2612 +
2613 + #, c-format
2614 + msgid "bisecting only with a %s commit"
2615 + msgstr "halveer slegs met 'n %s-vaslegging"
2616 +
2617 + #. TRANSLATORS: Make sure to include [Y] and [n] in your
2618 + #. translation. The program will only accept English input
2619 + #. at this point.
2620 + #.
2621 + msgid "Are you sure [Y/n]? "
2622 + msgstr "Is jy seker [Y/n]? "
2623 +
2624 + #, c-format
2625 + msgid "status: waiting for both '%s' and '%s' commits\n"
2626 + msgstr "status: wag vir beide '%s'- en '%s'-vasleggings\n"
2627 +
2628 + #, c-format
2629 + msgid "status: waiting for '%s' commit, %d '%s' commit known\n"
2630 + msgid_plural "status: waiting for '%s' commit, %d '%s' commits known\n"
2631 + msgstr[0] "status: wag vir '%s'-vaslegging, %d '%s'-vaslegging bekend\n"
2632 + msgstr[1] "status: wag vir '%s'-vaslegging, %d '%s'-vasleggings bekend\n"
2633 +
2634 + #, c-format
2635 + msgid "status: waiting for '%s' commit(s), '%s' commit known\n"
2636 + msgstr "status: wag vir '%s'-vaslegging(s), '%s'-vaslegging bekend\n"
2637 +
2638 + msgid "no terms defined"
2639 + msgstr "geen terme gedefinieer nie"
2640 +
2641 + #, c-format
2642 + msgid ""
2643 + "Your current terms are '%s' for the old state\n"
2644 + "and '%s' for the new state.\n"
2645 + msgstr ""
2646 + "Jou huidige terme is '%s' vir die ou toestand\n"
2647 + "en '%s' vir die nuwe toestand.\n"
2648 +
2649 + #, c-format
2650 + msgid ""
2651 + "invalid argument %s for 'git bisect terms'.\n"
2652 + "Supported options are: --term-good|--term-old and --term-bad|--term-new."
2653 + msgstr ""
2654 + "ongeldige argument %s vir 'git bisect terms'.\n"
2655 + "Ondersteunde opsies is: --term-good|--term-old en --term-bad|--term-new."
2656 +
2657 + #, c-format
2658 + msgid "could not open '%s' for appending"
2659 + msgstr "kon nie '%s' oopmaak om by te voeg nie"
2660 +
2661 + #, c-format
2662 + msgid "could not find commit for '%s'"
2663 + msgstr "kon nie vaslegging vir '%s' vind nie"
2664 +
2665 + msgid "'' is not a valid term"
2666 + msgstr "'' is nie 'n geldige term nie"
2667 +
2668 + #, c-format
2669 + msgid "unrecognized option: '%s'"
2670 + msgstr "onherkende opsie: '%s'"
2671 +
2672 + #, c-format
2673 + msgid "'%s' does not appear to be a valid revision"
2674 + msgstr "'%s' blyk nie 'n geldige hersiening te wees nie"
2675 +
2676 + msgid "bad HEAD - I need a HEAD"
2677 + msgstr "slegte HEAD - ek het 'n HEAD nodig"
2678 +
2679 + #, c-format
2680 + msgid "checking out '%s' failed. Try 'git bisect start <valid-branch>'."
2681 + msgstr "kon nie '%s' uitcheck nie. Probeer 'git bisect start <geldige-tak>'."
2682 +
2683 + msgid "bad HEAD - strange symbolic ref"
2684 + msgstr "slegte HEAD - vreemde simboliese verwysing"
2685 +
2686 + #, c-format
2687 + msgid "invalid ref: '%s'"
2688 + msgstr "ongeldige verwysing: '%s'"
2689 +
2690 + msgid "You need to start by \"git bisect start\"\n"
2691 + msgstr "Jy moet begin met \"git bisect start\"\n"
2692 +
2693 + #. TRANSLATORS: Make sure to include [Y] and [n] in your
2694 + #. translation. The program will only accept English input
2695 + #. at this point.
2696 + #.
2697 + msgid "Do you want me to do it for you [Y/n]? "
2698 + msgstr "Wil jy hê ek moet dit vir jou doen [Y/n]? "
2699 +
2700 + msgid "Please call `--bisect-state` with at least one argument"
2701 + msgstr "Roep asseblief `--bisect-state` met ten minste een argument aan"
2702 +
2703 + #, c-format
2704 + msgid "'git bisect %s' can take only one argument."
2705 + msgstr "'git bisect %s' kan slegs een argument neem."
2706 +
2707 + #, c-format
2708 + msgid "Bad rev input: %s"
2709 + msgstr "Slegte hersieningsinvoer: %s"
2710 +
2711 + #, c-format
2712 + msgid "Bad rev input (not a commit): %s"
2713 + msgstr "Slegte hersieningsinvoer (nie 'n vaslegging nie): %s"
2714 +
2715 + msgid "We are not bisecting."
2716 + msgstr "Ons is nie besig om te halveer nie."
2717 +
2718 + #, c-format
2719 + msgid "'%s'?? what are you talking about?"
2720 + msgstr "'%s'?? waarvan praat jy?"
2721 +
2722 + #, c-format
2723 + msgid "cannot read file '%s' for replaying"
2724 + msgstr "kan nie lêer '%s' lees om oor te speel nie"
2725 +
2726 + #, c-format
2727 + msgid "running %s\n"
2728 + msgstr "voer %s uit\n"
2729 +
2730 + msgid "bisect run failed: no command provided."
2731 + msgstr "halveringslopie het misluk: geen opdrag verskaf nie."
2732 +
2733 + #, c-format
2734 + msgid "unable to verify %s on '%s' revision"
2735 + msgstr "kan nie %s op '%s'-hersiening verifieer nie"
2736 +
2737 + #, c-format
2738 + msgid "bogus exit code %d for '%s' revision"
2739 + msgstr "vals uittreekode %d vir '%s'-hersiening"
2740 +
2741 + #, c-format
2742 + msgid "bisect run failed: exit code %d from %s is < 0 or >= 128"
2743 + msgstr "halveringslopie het misluk: uittreekode %d van %s is < 0 of >= 128"
2744 +
2745 + #, c-format
2746 + msgid "cannot open file '%s' for writing"
2747 + msgstr "kan nie lêer '%s' oopmaak om te skryf nie"
2748 +
2749 + msgid "could not duplicate stdout"
2750 + msgstr "kon nie stdout dupliseer nie"
2751 +
2752 + msgid "bisect run cannot continue any more"
2753 + msgstr "halveringslopie kan nie meer voortgaan nie"
2754 +
2755 + msgid "bisect run success"
2756 + msgstr "halveringslopie suksesvol"
2757 +
2758 + #, c-format
2759 + msgid "bisect found first '%s' commit\n"
2760 + msgstr "halvering het eerste '%s'-vaslegging gevind\n"
2761 +
2762 + #, c-format
2763 + msgid "bisect run failed: 'git bisect %s' exited with error code %d"
2764 + msgstr ""
2765 + "halveringslopie het misluk: 'git bisect %s' het met foutkode %d afgesluit"
2766 +
2767 + #, c-format
2768 + msgid "'%s' requires either no argument or a commit"
2769 + msgstr "'%s' vereis óf geen argument nie óf 'n vaslegging"
2770 +
2771 + #, c-format
2772 + msgid "'%s' requires 0 or 1 argument"
2773 + msgstr "'%s' vereis 0 of 1 argument"
2774 +
2775 + #, c-format
2776 + msgid "'%s' requires 0 arguments"
2777 + msgstr "'%s' vereis 0 argumente"
2778 +
2779 + msgid "no logfile given"
2780 + msgstr "geen loglêer gegee nie"
2781 +
2782 + #, c-format
2783 + msgid "'%s' failed: no command provided."
2784 + msgstr "'%s' het misluk: geen opdrag verskaf nie."
2785 +
2786 + msgid "need a command"
2787 + msgstr "het 'n opdrag nodig"
2788 +
2789 + #, c-format
2790 + msgid "unknown command: '%s'"
2791 + msgstr "onbekende opdrag: '%s'"
2792 +
2793 + msgid "git blame [<options>] [<rev-opts>] [<rev>] [--] <file>"
2794 + msgstr "git blame [<opsies>] [<hersiening-opsies>] [<hersiening>] [--] <lêer>"
2795 +
2796 + msgid "git annotate [<options>] [<rev-opts>] [<rev>] [--] <file>"
2797 + msgstr ""
2798 + "git annotate [<opsies>] [<hersiening-opsies>] [<hersiening>] [--] <lêer>"
2799 +
2800 + msgid "<rev-opts> are documented in git-rev-list(1)"
2801 + msgstr "<hersiening-opsies> word in git-rev-list(1) gedokumenteer"
2802 +
2803 + #, c-format
2804 + msgid "expecting a color: %s"
2805 + msgstr "verwag 'n kleur: %s"
2806 +
2807 + msgid "must end with a color"
2808 + msgstr "moet met 'n kleur eindig"
2809 +
2810 + #, c-format
2811 + msgid "unknown value for config '%s': %s"
2812 + msgstr "onbekende waarde vir konfigurasie '%s': %s"
2813 +
2814 + msgid ""
2815 + "option diff-algorithm accepts \"myers\", \"minimal\", \"patience\" and "
2816 + "\"histogram\""
2817 + msgstr ""
2818 + "opsie diff-algorithm aanvaar \"myers\", \"minimal\", \"patience\" en "
2819 + "\"histogram\""
2820 +
2821 + #, c-format
2822 + msgid "cannot find revision %s to ignore"
2823 + msgstr "kan nie hersiening %s vind om te ignoreer nie"
2824 +
2825 + msgid "show blame entries as we find them, incrementally"
2826 + msgstr "wys blaam-inskrywings inkrementeel soos ons hulle vind"
2827 +
2828 + msgid "do not show object names of boundary commits (Default: off)"
2829 + msgstr "moenie objekname van grensvasleggings wys nie (Verstek: af)"
2830 +
2831 + msgid "do not treat root commits as boundaries (Default: off)"
2832 + msgstr "moenie wortelvasleggings as grense behandel nie (Verstek: af)"
2833 +
2834 + msgid "show work cost statistics"
2835 + msgstr "wys werkkoste-statistieke"
2836 +
2837 + msgid "force progress reporting"
2838 + msgstr "dwing vorderingsverslaggewing af"
2839 +
2840 + msgid "show output score for blame entries"
2841 + msgstr "wys afvoertelling vir blaam-inskrywings"
2842 +
2843 + msgid "show original filename (Default: auto)"
2844 + msgstr "wys oorspronklike lêernaam (Verstek: outomaties)"
2845 +
2846 + msgid "show original linenumber (Default: off)"
2847 + msgstr "wys oorspronklike reëlnommer (Verstek: af)"
2848 +
2849 + msgid "show in a format designed for machine consumption"
2850 + msgstr "wys in 'n formaat wat vir masjienverbruik ontwerp is"
2851 +
2852 + msgid "show porcelain format with per-line commit information"
2853 + msgstr "wys porselein-formaat met vasleggingsinligting per reël"
2854 +
2855 + msgid "use the same output mode as git-annotate (Default: off)"
2856 + msgstr "gebruik dieselfde afvoermodus as git-annotate (Verstek: af)"
2857 +
2858 + msgid "show raw timestamp (Default: off)"
2859 + msgstr "wys rou tydstempel (Verstek: af)"
2860 +
2861 + msgid "show long commit SHA1 (Default: off)"
2862 + msgstr "wys lang vaslegging-SHA1 (Verstek: af)"
2863 +
2864 + msgid "suppress author name and timestamp (Default: off)"
2865 + msgstr "onderdruk outeurnaam en tydstempel (Verstek: af)"
2866 +
2867 + msgid "show author email instead of name (Default: off)"
2868 + msgstr "wys outeur se e-pos in plaas van naam (Verstek: af)"
2869 +
2870 + msgid "ignore whitespace differences"
2871 + msgstr "ignoreer witspasieverskille"
2872 +
2873 + msgid "<algorithm>"
2874 + msgstr "<algoritme>"
2875 +
2876 + msgid "choose a diff algorithm"
2877 + msgstr "kies 'n verskil-algoritme"
2878 +
2879 + msgid "rev"
2880 + msgstr "hersiening"
2881 +
2882 + msgid "ignore <rev> when blaming"
2883 + msgstr "ignoreer <hersiening> wanneer blaam toegeken word"
2884 +
2885 + msgid "ignore revisions from <file>"
2886 + msgstr "ignoreer hersienings uit <lêer>"
2887 +
2888 + msgid "color redundant metadata from previous line differently"
2889 + msgstr "kleur oortollige metadata van die vorige reël anders"
2890 +
2891 + msgid "color lines by age"
2892 + msgstr "kleur reëls volgens ouderdom"
2893 +
2894 + msgid "spend extra cycles to find a better match"
2895 + msgstr "spandeer ekstra siklusse om 'n beter passing te vind"
2896 +
2897 + msgid "use revisions from <file> instead of calling git-rev-list"
2898 + msgstr ""
2899 + "gebruik hersienings uit <lêer> in plaas daarvan om git-rev-list te roep"
2900 +
2901 + msgid "use <file>'s contents as the final image"
2902 + msgstr "gebruik die inhoud van <lêer> as die finale beeld"
2903 +
2904 + msgid "score"
2905 + msgstr "telling"
2906 +
2907 + msgid "find line copies within and across files"
2908 + msgstr "vind reëlkopieë binne en oor lêers heen"
2909 +
2910 + msgid "find line movements within and across files"
2911 + msgstr "vind reëlverskuiwings binne en oor lêers heen"
2912 +
2913 + msgid "range"
2914 + msgstr "reeks"
2915 +
2916 + msgid "process only line range <start>,<end> or function :<funcname>"
2917 + msgstr "verwerk slegs reëlreeks <begin>,<einde> of funksie :<funksienaam>"
2918 +
2919 + msgid "--progress can't be used with --incremental or porcelain formats"
2920 + msgstr ""
2921 + "--progress kan nie saam met --incremental of porselein-formate gebruik word "
2922 + "nie"
2923 +
2924 + #. TRANSLATORS: This string is used to tell us the
2925 + #. maximum display width for a relative timestamp in
2926 + #. "git blame" output. For C locale, "4 years, 11
2927 + #. months ago", which takes 22 places, is the longest
2928 + #. among various forms of relative timestamps, but
2929 + #. your language may need more or fewer display
2930 + #. columns.
2931 + #.
2932 + msgid "4 years, 11 months ago"
2933 + msgstr "4 jaar, 11 maande gelede"
2934 +
2935 + #, c-format
2936 + msgid "file %s has only %lu line"
2937 + msgid_plural "file %s has only %lu lines"
2938 + msgstr[0] "lêer %s het slegs %lu reël"
2939 + msgstr[1] "lêer %s het slegs %lu reëls"
2940 +
2941 + msgid "Blaming lines"
2942 + msgstr "Ken blaam aan reëls toe"
2943 +
2944 + msgid ""
2945 + "git branch [<options>] [-r | -a] [--merged] [--no-merged] [(--forked "
2946 + "<branch>)...]"
2947 + msgstr ""
2948 + "git branch [<opsies>] [-r | -a] [--merged] [--no-merged] [(--forked "
2949 + "<tak>)...]"
2950 +
2951 + msgid ""
2952 + "git branch [<options>] [-f] [--recurse-submodules] <branch-name> [<start-"
2953 + "point>]"
2954 + msgstr ""
2955 + "git branch [<opsies>] [-f] [--recurse-submodules] <taknaam> [<beginpunt>]"
2956 +
2957 + msgid "git branch [<options>] [-l] [<pattern>...]"
2958 + msgstr "git branch [<opsies>] [-l] [<patroon>...]"
2959 +
2960 + msgid "git branch [<options>] [-r] (-d | -D) <branch-name>..."
2961 + msgstr "git branch [<opsies>] [-r] (-d | -D) <taknaam>..."
2962 +
2963 + msgid "git branch [<options>] (-m | -M) [<old-branch>] <new-branch>"
2964 + msgstr "git branch [<opsies>] (-m | -M) [<ou-tak>] <nuwe-tak>"
2965 +
2966 + msgid "git branch [<options>] (-c | -C) [<old-branch>] <new-branch>"
2967 + msgstr "git branch [<opsies>] (-c | -C) [<ou-tak>] <nuwe-tak>"
2968 +
2969 + msgid "git branch [<options>] [-r | -a] [--points-at]"
2970 + msgstr "git branch [<opsies>] [-r | -a] [--points-at]"
2971 +
2972 + msgid "git branch [<options>] [-r | -a] [--format]"
2973 + msgstr "git branch [<opsies>] [-r | -a] [--format]"
2974 +
2975 + msgid ""
2976 + "git branch [<options>] (--delete-merged <pattern>)... [<branch-pattern>...]"
2977 + msgstr "git branch [<opsies>] (--delete-merged <patroon>)... [<takpatroon>...]"
2978 +
2979 + #, c-format
2980 + msgid ""
2981 + "deleting branch '%s' that has been merged to\n"
2982 + " '%s', but not yet merged to HEAD"
2983 + msgstr ""
2984 + "skrap tak '%s' wat saamgesmelt is met\n"
2985 + " '%s', maar nog nie met HEAD saamgesmelt is nie"
2986 +
2987 + #, c-format
2988 + msgid ""
2989 + "not deleting branch '%s' that is not yet merged to\n"
2990 + " '%s', even though it is merged to HEAD"
2991 + msgstr ""
2992 + "skrap nie tak '%s' wat nog nie saamgesmelt is met\n"
2993 + " '%s' nie, al is dit met HEAD saamgesmelt"
2994 +
2995 + #, c-format
2996 + msgid "couldn't look up commit object for '%s'"
2997 + msgstr "kon nie vasleggingsobjek vir '%s' opsoek nie"
2998 +
2999 + #, c-format
3000 + msgid "the branch '%s' is not fully merged"
3001 + msgstr "die tak '%s' is nie volledig saamgesmelt nie"
3002 +
3003 + #, c-format
3004 + msgid "If you are sure you want to delete it, run 'git branch -D %s'"
3005 + msgstr "As jy seker is dat jy dit wil skrap, voer 'git branch -D %s' uit"
3006 +
3007 + msgid "update of config-file failed"
3008 + msgstr "kon nie konfigurasielêer bywerk nie"
3009 +
3010 + msgid "cannot use -a with -d"
3011 + msgstr "kan nie -a saam met -d gebruik nie"
3012 +
3013 + #, c-format
3014 + msgid "cannot delete branch '%s' used by worktree at '%s' for bisect"
3015 + msgstr ""
3016 + "kan nie tak '%s' skrap wat deur die werkboom by '%s' vir halvering gebruik "
3017 + "word nie"
3018 +
3019 + #, c-format
3020 + msgid "cannot delete branch '%s' used by worktree at '%s'"
3021 + msgstr "kan nie tak '%s' skrap wat deur die werkboom by '%s' gebruik word nie"
3022 +
3023 + #, c-format
3024 + msgid "remote-tracking branch '%s' not found"
3025 + msgstr "afgeleë volgtak '%s' nie gevind nie"
3026 +
3027 + #, c-format
3028 + msgid ""
3029 + "branch '%s' not found.\n"
3030 + "Did you forget --remote?"
3031 + msgstr ""
3032 + "tak '%s' nie gevind nie.\n"
3033 + "Het jy --remote vergeet?"
3034 +
3035 + #, c-format
3036 + msgid "branch '%s' not found"
3037 + msgstr "tak '%s' nie gevind nie"
3038 +
3039 + #, c-format
3040 + msgid "Would delete remote-tracking branch %s (was %s).\n"
3041 + msgstr "Sou afgeleë volgtak %s skrap (was %s).\n"
3042 +
3043 + #, c-format
3044 + msgid "Would delete branch %s (was %s).\n"
3045 + msgstr "Sou tak %s skrap (was %s).\n"
3046 +
3047 + #, c-format
3048 + msgid "Deleted remote-tracking branch %s (was %s).\n"
3049 + msgstr "Afgeleë volgtak %s geskrap (was %s).\n"
3050 +
3051 + #, c-format
3052 + msgid "Deleted branch %s (was %s).\n"
3053 + msgstr "Tak %s geskrap (was %s).\n"
3054 +
3055 + msgid "unable to parse format string"
3056 + msgstr "kan nie formaatstring ontleed nie"
3057 +
3058 + msgid "could not resolve HEAD"
3059 + msgstr "kon nie HEAD oplos nie"
3060 +
3061 + #, c-format
3062 + msgid "HEAD (%s) points outside of refs/heads/"
3063 + msgstr "HEAD (%s) wys na buite refs/heads/"
3064 +
3065 + #, c-format
3066 + msgid "branch %s is being rebased at %s"
3067 + msgstr "tak %s word by %s herbaseer"
3068 +
3069 + #, c-format
3070 + msgid "branch %s is being bisected at %s"
3071 + msgstr "tak %s word by %s gehalveer"
3072 +
3073 + #, c-format
3074 + msgid "HEAD of working tree %s is not updated"
3075 + msgstr "HEAD van werkboom %s is nie bygewerk nie"
3076 +
3077 + #, c-format
3078 + msgid "invalid branch name: '%s'"
3079 + msgstr "ongeldige taknaam: '%s'"
3080 +
3081 + #, c-format
3082 + msgid "no commit on branch '%s' yet"
3083 + msgstr "nog geen vaslegging op tak '%s' nie"
3084 +
3085 + #, c-format
3086 + msgid "no branch named '%s'"
3087 + msgstr "geen tak genaamd '%s' nie"
3088 +
3089 + msgid "branch rename failed"
3090 + msgstr "kon nie tak hernoem nie"
3091 +
3092 + msgid "branch copy failed"
3093 + msgstr "kon nie tak kopieer nie"
3094 +
3095 + #, c-format
3096 + msgid "created a copy of a misnamed branch '%s'"
3097 + msgstr "'n kopie van 'n verkeerd benoemde tak '%s' is geskep"
3098 +
3099 + #, c-format
3100 + msgid "renamed a misnamed branch '%s' away"
3101 + msgstr "'n verkeerd benoemde tak '%s' is weg hernoem"
3102 +
3103 + #, c-format
3104 + msgid "branch renamed to %s, but HEAD is not updated"
3105 + msgstr "tak is na %s hernoem, maar HEAD is nie bygewerk nie"
3106 +
3107 + msgid "branch is renamed, but update of config-file failed"
3108 + msgstr "tak is hernoem, maar kon nie konfigurasielêer bywerk nie"
3109 +
3110 + msgid "branch is copied, but update of config-file failed"
3111 + msgstr "tak is gekopieer, maar kon nie konfigurasielêer bywerk nie"
3112 +
3113 + #, c-format
3114 + msgid "'%s' is not a valid branch or pattern"
3115 + msgstr "'%s' is nie 'n geldige tak of patroon nie"
3116 +
3117 + #, c-format
3118 + msgid "Skipping '%s' (branch.%s.deleteMerged is false)\n"
3119 + msgstr "Slaan '%s' oor (branch.%s.deleteMerged is false)\n"
3120 +
3121 + #, c-format
3122 + msgid ""
3123 + "Please edit the description for the branch\n"
3124 + " %s\n"
3125 + "Lines starting with '%s' will be stripped.\n"
3126 + msgstr ""
3127 + "Wysig asseblief die beskrywing vir die tak\n"
3128 + " %s\n"
3129 + "Reëls wat met '%s' begin, sal verwyder word.\n"
3130 +
3131 + msgid "--set-upstream-to takes a single <remote>/<branch> argument"
3132 + msgstr "--set-upstream-to neem 'n enkele argument <afgeleë>/<tak>"
3133 +
3134 + #, c-format
3135 + msgid "Did you mean to use: git branch --set-upstream-to=%s/%s?"
3136 + msgstr "Het jy bedoel om dit te gebruik: git branch --set-upstream-to=%s/%s?"
3137 +
3138 + msgid "Generic options"
3139 + msgstr "Algemene opsies"
3140 +
3141 + msgid "show hash and subject, give twice for upstream branch"
3142 + msgstr "wys hash en onderwerp, gee twee keer vir stroomop-tak"
3143 +
3144 + msgid "suppress informational messages"
3145 + msgstr "onderdruk inligtingsboodskappe"
3146 +
3147 + msgid "set branch tracking configuration"
3148 + msgstr "stel takvolgkonfigurasie op"
3149 +
3150 + msgid "do not use"
3151 + msgstr "moenie gebruik nie"
3152 +
3153 + msgid "upstream"
3154 + msgstr "stroomop"
3155 +
3156 + msgid "change the upstream info"
3157 + msgstr "verander die stroomop-inligting"
3158 +
3159 + msgid "unset the upstream info"
3160 + msgstr "verwyder die stroomop-inligting"
3161 +
3162 + msgid "use colored output"
3163 + msgstr "gebruik gekleurde afvoer"
3164 +
3165 + msgid "act on remote-tracking branches"
3166 + msgstr "tree op afgeleë volgtakke in"
3167 +
3168 + msgid "print only branches that contain the commit"
3169 + msgstr "druk slegs takke wat die vaslegging bevat"
3170 +
3171 + msgid "print only branches that don't contain the commit"
3172 + msgstr "druk slegs takke wat nie die vaslegging bevat nie"
3173 +
3174 + msgid "Specific git-branch actions:"
3175 + msgstr "Spesifieke aksies vir git-branch:"
3176 +
3177 + msgid "list both remote-tracking and local branches"
3178 + msgstr "lys beide afgeleë volgtakke en plaaslike takke"
3179 +
3180 + msgid "delete fully merged branch"
3181 + msgstr "skrap volledig saamgesmelte tak"
3182 +
3183 + msgid "delete branch (even if not merged)"
3184 + msgstr "skrap tak (selfs al is dit nie saamgesmelt nie)"
3185 +
3186 + msgid "move/rename a branch and its reflog"
3187 + msgstr "skuif/hernoem 'n tak en sy reflog"
3188 +
3189 + msgid "move/rename a branch, even if target exists"
3190 + msgstr "skuif/hernoem 'n tak, selfs al bestaan die teiken"
3191 +
3192 + msgid "do not output a newline after empty formatted refs"
3193 + msgstr "moenie 'n nuwe reël ná leë geformateerde verwysings afvoer nie"
3194 +
3195 + msgid "copy a branch and its reflog"
3196 + msgstr "kopieer 'n tak en sy reflog"
3197 +
3198 + msgid "copy a branch, even if target exists"
3199 + msgstr "kopieer 'n tak, selfs al bestaan die teiken"
3200 +
3201 + msgid "list branch names"
3202 + msgstr "lys taknames"
3203 +
3204 + msgid "show current branch name"
3205 + msgstr "wys huidige taknaam"
3206 +
3207 + msgid "create the branch's reflog"
3208 + msgstr "skep die tak se reflog"
3209 +
3210 + msgid "edit the description for the branch"
3211 + msgstr "wysig die beskrywing vir die tak"
3212 +
3213 + msgid "pattern"
3214 + msgstr "patroon"
3215 +
3216 + msgid "delete merged branches whose upstream matches <pattern> (repeatable)"
3217 + msgstr ""
3218 + "skrap saamgesmelte takke waarvan die stroomop by <patroon> pas (herhaalbaar)"
3219 +
3220 + msgid "with --delete-merged, only print which branches would be deleted"
3221 + msgstr "met --delete-merged, druk slegs watter takke geskrap sou word"
3222 +
3223 + msgid "force creation, move/rename, deletion"
3224 + msgstr "forseer skepping, skuif/hernoeming, skrapping"
3225 +
3226 + msgid "print only branches that are merged"
3227 + msgstr "druk slegs takke wat saamgesmelt is"
3228 +
3229 + msgid "print only branches that are not merged"
3230 + msgstr "druk slegs takke wat nie saamgesmelt is nie"
3231 +
3232 + msgid "branch"
3233 + msgstr "tak"
3234 +
3235 + msgid "print only branches whose upstream matches <branch> (repeatable)"
3236 + msgstr "druk slegs takke waarvan die stroomop by <tak> pas (herhaalbaar)"
3237 +
3238 + msgid "list branches in columns"
3239 + msgstr "lys takke in kolomme"
3240 +
3241 + msgid "object"
3242 + msgstr "objek"
3243 +
3244 + msgid "print only branches of the object"
3245 + msgstr "druk slegs takke van die objek"
3246 +
3247 + msgid "sorting and filtering are case insensitive"
3248 + msgstr "sortering en filtrering is hoofletter-onsensitief"
3249 +
3250 + msgid "recurse through submodules"
3251 + msgstr "gaan rekursief deur submodules"
3252 +
3253 + msgid "format to use for the output"
3254 + msgstr "formaat om vir die afvoer te gebruik"
3255 +
3256 + msgid "failed to resolve HEAD as a valid ref"
3257 + msgstr "kon nie HEAD as 'n geldige verwysing oplos nie"
3258 +
3259 + msgid "HEAD not found below refs/heads!"
3260 + msgstr "HEAD nie onder refs/heads gevind nie!"
3261 +
3262 + msgid "--dry-run requires --delete-merged"
3263 + msgstr "--dry-run vereis --delete-merged"
3264 +
3265 + msgid ""
3266 + "branch with --recurse-submodules can only be used if "
3267 + "submodule.propagateBranches is enabled"
3268 + msgstr ""
3269 + "branch met --recurse-submodules kan slegs gebruik word as "
3270 + "submodule.propagateBranches geaktiveer is"
3271 +
3272 + msgid "--recurse-submodules can only be used to create branches"
3273 + msgstr "--recurse-submodules kan slegs gebruik word om takke te skep"
3274 +
3275 + msgid "branch name required"
3276 + msgstr "taknaam word vereis"
3277 +
3278 + msgid "cannot give description to detached HEAD"
3279 + msgstr "kan nie 'n beskrywing aan 'n ontkoppelde HEAD gee nie"
3280 +
3281 + msgid "cannot edit description of more than one branch"
3282 + msgstr "kan nie die beskrywing van meer as een tak wysig nie"
3283 +
3284 + msgid "cannot copy the current branch while not on any"
3285 + msgstr "kan nie die huidige tak kopieer terwyl jy op geen tak is nie"
3286 +
3287 + msgid "cannot rename the current branch while not on any"
3288 + msgstr "kan nie die huidige tak hernoem terwyl jy op geen tak is nie"
3289 +
3290 + msgid "too many branches for a copy operation"
3291 + msgstr "te veel takke vir 'n kopieerbewerking"
3292 +
3293 + msgid "too many arguments for a rename operation"
3294 + msgstr "te veel argumente vir 'n hernoembewerking"
3295 +
3296 + msgid "too many arguments to set new upstream"
3297 + msgstr "te veel argumente om nuwe stroomop te stel"
3298 +
3299 + #, c-format
3300 + msgid ""
3301 + "could not set upstream of HEAD to %s when it does not point to any branch"
3302 + msgstr ""
3303 + "kon nie stroomop van HEAD na %s stel nie, aangesien dit na geen tak wys nie"
3304 +
3305 + #, c-format
3306 + msgid "no such branch '%s'"
3307 + msgstr "geen tak '%s' nie"
3308 +
3309 + #, c-format
3310 + msgid "branch '%s' does not exist"
3311 + msgstr "tak '%s' bestaan nie"
3312 +
3313 + msgid "too many arguments to unset upstream"
3314 + msgstr "te veel argumente om stroomop te ontstel"
3315 +
3316 + msgid "could not unset upstream of HEAD when it does not point to any branch"
3317 + msgstr "kon nie stroomop van HEAD ontstel nie wanneer dit na geen tak wys nie"
3318 +
3319 + #, c-format
3320 + msgid "branch '%s' has no upstream information"
3321 + msgstr "tak '%s' het geen stroomop-inligting nie"
3322 +
3323 + msgid ""
3324 + "the -a, and -r, options to 'git branch' do not take a branch name.\n"
3325 + "Did you mean to use: -a|-r --list <pattern>?"
3326 + msgstr ""
3327 + "die -a- en -r-opsies van 'git branch' neem nie 'n taknaam nie.\n"
3328 + "Het jy bedoel om dit te gebruik: -a|-r --list <patroon>?"
3329 +
3330 + msgid ""
3331 + "the '--set-upstream' option is no longer supported. Please use '--track' or "
3332 + "'--set-upstream-to' instead"
3333 + msgstr ""
3334 + "die '--set-upstream'-opsie word nie meer ondersteun nie. Gebruik eerder '--"
3335 + "track' of '--set-upstream-to'"
3336 +
3337 + msgid "git version:\n"
3338 + msgstr "Git-weergawe:\n"
3339 +
3340 + msgid "compiler info: "
3341 + msgstr "samesteller-inligting: "
3342 +
3343 + msgid "libc info: "
3344 + msgstr "libc-inligting: "
3345 +
3346 + msgid "not run from a git repository - no hooks to show\n"
3347 + msgstr "nie vanuit 'n Git-bewaarplek uitgevoer nie - geen hake om te wys nie\n"
3348 +
3349 + msgid ""
3350 + "git bugreport [(-o | --output-directory) <path>]\n"
3351 + " [(-s | --suffix) <format> | --no-suffix]\n"
3352 + " [--diagnose[=<mode>]]"
3353 + msgstr ""
3354 + "git bugreport [(-o | --output-directory) <pad>]\n"
3355 + " [(-s | --suffix) <formaat> | --no-suffix]\n"
3356 + " [--diagnose[=<modus>]]"
3357 +
3358 + msgid ""
3359 + "Thank you for filling out a Git bug report!\n"
3360 + "Please answer the following questions to help us understand your issue.\n"
3361 + "\n"
3362 + "What did you do before the bug happened? (Steps to reproduce your issue)\n"
3363 + "\n"
3364 + "What did you expect to happen? (Expected behavior)\n"
3365 + "\n"
3366 + "What happened instead? (Actual behavior)\n"
3367 + "\n"
3368 + "What's different between what you expected and what actually happened?\n"
3369 + "\n"
3370 + "Anything else you want to add:\n"
3371 + "\n"
3372 + "Please review the rest of the bug report below.\n"
3373 + "You can delete any lines you don't wish to share.\n"
3374 + msgstr ""
3375 + "Dankie dat jy 'n Git-foutverslag invul!\n"
3376 + "Beantwoord asseblief die volgende vrae om ons te help om jou probleem te "
3377 + "verstaan.\n"
3378 + "\n"
3379 + "Wat het jy gedoen voordat die fout voorgekom het? (Stappe om jou probleem te "
3380 + "herhaal)\n"
3381 + "\n"
3382 + "Wat het jy verwag moes gebeur? (Verwagte gedrag)\n"
3383 + "\n"
3384 + "Wat het in plaas daarvan gebeur? (Werklike gedrag)\n"
3385 + "\n"
3386 + "Wat is die verskil tussen wat jy verwag het en wat werklik gebeur het?\n"
3387 + "\n"
3388 + "Enigiets anders wat jy wil byvoeg:\n"
3389 + "\n"
3390 + "Hersien asseblief die res van die foutverslag hieronder.\n"
3391 + "Jy kan enige reëls uitvee wat jy nie wil deel nie.\n"
3392 +
3393 + msgid "mode"
3394 + msgstr "modus"
3395 +
3396 + msgid ""
3397 + "create an additional zip archive of detailed diagnostics (default 'stats')"
3398 + msgstr ""
3399 + "skep 'n bykomende zip-argief met gedetailleerde diagnostiek (verstek 'stats')"
3400 +
3401 + msgid "specify a destination for the bugreport file(s)"
3402 + msgstr "spesifiseer 'n bestemming vir die foutverslaglêer(s)"
3403 +
3404 + msgid "specify a strftime format suffix for the filename(s)"
3405 + msgstr "spesifiseer 'n strftime-formaatagtervoegsel vir die lêernaam(e)"
3406 +
3407 + #, c-format
3408 + msgid "unknown argument `%s'"
3409 + msgstr "onbekende argument `%s'"
3410 +
3411 + #, c-format
3412 + msgid "could not create leading directories for '%s'"
3413 + msgstr "kon nie voorafgaande gidse vir '%s' skep nie"
3414 +
3415 + #, c-format
3416 + msgid "unable to create diagnostics archive %s"
3417 + msgstr "kan nie diagnostiekargief %s skep nie"
3418 +
3419 + msgid "System Info"
3420 + msgstr "Stelselinligting"
3421 +
3422 + msgid "Enabled Hooks"
3423 + msgstr "Geaktiveerde hake"
3424 +
3425 + #, c-format
3426 + msgid "unable to write to %s"
3427 + msgstr "kan nie na %s skryf nie"
3428 +
3429 + #, c-format
3430 + msgid "Created new report at '%s'.\n"
3431 + msgstr "Nuwe verslag geskep by '%s'.\n"
3432 +
3433 + msgid ""
3434 + "git bundle create [-q | --quiet | --progress]\n"
3435 + " [--version=<version>] <file> <git-rev-list-args>"
3436 + msgstr ""
3437 + "git bundle create [-q | --quiet | --progress]\n"
3438 + " [--version=<weergawe>] <lêer> <argumente vir git-rev-list>"
3439 +
3440 + msgid "git bundle verify [-q | --quiet] <file>"
3441 + msgstr "git bundle verify [-q | --quiet] <lêer>"
3442 +
3443 + msgid "git bundle list-heads <file> [<refname>...]"
3444 + msgstr "git bundle list-heads <lêer> [<verwysingsnaam>...]"
3445 +
3446 + msgid "git bundle unbundle [--progress] <file> [<refname>...]"
3447 + msgstr "git bundle unbundle [--progress] <lêer> [<verwysingsnaam>...]"
3448 +
3449 + msgid "need a <file> argument"
3450 + msgstr "benodig 'n <lêer>-argument"
3451 +
3452 + msgid "do not show progress meter"
3453 + msgstr "moenie vorderingsmeter wys nie"
3454 +
3455 + msgid "show progress meter"
3456 + msgstr "wys vorderingsmeter"
3457 +
3458 + msgid "historical; same as --progress"
3459 + msgstr "histories; dieselfde as --progress"
3460 +
3461 + msgid "specify bundle format version"
3462 + msgstr "spesifiseer bondelformaatweergawe"
3463 +
3464 + msgid "Need a repository to create a bundle."
3465 + msgstr "Benodig 'n bewaarplek om 'n bondel te skep."
3466 +
3467 + msgid "do not show bundle details"
3468 + msgstr "moenie bondelbesonderhede wys nie"
3469 +
3470 + msgid "need a repository to verify a bundle"
3471 + msgstr "benodig 'n bewaarplek om 'n bondel te verifieer"
3472 +
3473 + #, c-format
3474 + msgid "%s is okay\n"
3475 + msgstr "%s is in orde\n"
3476 +
3477 + msgid "Need a repository to unbundle."
3478 + msgstr "Benodig 'n bewaarplek om te ontbondel."
3479 +
3480 + msgid "Unbundling objects"
3481 + msgstr "Ontbondel objekte"
3482 +
3483 + #, c-format
3484 + msgid "cannot read object %s '%s'"
3485 + msgstr "kan nie objek %s '%s' lees nie"
3486 +
3487 + msgid "must supply valid remote when using remote-object-info"
3488 + msgstr ""
3489 + "moet 'n geldige afgeleë verskaf wanneer remote-object-info gebruik word"
3490 +
3491 + #, c-format
3492 + msgid "remote-object-info does not support short oids, %d characters required"
3493 + msgstr ""
3494 + "remote-object-info ondersteun nie kort objek-ID's nie, %d karakters word "
3495 + "vereis"
3496 +
3497 + #, c-format
3498 + msgid "not a valid object name '%s'"
3499 + msgstr "nie 'n geldige objeknaam '%s' nie"
3500 +
3501 + msgid "remote-object-info requires objects"
3502 + msgstr "remote-object-info vereis objekte"
3503 +
3504 + #, c-format
3505 + msgid "mailmap: invalid boolean '%s'"
3506 + msgstr "mailmap: ongeldige Booleaanse waarde '%s'"
3507 +
3508 + msgid "remote-object-info command too long"
3509 + msgstr "opdrag vir remote-object-info is te lank"
3510 +
3511 + #, c-format
3512 + msgid "remote-object-info: failed to parse command line: %s"
3513 + msgstr "remote-object-info: kon nie opdragreël ontleed nie: %s"
3514 +
3515 + #, c-format
3516 + msgid "remote-object-info supports at most %d objects"
3517 + msgstr "remote-object-info ondersteun hoogstens %d objekte"
3518 +
3519 + #, c-format
3520 + msgid "failed to get object info from the remote: %s"
3521 + msgstr "kon nie objekinligting van die afgeleë kry nie: %s"
3522 +
3523 + msgid "flush is only for --buffer mode"
3524 + msgstr "flush is slegs vir modus --buffer"
3525 +
3526 + msgid "empty command in input"
3527 + msgstr "leë opdrag in invoer"
3528 +
3529 + #, c-format
3530 + msgid "whitespace before command: '%s'"
3531 + msgstr "witspasie voor opdrag: '%s'"
3532 +
3533 + #, c-format
3534 + msgid "%s requires arguments"
3535 + msgstr "%s vereis argumente"
3536 +
3537 + #, c-format
3538 + msgid "%s takes no arguments"
3539 + msgstr "%s neem geen argumente nie"
3540 +
3541 + msgid "only one batch option may be specified"
3542 + msgstr "slegs een bondelverwerkingsopsie mag gespesifiseer word"
3543 +
3544 + msgid "git cat-file <type> <object>"
3545 + msgstr "git cat-file <tipe> <objek>"
3546 +
3547 + msgid "git cat-file (-e | -p | -t | -s) <object>"
3548 + msgstr "git cat-file (-e | -p | -t | -s) <objek>"
3549 +
3550 + msgid ""
3551 + "git cat-file (--textconv | --filters)\n"
3552 + " [<rev>:<path|tree-ish> | --path=<path|tree-ish> <rev>]"
3553 + msgstr ""
3554 + "git cat-file (--textconv | --filters)\n"
3555 + " [<revisie>:<pad|boomagtige> | --path=<pad|boomagtige> <revisie>]"
3556 +
3557 + msgid ""
3558 + "git cat-file (--batch | --batch-check | --batch-command) [--batch-all-"
3559 + "objects]\n"
3560 + " [--buffer] [--follow-symlinks] [--unordered]\n"
3561 + " [--textconv | --filters] [-Z]"
3562 + msgstr ""
3563 + "git cat-file (--batch | --batch-check | --batch-command) [--batch-all-"
3564 + "objects]\n"
3565 + " [--buffer] [--follow-symlinks] [--unordered]\n"
3566 + " [--textconv | --filters] [-Z]"
3567 +
3568 + msgid "Check object existence or emit object contents"
3569 + msgstr "Kontroleer of objek bestaan of gee objekinhoud uit"
3570 +
3571 + msgid "check if <object> exists"
3572 + msgstr "kontroleer of <objek> bestaan"
3573 +
3574 + msgid "pretty-print <object> content"
3575 + msgstr "druk <objek>-inhoud netjies uit"
3576 +
3577 + msgid "Emit [broken] object attributes"
3578 + msgstr "Gee [gebreekte] objekeienskappe uit"
3579 +
3580 + msgid "show object type (one of 'blob', 'tree', 'commit', 'tag', ...)"
3581 + msgstr "wys objektipe (een van 'blob', 'tree', 'commit', 'tag', ...)"
3582 +
3583 + msgid "show object size"
3584 + msgstr "wys objekgrootte"
3585 +
3586 + msgid "use mail map file"
3587 + msgstr "gebruik e-poskaartlêer (mailmap)"
3588 +
3589 + msgid "Batch objects requested on stdin (or --batch-all-objects)"
3590 + msgstr ""
3591 + "Bondelverwerk objekte wat op stdin aangevra word (of --batch-all-objects)"
3592 +
3593 + msgid "show full <object> or <rev> contents"
3594 + msgstr "wys volledige <objek>- of <revisie>-inhoud"
3595 +
3596 + msgid "like --batch, but don't emit <contents>"
3597 + msgstr "soos --batch, maar moenie <inhoud> uitgee nie"
3598 +
3599 + msgid "stdin is NUL-terminated"
3600 + msgstr "stdin is NUL-beëindig"
3601 +
3602 + msgid "stdin and stdout is NUL-terminated"
3603 + msgstr "stdin en stdout is NUL-beëindig"
3604 +
3605 + msgid "read commands from stdin"
3606 + msgstr "lees opdragte vanaf stdin"
3607 +
3608 + msgid "with --batch[-check]: ignores stdin, batches all known objects"
3609 + msgstr ""
3610 + "met --batch[-check]: ignoreer stdin, bondelverwerk alle bekende objekte"
3611 +
3612 + msgid "Change or optimize batch output"
3613 + msgstr "Verander of optimaliseer bondeluitvoer"
3614 +
3615 + msgid "buffer --batch output"
3616 + msgstr "buffer uitvoer --batch"
3617 +
3618 + msgid "follow in-tree symlinks"
3619 + msgstr "volg simboliese skakels binne die boom"
3620 +
3621 + msgid "do not order objects before emitting them"
3622 + msgstr "moenie objekte orden voordat hulle uitgegee word nie"
3623 +
3624 + msgid ""
3625 + "Emit object (blob or tree) with conversion or filter (stand-alone, or with "
3626 + "batch)"
3627 + msgstr ""
3628 + "Gee objek (blob of boom) uit met omskakeling of filter (alleenstaande, of "
3629 + "met bondel)"
3630 +
3631 + msgid "run textconv on object's content"
3632 + msgstr "voer textconv op objek se inhoud uit"
3633 +
3634 + msgid "run filters on object's content"
3635 + msgstr "voer filters op objek se inhoud uit"
3636 +
3637 + msgid "blob|tree"
3638 + msgstr "blob|boom"
3639 +
3640 + msgid "use a <path> for (--textconv | --filters); Not with 'batch'"
3641 + msgstr "gebruik 'n <pad> vir (--textconv | --filters); Nie met 'batch' nie"
3642 +
3643 + msgid "objects filter only supported in batch mode"
3644 + msgstr "objekfilter word slegs in bondelmodus ondersteun"
3645 +
3646 + #, c-format
3647 + msgid "objects filter not supported: '%s'"
3648 + msgstr "objekfilter word nie ondersteun nie: '%s'"
3649 +
3650 + #, c-format
3651 + msgid "'%s=<%s>' needs '%s' or '%s'"
3652 + msgstr "'%s=<%s>' benodig '%s' of '%s'"
3653 +
3654 + msgid "path|tree-ish"
3655 + msgstr "pad|boomagtige"
3656 +
3657 + #, c-format
3658 + msgid "'%s' requires a batch mode"
3659 + msgstr "'%s' vereis 'n bondelmodus"
3660 +
3661 + #, c-format
3662 + msgid "'-%c' is incompatible with batch mode"
3663 + msgstr "'-%c' is onversoenbaar met bondelmodus"
3664 +
3665 + msgid "batch modes take no arguments"
3666 + msgstr "bondelmodusse neem geen argumente nie"
3667 +
3668 + #, c-format
3669 + msgid "<rev> required with '%s'"
3670 + msgstr "<revisie> word vereis met '%s'"
3671 +
3672 + #, c-format
3673 + msgid "<object> required with '-%c'"
3674 + msgstr "<objek> word vereis met '-%c'"
3675 +
3676 + #, c-format
3677 + msgid "only two arguments allowed in <type> <object> mode, not %d"
3678 + msgstr "slegs twee argumente toegelaat in <tipe> <objek>-modus, nie %d nie"
3679 +
3680 + msgid ""
3681 + "git check-attr [--source <tree-ish>] [-a | --all | <attr>...] [--] "
3682 + "<pathname>..."
3683 + msgstr ""
3684 + "git check-attr [--source <boomagtige>] [-a | --all | <eienskap>...] [--] "
3685 + "<padnaam>..."
3686 +
3687 + msgid ""
3688 + "git check-attr --stdin [-z] [--source <tree-ish>] [-a | --all | <attr>...]"
3689 + msgstr ""
3690 + "git check-attr --stdin [-z] [--source <boomagtige>] [-a | --all | "
3691 + "<eienskap>...]"
3692 +
3693 + msgid "report all attributes set on file"
3694 + msgstr "rapporteer alle eienskappe wat op lêer gestel is"
3695 +
3696 + msgid "use .gitattributes only from the index"
3697 + msgstr "gebruik .gitattributes slegs vanaf die indeks"
3698 +
3699 + msgid "read file names from stdin"
3700 + msgstr "lees lêername vanaf stdin"
3701 +
3702 + msgid "terminate input and output records by a NUL character"
3703 + msgstr "beëindig invoer- en uitvoerrekords met 'n NUL-karakter"
3704 +
3705 + msgid "<tree-ish>"
3706 + msgstr "<boomagtige>"
3707 +
3708 + msgid "which tree-ish to check attributes at"
3709 + msgstr "by watter boomagtige eienskappe gekontroleer moet word"
3710 +
3711 + msgid "suppress progress reporting"
3712 + msgstr "onderdruk vorderingsverslaggewing"
3713 +
3714 + msgid "show non-matching input paths"
3715 + msgstr "wys invoerpaaie wat nie ooreenstem nie"
3716 +
3717 + msgid "ignore index when checking"
3718 + msgstr "ignoreer indeks tydens kontrolering"
3719 +
3720 + msgid "cannot specify pathnames with --stdin"
3721 + msgstr "kan nie padname met --stdin spesifiseer nie"
3722 +
3723 + msgid "-z only makes sense with --stdin"
3724 + msgstr "-z maak slegs sin met --stdin"
3725 +
3726 + msgid "no path specified"
3727 + msgstr "geen pad gespesifiseer nie"
3728 +
3729 + msgid "--quiet is only valid with a single pathname"
3730 + msgstr "--quiet is slegs geldig met 'n enkele padnaam"
3731 +
3732 + msgid "cannot have both --quiet and --verbose"
3733 + msgstr "kan nie beide --quiet en --verbose hê nie"
3734 +
3735 + msgid "--non-matching is only valid with --verbose"
3736 + msgstr "--non-matching is slegs geldig met --verbose"
3737 +
3738 + msgid "git check-mailmap [<options>] <contact>..."
3739 + msgstr "git check-mailmap [<opsies>] <kontak>..."
3740 +
3741 + msgid "also read contacts from stdin"
3742 + msgstr "lees ook kontakte vanaf stdin"
3743 +
3744 + msgid "read additional mailmap entries from file"
3745 + msgstr "lees bykomende mailmap-inskrywings vanaf lêer"
3746 +
3747 + msgid "blob"
3748 + msgstr "blob"
3749 +
3750 + msgid "read additional mailmap entries from blob"
3751 + msgstr "lees bykomende mailmap-inskrywings vanaf blob"
3752 +
3753 + msgid "no contacts specified"
3754 + msgstr "geen kontakte gespesifiseer nie"
3755 +
3756 + msgid "git checkout--worker [<options>]"
3757 + msgstr "git checkout--worker [<opsies>]"
3758 +
3759 + msgid "string"
3760 + msgstr "string"
3761 +
3762 + msgid "when creating files, prepend <string>"
3763 + msgstr "voeg <string> vooraan by wanneer lêers geskep word"
3764 +
3765 + msgid "git checkout-index [<options>] [--] [<file>...]"
3766 + msgstr "git checkout-index [<opsies>] [--] [<lêer>...]"
3767 +
3768 + msgid "stage should be between 1 and 3 or all"
3769 + msgstr "stadium moet tussen 1 en 3 of all wees"
3770 +
3771 + msgid "check out all files in the index"
3772 + msgstr "check alle lêers in die indeks uit"
3773 +
3774 + msgid "do not skip files with skip-worktree set"
3775 + msgstr "moenie lêers met skip-worktree gestel oorslaan nie"
3776 +
3777 + msgid "force overwrite of existing files"
3778 + msgstr "dwing oorskrywing van bestaande lêers af"
3779 +
3780 + msgid "no warning for existing files and files not in index"
3781 + msgstr ""
3782 + "geen waarskuwing vir bestaande lêers en lêers wat nie in die indeks is nie"
3783 +
3784 + msgid "don't checkout new files"
3785 + msgstr "moenie nuwe lêers uitcheck nie"
3786 +
3787 + msgid "update stat information in the index file"
3788 + msgstr "werk stat-inligting in die indekslêer by"
3789 +
3790 + msgid "read list of paths from the standard input"
3791 + msgstr "lees lys van paaie vanaf die standaardinvoer"
3792 +
3793 + msgid "write the content to temporary files"
3794 + msgstr "skryf die inhoud na tydelike lêers"
3795 +
3796 + msgid "copy out the files from named stage"
3797 + msgstr "kopieer die lêers uit die genoemde stadium"
3798 +
3799 + #, c-format
3800 + msgid "path '%s' does not have our version"
3801 + msgstr "pad '%s' het nie ons weergawe nie"
3802 +
3803 + #, c-format
3804 + msgid "path '%s' does not have their version"
3805 + msgstr "pad '%s' het nie hulle weergawe nie"
3806 +
3807 + #, c-format
3808 + msgid "path '%s' does not have all necessary versions"
3809 + msgstr "pad '%s' het nie al die nodige weergawes nie"
3810 +
3811 + #, c-format
3812 + msgid "path '%s' does not have necessary versions"
3813 + msgstr "pad '%s' het nie nodige weergawes nie"
3814 +
3815 + #, c-format
3816 + msgid "path '%s': cannot merge"
3817 + msgstr "pad '%s': kan nie saamsmelt nie"
3818 +
3819 + #, c-format
3820 + msgid "Unable to add merge result for '%s'"
3821 + msgstr "Kan nie saamsmeltresultaat vir '%s' byvoeg nie"
3822 +
3823 + #, c-format
3824 + msgid "Recreated %d merge conflict"
3825 + msgid_plural "Recreated %d merge conflicts"
3826 + msgstr[0] "%d saamsmeltkonflik herskep"
3827 + msgstr[1] "%d saamsmeltkonflikte herskep"
3828 +
3829 + #, c-format
3830 + msgid "Updated %d path from %s"
3831 + msgid_plural "Updated %d paths from %s"
3832 + msgstr[0] "%d pad opgedateer vanaf %s"
3833 + msgstr[1] "%d paaie opgedateer vanaf %s"
3834 +
3835 + #, c-format
3836 + msgid "Updated %d path from the index"
3837 + msgid_plural "Updated %d paths from the index"
3838 + msgstr[0] "%d pad opgedateer vanaf die indeks"
3839 + msgstr[1] "%d paaie opgedateer vanaf die indeks"
3840 +
3841 + #, c-format
3842 + msgid "'%s' cannot be used with updating paths"
3843 + msgstr "'%s' kan nie saam met die opdatering van paaie gebruik word nie"
3844 +
3845 + #, c-format
3846 + msgid "Cannot update paths and switch to branch '%s' at the same time."
3847 + msgstr "Kan nie tegelykertyd paaie opdateer en na tak '%s' oorskakel nie."
3848 +
3849 + #, c-format
3850 + msgid "neither '%s' or '%s' is specified"
3851 + msgstr "nóg '%s' nóg '%s' is gespesifiseer"
3852 +
3853 + #, c-format
3854 + msgid "'%s' must be used when '%s' is not specified"
3855 + msgstr "'%s' moet gebruik word wanneer '%s' nie gespesifiseer is nie"
3856 +
3857 + #, c-format
3858 + msgid "'%s' or '%s' cannot be used with %s"
3859 + msgstr "'%s' of '%s' kan nie saam met %s gebruik word nie"
3860 +
3861 + #, c-format
3862 + msgid "'%s', '%s', or '%s' cannot be used when checking out of a tree"
3863 + msgstr ""
3864 + "'%s', '%s' of '%s' kan nie gebruik word wanneer daar uit 'n boom uitgecheck "
3865 + "word nie"
3866 +
3867 + #, c-format
3868 + msgid "path '%s' is unmerged"
3869 + msgstr "pad '%s' is nie saamgesmelt nie"
3870 +
3871 + #, c-format
3872 + msgid "unable to read tree (%s)"
3873 + msgstr "kan nie boom lees nie (%s)"
3874 +
3875 + msgid "you need to resolve your current index first"
3876 + msgstr "jy moet eers jou huidige indeks oplos"
3877 +
3878 + #, c-format
3879 + msgid "Can not do reflog for '%s': %s\n"
3880 + msgstr "Kan nie reflog vir '%s' doen nie: %s\n"
3881 +
3882 + msgid "HEAD is now at"
3883 + msgstr "HEAD is nou by"
3884 +
3885 + msgid "unable to update HEAD"
3886 + msgstr "kan nie HEAD opdateer nie"
3887 +
3888 + #, c-format
3889 + msgid "Reset branch '%s'\n"
3890 + msgstr "Tak '%s' teruggestel\n"
3891 +
3892 + #, c-format
3893 + msgid "Already on '%s'\n"
3894 + msgstr "Reeds op '%s'\n"
3895 +
3896 + #, c-format
3897 + msgid "Switched to and reset branch '%s'\n"
3898 + msgstr "Oorgeskakel na tak '%s' en dit herstel\n"
3899 +
3900 + #, c-format
3901 + msgid "Switched to a new branch '%s'\n"
3902 + msgstr "Oorgeskakel na 'n nuwe tak '%s'\n"
3903 +
3904 + #, c-format
3905 + msgid "Switched to branch '%s'\n"
3906 + msgstr "Oorgeskakel na tak '%s'\n"
3907 +
3908 + #, c-format
3909 + msgid " ... and %d more.\n"
3910 + msgstr " ... en %d meer.\n"
3911 +
3912 + #, c-format
3913 + msgid ""
3914 + "Warning: you are leaving %d commit behind, not connected to\n"
3915 + "any of your branches:\n"
3916 + "\n"
3917 + "%s\n"
3918 + msgid_plural ""
3919 + "Warning: you are leaving %d commits behind, not connected to\n"
3920 + "any of your branches:\n"
3921 + "\n"
3922 + "%s\n"
3923 + msgstr[0] ""
3924 + "Waarskuwing: jy laat %d vaslegging agter wat nie aan\n"
3925 + "enige van jou takke gekoppel is nie:\n"
3926 + "\n"
3927 + "%s\n"
3928 + msgstr[1] ""
3929 + "Waarskuwing: jy laat %d vasleggings agter wat nie aan\n"
3930 + "enige van jou takke gekoppel is nie:\n"
3931 + "\n"
3932 + "%s\n"
3933 +
3934 + #, c-format
3935 + msgid ""
3936 + "If you want to keep it by creating a new branch, this may be a good time\n"
3937 + "to do so with:\n"
3938 + "\n"
3939 + " git branch <new-branch-name> %s\n"
3940 + "\n"
3941 + msgid_plural ""
3942 + "If you want to keep them by creating a new branch, this may be a good time\n"
3943 + "to do so with:\n"
3944 + "\n"
3945 + " git branch <new-branch-name> %s\n"
3946 + "\n"
3947 + msgstr[0] ""
3948 + "As jy dit wil behou deur 'n nuwe tak te skep, is dit dalk 'n goeie tyd\n"
3949 + "om dit te doen met:\n"
3950 + "\n"
3951 + " git branch <new-branch-name> %s\n"
3952 + "\n"
3953 + msgstr[1] ""
3954 + "As jy hulle wil behou deur 'n nuwe tak te skep, is dit dalk 'n goeie tyd\n"
3955 + "om dit te doen met:\n"
3956 + "\n"
3957 + " git branch <new-branch-name> %s\n"
3958 + "\n"
3959 +
3960 + msgid "internal error in revision walk"
3961 + msgstr "interne fout in hersieningswandeling"
3962 +
3963 + msgid "Previous HEAD position was"
3964 + msgstr "Vorige HEAD-posisie was"
3965 +
3966 + msgid "You are on a branch yet to be born"
3967 + msgstr "Jy is op 'n tak wat nog gebore moet word"
3968 +
3969 + #, c-format
3970 + msgid "The following paths have local changes:\n"
3971 + msgstr "Die volgende paaie het plaaslike wysigings:\n"
3972 +
3973 + #, c-format
3974 + msgid "Branch name '%s' appears in multiple remotes:"
3975 + msgstr "Taknaam '%s' kom in veelvuldige afgeleë bewaarplekke voor:"
3976 +
3977 + #, c-format
3978 + msgid " %s"
3979 + msgstr " %s"
3980 +
3981 + #, c-format
3982 + msgid ""
3983 + "If you meant to check out a remote tracking branch on <remote>,\n"
3984 + "you can do so by fully qualifying the name with the --track option:\n"
3985 + "\n"
3986 + " git %s --track <remote>/%s\n"
3987 + "\n"
3988 + "If you'd like to always have checkouts of an ambiguous name prefer\n"
3989 + "one remote, e.g. the 'origin' remote, consider setting\n"
3990 + "checkout.defaultRemote=origin in your config."
3991 + msgstr ""
3992 + "As jy bedoel het om 'n afgeleë volgtak op <remote> uit te check,\n"
3993 + "kan jy dit doen deur die naam ten volle te kwalifiseer met die opsie --"
3994 + "track:\n"
3995 + "\n"
3996 + " git %s --track <remote>/%s\n"
3997 + "\n"
3998 + "As jy wil hê dat uitchecks van 'n dubbelsinnige naam altyd een afgeleë\n"
3999 + "verkies, bv. die afgeleë 'origin', oorweeg dit om\n"
4000 + "checkout.defaultRemote=origin in jou konfigurasie in te stel."
4001 +
4002 + #, c-format
4003 + msgid ""
4004 + "'%s' could be both a local file and a tracking branch.\n"
4005 + "Please use -- (and optionally --no-guess) to disambiguate"
4006 + msgstr ""
4007 + "'%s' kan beide 'n plaaslike lêer en 'n volgtak wees.\n"
4008 + "Gebruik asseblief -- (en opsioneel --no-guess) om te onderskei"
4009 +
4010 + #, c-format
4011 + msgid "'%s' matched multiple (%d) remote tracking branches"
4012 + msgstr "'%s' het by veelvuldige (%d) afgeleë volgtakke gepas"
4013 +
4014 + msgid "only one reference expected"
4015 + msgstr "slegs een verwysing verwag"
4016 +
4017 + #, c-format
4018 + msgid "only one reference expected, %d given."
4019 + msgstr "slegs een verwysing verwag, %d gegee."
4020 +
4021 + #, c-format
4022 + msgid "invalid reference: %s"
4023 + msgstr "ongeldige verwysing: %s"
4024 +
4025 + #, c-format
4026 + msgid "reference is not a tree: %s"
4027 + msgstr "verwysing is nie 'n boom nie: %s"
4028 +
4029 + #, c-format
4030 + msgid "a branch is expected, got tag '%s'"
4031 + msgstr "'n tak word verwag, etiket '%s' gekry"
4032 +
4033 + #, c-format
4034 + msgid "a branch is expected, got remote branch '%s'"
4035 + msgstr "'n tak word verwag, afgeleë tak '%s' gekry"
4036 +
4037 + #, c-format
4038 + msgid "a branch is expected, got '%s'"
4039 + msgstr "'n tak word verwag, '%s' gekry"
4040 +
4041 + #, c-format
4042 + msgid "a branch is expected, got commit '%s'"
4043 + msgstr "'n tak word verwag, vaslegging '%s' gekry"
4044 +
4045 + msgid ""
4046 + "If you want to detach HEAD at the commit, try again with the --detach option."
4047 + msgstr ""
4048 + "As jy HEAD by die vaslegging wil ontkoppel, probeer weer met die --detach "
4049 + "opsie."
4050 +
4051 + msgid ""
4052 + "cannot switch branch while merging\n"
4053 + "Consider \"git merge --quit\" or \"git worktree add\"."
4054 + msgstr ""
4055 + "kan nie tak wissel tydens saamsmelting nie\n"
4056 + "Oorweeg \"git merge --quit\" of \"git worktree add\"."
4057 +
4058 + msgid ""
4059 + "cannot switch branch in the middle of an am session\n"
4060 + "Consider \"git am --quit\" or \"git worktree add\"."
4061 + msgstr ""
4062 + "kan nie tak wissel in die middel van 'n am-sessie nie\n"
4063 + "Oorweeg \"git am --quit\" of \"git worktree add\"."
4064 +
4065 + msgid ""
4066 + "cannot switch branch while rebasing\n"
4067 + "Consider \"git rebase --quit\" or \"git worktree add\"."
4068 + msgstr ""
4069 + "kan nie tak wissel terwyl daar herbaseer word nie\n"
4070 + "Oorweeg \"git rebase --quit\" of \"git worktree add\"."
4071 +
4072 + msgid ""
4073 + "cannot switch branch while cherry-picking\n"
4074 + "Consider \"git cherry-pick --quit\" or \"git worktree add\"."
4075 + msgstr ""
4076 + "kan nie tak wissel terwyl daar kersiepluk word nie\n"
4077 + "Oorweeg \"git cherry-pick --quit\" of \"git worktree add\"."
4078 +
4079 + msgid ""
4080 + "cannot switch branch while reverting\n"
4081 + "Consider \"git revert --quit\" or \"git worktree add\"."
4082 + msgstr ""
4083 + "kan nie tak wissel tydens 'n omkering nie\n"
4084 + "Oorweeg \"git revert --quit\" of \"git worktree add\"."
4085 +
4086 + msgid "you are switching branch while bisecting"
4087 + msgstr "jy is besig om takke te wissel tydens 'n halvering"
4088 +
4089 + msgid "paths cannot be used with switching branches"
4090 + msgstr "paaie kan nie gebruik word terwyl takke gewissel word nie"
4091 +
4092 + #, c-format
4093 + msgid "'%s' cannot be used with switching branches"
4094 + msgstr "'%s' kan nie saam met die wissel van takke gebruik word nie"
4095 +
4096 + #, c-format
4097 + msgid "'%s' needs the paths to check out"
4098 + msgstr "'%s' benodig die paaie om uit te check"
4099 +
4100 + #, c-format
4101 + msgid "'%s' cannot be used with '%s'"
4102 + msgstr "'%s' kan nie saam met '%s' gebruik word nie"
4103 +
4104 + #, c-format
4105 + msgid "'%s' cannot take <start-point>"
4106 + msgstr "'%s' kan nie 'n <begin-punt> neem nie"
4107 +
4108 + #, c-format
4109 + msgid "Cannot switch branch to a non-commit '%s'"
4110 + msgstr "Kan nie tak wissel na 'n nie-vaslegging '%s' nie"
4111 +
4112 + msgid "missing branch or commit argument"
4113 + msgstr "tak of vaslegging-argument ontbreek"
4114 +
4115 + #, c-format
4116 + msgid "unknown conflict style '%s'"
4117 + msgstr "onbekende konflikstyl '%s'"
4118 +
4119 + msgid "perform a 3-way merge with the new branch"
4120 + msgstr "voer 'n 3-rigting-saamsmelting met die nuwe tak uit"
4121 +
4122 + msgid "style"
4123 + msgstr "styl"
4124 +
4125 + msgid "conflict style (merge, diff3, or zdiff3)"
4126 + msgstr "konflikstyl (merge, diff3, of zdiff3)"
4127 +
4128 + msgid "detach HEAD at named commit"
4129 + msgstr "ontkoppel HEAD by benoemde vaslegging"
4130 +
4131 + msgid "force checkout (throw away local modifications)"
4132 + msgstr "dwing uitcheck af (gooi plaaslike wysigings weg)"
4133 +
4134 + msgid "new-branch"
4135 + msgstr "nuwe-tak"
4136 +
4137 + msgid "new unborn branch"
4138 + msgstr "nuwe ongebore tak"
4139 +
4140 + msgid "update ignored files (default)"
4141 + msgstr "dateer geïgnoreerde lêers op (verstek)"
4142 +
4143 + msgid "do not check if another worktree is using this branch"
4144 + msgstr "moenie nagaan of 'n ander werkboom hierdie tak gebruik nie"
4145 +
4146 + msgid "checkout our version for unmerged files"
4147 + msgstr "check ons weergawe uit vir lêers wat nie saamgesmelt is nie"
4148 +
4149 + msgid "checkout their version for unmerged files"
4150 + msgstr "check hulle weergawe uit vir lêers wat nie saamgesmelt is nie"
4151 +
4152 + msgid "do not limit pathspecs to sparse entries only"
4153 + msgstr "moenie padspesifikasies tot slegs yl inskrywings beperk nie"
4154 +
4155 + msgid "git checkout [<options>] <branch>"
4156 + msgstr "git checkout [<opsies>] <tak>"
4157 +
4158 + msgid "git checkout [<options>] [<branch>] -- <file>..."
4159 + msgstr "git checkout [<opsies>] [<tak>] -- <lêer>..."
4160 +
4161 + msgid "git switch [<options>] [<branch>]"
4162 + msgstr "git switch [<opsies>] [<tak>]"
4163 +
4164 + msgid "git restore [<options>] [--source=<branch>] <file>..."
4165 + msgstr "git restore [<opsies>] [--source=<tak>] <lêer>..."
4166 +
4167 + #, c-format
4168 + msgid "options '-%c', '-%c', and '%s' cannot be used together"
4169 + msgstr "opsies '-%c', '-%c' en '%s' kan nie saam gebruik word nie"
4170 +
4171 + msgid "--track needs a branch name"
4172 + msgstr "--track benodig 'n taknaam"
4173 +
4174 + #, c-format
4175 + msgid "missing branch name; try -%c"
4176 + msgstr "taknaam ontbreek; probeer -%c"
4177 +
4178 + #, c-format
4179 + msgid "could not resolve '%s'"
4180 + msgstr "kon '%s' nie oplos nie"
4181 +
4182 + msgid "invalid path specification"
4183 + msgstr "ongeldige padspesifikasie"
4184 +
4185 + #, c-format
4186 + msgid "'%s' is not a commit and a branch '%s' cannot be created from it"
4187 + msgstr ""
4188 + "'%s' is nie 'n vaslegging nie en 'n tak '%s' kan nie daaruit geskep word nie"
4189 +
4190 + #, c-format
4191 + msgid "git checkout: --detach does not take a path argument '%s'"
4192 + msgstr "git checkout: --detach aanvaar nie 'n padargument '%s' nie"
4193 +
4194 + msgid ""
4195 + "git checkout: --ours/--theirs, --force and --merge are incompatible when\n"
4196 + "checking out of the index."
4197 + msgstr ""
4198 + "git checkout: --ours/--theirs, --force en --merge is onversoenbaar wanneer\n"
4199 + "daar uit die indeks uitgecheck word."
4200 +
4201 + msgid "you must specify path(s) to restore"
4202 + msgstr "jy moet pad(de) spesifiseer om te herstel"
4203 +
4204 + msgid "create and checkout a new branch"
4205 + msgstr "skep en check 'n nuwe tak uit"
4206 +
4207 + msgid "create/reset and checkout a branch"
4208 + msgstr "skep/stel terug en check 'n tak uit"
4209 +
4210 + msgid "create reflog for new branch"
4211 + msgstr "skep reflog vir nuwe tak"
4212 +
4213 + msgid "second guess 'git checkout <no-such-branch>' (default)"
4214 + msgstr "tweede raaiskoot 'git checkout <geen-sulke-tak>' (verstek)"
4215 +
4216 + msgid "use overlay mode (default)"
4217 + msgstr "gebruik oorlegmodus (verstek)"
4218 +
4219 + msgid "create and switch to a new branch"
4220 + msgstr "skep en wissel na 'n nuwe tak"
4221 +
4222 + msgid "create/reset and switch to a branch"
4223 + msgstr "skep/stel terug en wissel na 'n tak"
4224 +
4225 + msgid "second guess 'git switch <no-such-branch>'"
4226 + msgstr "tweede raaiskoot 'git switch <geen-sulke-tak>'"
4227 +
4228 + msgid "throw away local modifications"
4229 + msgstr "gooi plaaslike wysigings weg"
4230 +
4231 + msgid "which tree-ish to checkout from"
4232 + msgstr "watter boomagtige om vanaf uit te check"
4233 +
4234 + msgid "restore the index"
4235 + msgstr "herstel die indeks"
4236 +
4237 + msgid "restore the working tree (default)"
4238 + msgstr "herstel die werkboom (verstek)"
4239 +
4240 + msgid "ignore unmerged entries"
4241 + msgstr "ignoreer inskrywings wat nie saamgesmelt is nie"
4242 +
4243 + msgid "use overlay mode"
4244 + msgstr "gebruik oorlegmodus"
4245 +
4246 + msgid ""
4247 + "git clean [-d] [-f] [-i] [-n] [-q] [-e <pattern>] [-x | -X] [--] "
4248 + "[<pathspec>...]"
4249 + msgstr ""
4250 + "git clean [-d] [-f] [-i] [-n] [-q] [-e <patroon>] [-x | -X] [--] "
4251 + "[<padspesifikasie>...]"
4252 +
4253 + #, c-format
4254 + msgid "Removing %s\n"
4255 + msgstr "Verwyder %s\n"
4256 +
4257 + #, c-format
4258 + msgid "Would remove %s\n"
4259 + msgstr "Sou %s verwyder\n"
4260 +
4261 + #, c-format
4262 + msgid "Skipping repository %s\n"
4263 + msgstr "Slaan bewaarplek %s oor\n"
4264 +
4265 + #, c-format
4266 + msgid "Would skip repository %s\n"
4267 + msgstr "Sou bewaarplek %s oorslaan\n"
4268 +
4269 + #, c-format
4270 + msgid "failed to remove %s"
4271 + msgstr "kon nie %s verwyder nie"
4272 +
4273 + #, c-format
4274 + msgid "could not lstat %s\n"
4275 + msgstr "kon nie lstat op %s uitvoer nie\n"
4276 +
4277 + msgid "Refusing to remove current working directory\n"
4278 + msgstr "Weier om huidige werkgids te verwyder\n"
4279 +
4280 + msgid "Would refuse to remove current working directory\n"
4281 + msgstr "Sou weier om huidige werkgids te verwyder\n"
4282 +
4283 + #, c-format
4284 + msgid ""
4285 + "Prompt help:\n"
4286 + "1 - select a numbered item\n"
4287 + "foo - select item based on unique prefix\n"
4288 + " - (empty) select nothing\n"
4289 + msgstr ""
4290 + "Hulp by opdragprompt:\n"
4291 + "1 - kies 'n genommerde item\n"
4292 + "foo - kies item op grond van unieke voorvoegsel\n"
4293 + " - (leeg) kies niks\n"
4294 +
4295 + #, c-format
4296 + msgid ""
4297 + "Prompt help:\n"
4298 + "1 - select a single item\n"
4299 + "3-5 - select a range of items\n"
4300 + "2-3,6-9 - select multiple ranges\n"
4301 + "foo - select item based on unique prefix\n"
4302 + "-... - unselect specified items\n"
4303 + "* - choose all items\n"
4304 + " - (empty) finish selecting\n"
4305 + msgstr ""
4306 + "Hulp by opdragprompt:\n"
4307 + "1 - kies 'n enkele item\n"
4308 + "3-5 - kies 'n reeks items\n"
4309 + "2-3,6-9 - kies veelvuldige reekse\n"
4310 + "foo - kies item op grond van unieke voorvoegsel\n"
4311 + "-... - ontkies gespesifiseerde items\n"
4312 + "* - kies alle items\n"
4313 + " - (leeg) voltooi keuse\n"
4314 +
4315 + #, c-format
4316 + msgid "Huh (%s)?\n"
4317 + msgstr "Hè (%s)?\n"
4318 +
4319 + #, c-format
4320 + msgid "Input ignore patterns>> "
4321 + msgstr "Voer ignoreerpatrone in>> "
4322 +
4323 + #, c-format
4324 + msgid "WARNING: Cannot find items matched by: %s"
4325 + msgstr "WAARSKUWING: Kan nie items vind wat hiermee ooreenstem nie: %s"
4326 +
4327 + msgid "Select items to delete"
4328 + msgstr "Kies items om uit te vee"
4329 +
4330 + #. TRANSLATORS: Make sure to keep [y/N] as is
4331 + #, c-format
4332 + msgid "Remove %s [y/N]? "
4333 + msgstr "Verwyder %s [y/N]? "
4334 +
4335 + msgid ""
4336 + "clean - start cleaning\n"
4337 + "filter by pattern - exclude items from deletion\n"
4338 + "select by numbers - select items to be deleted by numbers\n"
4339 + "ask each - confirm each deletion (like \"rm -i\")\n"
4340 + "quit - stop cleaning\n"
4341 + "help - this screen\n"
4342 + "? - help for prompt selection"
4343 + msgstr ""
4344 + "clean - begin skoonmaak\n"
4345 + "filter by pattern - sluit items van uitvee uit\n"
4346 + "select by numbers - kies items om uit te vee volgens nommers\n"
4347 + "ask each - bevestig elke uitvee (soos \"rm -i\")\n"
4348 + "quit - stop skoonmaak\n"
4349 + "help - hierdie skerm\n"
4350 + "? - hulp vir promptkeuse"
4351 +
4352 + msgid "Would remove the following item:"
4353 + msgid_plural "Would remove the following items:"
4354 + msgstr[0] "Sou die volgende item verwyder:"
4355 + msgstr[1] "Sou die volgende items verwyder:"
4356 +
4357 + msgid "No more files to clean, exiting."
4358 + msgstr "Geen verdere lêers om skoon te maak nie, verlaat."
4359 +
4360 + msgid "do not print names of files removed"
4361 + msgstr "moenie name van verwyderde lêers druk nie"
4362 +
4363 + msgid "force"
4364 + msgstr "dwing"
4365 +
4366 + msgid "interactive cleaning"
4367 + msgstr "interaktiewe skoonmaak"
4368 +
4369 + msgid "remove whole directories"
4370 + msgstr "verwyder hele gidse"
4371 +
4372 + msgid "add <pattern> to ignore rules"
4373 + msgstr "voeg <patroon> by ignoreerreëls"
4374 +
4375 + msgid "remove ignored files, too"
4376 + msgstr "verwyder ook geïgnoreerde lêers"
4377 +
4378 + msgid "remove only ignored files"
4379 + msgstr "verwyder slegs geïgnoreerde lêers"
4380 +
4381 + msgid "clean.requireForce is true and -f not given: refusing to clean"
4382 + msgstr ""
4383 + "clean.requireForce is true en -f is nie gegee nie: weier om skoon te maak"
4384 +
4385 + #, c-format
4386 + msgid "info: Could not add alternate for '%s': %s\n"
4387 + msgstr "inligting: Kon nie alternatief vir '%s' byvoeg nie: %s\n"
4388 +
4389 + #, c-format
4390 + msgid "failed to stat '%s'"
4391 + msgstr "kon nie stat op '%s' uitvoer nie"
4392 +
4393 + #, c-format
4394 + msgid "%s exists and is not a directory"
4395 + msgstr "%s bestaan en is nie 'n gids nie"
4396 +
4397 + #, c-format
4398 + msgid "'%s' is a symlink, refusing to clone with --local"
4399 + msgstr "'%s' is 'n simskakel, weier om met --local te kloon"
4400 +
4401 + #, c-format
4402 + msgid "failed to start iterator over '%s'"
4403 + msgstr "kon nie iterator oor '%s' begin nie"
4404 +
4405 + #, c-format
4406 + msgid "symlink '%s' exists, refusing to clone with --local"
4407 + msgstr "simskakel '%s' bestaan, weier om met --local te kloon"
4408 +
4409 + #, c-format
4410 + msgid "failed to unlink '%s'"
4411 + msgstr "kon nie '%s' ontkoppel nie"
4412 +
4413 + #, c-format
4414 + msgid "hardlink cannot be checked at '%s'"
4415 + msgstr "hardeskakel kan nie by '%s' nagegaan word nie"
4416 +
4417 + #, c-format
4418 + msgid "hardlink different from source at '%s'"
4419 + msgstr "hardeskakel verskil van die bron by '%s'"
4420 +
4421 + #, c-format
4422 + msgid "failed to create link '%s'"
4423 + msgstr "kon nie skakel '%s' skep nie"
4424 +
4425 + #, c-format
4426 + msgid "failed to copy file to '%s'"
4427 + msgstr "kon nie lêer na '%s' kopieer nie"
4428 +
4429 + #, c-format
4430 + msgid "failed to iterate over '%s'"
4431 + msgstr "kon nie oor '%s' itereer nie"
4432 +
4433 + #, c-format
4434 + msgid "done.\n"
4435 + msgstr "klaar.\n"
4436 +
4437 + msgid ""
4438 + "Clone succeeded, but checkout failed.\n"
4439 + "You can inspect what was checked out with 'git status'\n"
4440 + "and retry with 'git restore --source=HEAD :/'\n"
4441 + msgstr ""
4442 + "Kloon het geslaag, maar uitcheck het misluk.\n"
4443 + "Jy kan inspekteer wat uitgecheck is met 'git status'\n"
4444 + "en weer probeer met 'git restore --source=HEAD :/'\n"
4445 +
4446 + msgid "remote did not send all necessary objects"
4447 + msgstr "afgeleë het nie al die nodige objekte gestuur nie"
4448 +
4449 + #, c-format
4450 + msgid "unable to update %s"
4451 + msgstr "kan nie %s opdateer nie"
4452 +
4453 + msgid "failed to initialize sparse-checkout"
4454 + msgstr "kon nie yl-uitcheck inisialiseer nie"
4455 +
4456 + msgid "remote HEAD refers to nonexistent ref, unable to checkout"
4457 + msgstr ""
4458 + "afgeleë HEAD verwys na 'n nie-bestaande verwysing, kan nie uitcheck nie"
4459 +
4460 + msgid "unable to checkout working tree"
4461 + msgstr "kan nie werkboom uitcheck nie"
4462 +
4463 + msgid "unable to write parameters to config file"
4464 + msgstr "kan nie parameters na konfigurasielêer skryf nie"
4465 +
4466 + msgid "cannot repack to clean up"
4467 + msgstr "kan nie herpak om op te ruim nie"
4468 +
4469 + msgid "cannot unlink temporary alternates file"
4470 + msgstr "kan nie tydelike alternatiewe-lêer ontkoppel nie"
4471 +
4472 + msgid "don't clone shallow repository"
4473 + msgstr "moenie 'n vlak bewaarplek kloon nie"
4474 +
4475 + msgid "don't create a checkout"
4476 + msgstr "moenie 'n uitcheck skep nie"
4477 +
4478 + msgid "create a bare repository"
4479 + msgstr "skep 'n kaal bewaarplek"
4480 +
4481 + msgid "create a mirror repository (implies --bare)"
4482 + msgstr "skep 'n spieël-bewaarplek (impliseer --bare)"
4483 +
4484 + msgid "to clone from a local repository"
4485 + msgstr "om vanaf 'n plaaslike bewaarplek te kloon"
4486 +
4487 + msgid "don't use local hardlinks, always copy"
4488 + msgstr "moenie plaaslike hardeskakels gebruik nie, kopieer altyd"
4489 +
4490 + msgid "setup as shared repository"
4491 + msgstr "stel op as gedeelde bewaarplek"
4492 +
4493 + msgid "pathspec"
4494 + msgstr "padspesifikasie"
4495 +
4496 + msgid "initialize submodules in the clone"
4497 + msgstr "inisialiseer submodules in die kloon"
4498 +
4499 + msgid "number of submodules cloned in parallel"
4500 + msgstr "aantal submodules wat parallel gekloon word"
4501 +
4502 + msgid "template-directory"
4503 + msgstr "sjabloon-gids"
4504 +
4505 + msgid "directory from which templates will be used"
4506 + msgstr "gids waarvandaan sjablone gebruik sal word"
4507 +
4508 + msgid "reference repository"
4509 + msgstr "verwysingsbewaarplek"
4510 +
4511 + msgid "use --reference only while cloning"
4512 + msgstr "gebruik --reference slegs tydens kloning"
4513 +
4514 + msgid "name"
4515 + msgstr "naam"
4516 +
4517 + msgid "use <name> instead of 'origin' to track upstream"
4518 + msgstr "gebruik <naam> in plaas van 'origin' om stroomop te volg"
4519 +
4520 + msgid "checkout <branch> instead of the remote's HEAD"
4521 + msgstr "check <tak> uit in plaas van die afgeleë HEAD"
4522 +
4523 + msgid "clone single revision <rev> and check out"
4524 + msgstr "kloon enkele hersiening <hersiening> en check uit"
4525 +
4526 + msgid "path to git-upload-pack on the remote"
4527 + msgstr "pad na git-upload-pack op die afgeleë"
4528 +
4529 + msgid "depth"
4530 + msgstr "diepte"
4531 +
4532 + msgid "create a shallow clone of that depth"
4533 + msgstr "skep 'n vlak kloon van daardie diepte"
4534 +
4535 + msgid "create a shallow clone since a specific time"
4536 + msgstr "skep 'n vlak kloon sedert 'n bepaalde tyd"
4537 +
4538 + msgid "ref"
4539 + msgstr "verwysing"
4540 +
4541 + msgid "deepen history of shallow clone, excluding ref"
4542 + msgstr "verdiep geskiedenis van vlak kloon, sluit verwysing uit"
4543 +
4544 + msgid "clone only one branch, HEAD or --branch"
4545 + msgstr "kloon slegs een tak, HEAD of --branch"
4546 +
4547 + msgid "clone tags, and make later fetches not to follow them"
4548 + msgstr "kloon etikette, en laat latere hale hulle nie volg nie"
4549 +
4550 + msgid "any cloned submodules will be shallow"
4551 + msgstr "enige gekloonde submodules sal vlak wees"
4552 +
4553 + msgid "gitdir"
4554 + msgstr "gitgids"
4555 +
4556 + msgid "separate git dir from working tree"
4557 + msgstr "skei Git-gids van werkboom"
4558 +
4559 + msgid "specify the reference format to use"
4560 + msgstr "spesifiseer die verwysingsformaat om te gebruik"
4561 +
4562 + msgid "key=value"
4563 + msgstr "sleutel=waarde"
4564 +
4565 + msgid "set config inside the new repository"
4566 + msgstr "stel konfigurasie binne die nuwe bewaarplek"
4567 +
4568 + msgid "server-specific"
4569 + msgstr "bediener-spesifiek"
4570 +
4571 + msgid "option to transmit"
4572 + msgstr "opsie om oor te dra"
4573 +
4574 + msgid "apply partial clone filters to submodules"
4575 + msgstr "pas gedeeltelike-kloonfilters op submodules toe"
4576 +
4577 + msgid "any cloned submodules will use their remote-tracking branch"
4578 + msgstr "enige gekloonde submodules sal hulle afgeleë volgtak gebruik"
4579 +
4580 + msgid "initialize sparse-checkout file to include only files at root"
4581 + msgstr "inisialiseer yl-uitcheck-lêer om slegs lêers by die wortel in te sluit"
4582 +
4583 + msgid "uri"
4584 + msgstr "uri"
4585 +
4586 + msgid "a URI for downloading bundles before fetching from origin remote"
4587 + msgstr ""
4588 + "'n URI om bondels af te laai voordat daar vanaf die origin-afgeleë gehaal "
4589 + "word"
4590 +
4591 + msgid "git clone [<options>] [--] <repo> [<dir>]"
4592 + msgstr "git clone [<opsies>] [--] <bewaarplek> [<gids>]"
4593 +
4594 + msgid "Too many arguments."
4595 + msgstr "Te veel argumente."
4596 +
4597 + msgid "You must specify a repository to clone."
4598 + msgstr "Jy moet 'n bewaarplek spesifiseer om te kloon."
4599 +
4600 + #, c-format
4601 + msgid "unknown ref storage format '%s'"
4602 + msgstr "onbekende verwysingstoorformaat '%s'"
4603 +
4604 + #, c-format
4605 + msgid "repository '%s' does not exist"
4606 + msgstr "bewaarplek '%s' bestaan nie"
4607 +
4608 + #, c-format
4609 + msgid "depth %s is not a positive number"
4610 + msgstr "diepte %s is nie 'n positiewe getal nie"
4611 +
4612 + #, c-format
4613 + msgid "destination path '%s' already exists and is not an empty directory."
4614 + msgstr "bestemmingspad '%s' bestaan reeds en is nie 'n leë gids nie."
4615 +
4616 + #, c-format
4617 + msgid "repository path '%s' already exists and is not an empty directory."
4618 + msgstr "bewaarplekpad '%s' bestaan reeds en is nie 'n leë gids nie."
4619 +
4620 + #, c-format
4621 + msgid "working tree '%s' already exists."
4622 + msgstr "werkboom '%s' bestaan reeds."
4623 +
4624 + #, c-format
4625 + msgid "could not create leading directories of '%s'"
4626 + msgstr "kon nie voorafgaande gidse van '%s' skep nie"
4627 +
4628 + #, c-format
4629 + msgid "could not create work tree dir '%s'"
4630 + msgstr "kon nie werkboomgids '%s' skep nie"
4631 +
4632 + #, c-format
4633 + msgid "Cloning into bare repository '%s'...\n"
4634 + msgstr "Kloon tans in kaal bewaarplek '%s'...\n"
4635 +
4636 + #, c-format
4637 + msgid "Cloning into '%s'...\n"
4638 + msgstr "Kloon tans in '%s'...\n"
4639 +
4640 + msgid ""
4641 + "clone --recursive is not compatible with both --reference and --reference-if-"
4642 + "able"
4643 + msgstr ""
4644 + "clone --recursive is nie versoenbaar met beide --reference en --reference-if-"
4645 + "able nie"
4646 +
4647 + #, c-format
4648 + msgid "'%s' is not a valid remote name"
4649 + msgstr "'%s' is nie 'n geldige afgeleë naam nie"
4650 +
4651 + msgid "--depth is ignored in local clones; use file:// instead."
4652 + msgstr "--depth word in plaaslike klone geïgnoreer; gebruik liewer file://."
4653 +
4654 + msgid "--shallow-since is ignored in local clones; use file:// instead."
4655 + msgstr ""
4656 + "--shallow-since word in plaaslike klone geïgnoreer; gebruik liewer file://."
4657 +
4658 + msgid "--shallow-exclude is ignored in local clones; use file:// instead."
4659 + msgstr ""
4660 + "--shallow-exclude word in plaaslike klone geïgnoreer; gebruik liewer file://."
4661 +
4662 + msgid "--filter is ignored in local clones; use file:// instead."
4663 + msgstr "--filter word in plaaslike klone geïgnoreer; gebruik liewer file://."
4664 +
4665 + msgid "source repository is shallow, reject to clone."
4666 + msgstr "bronbewaarplek is vlak, weier om te kloon."
4667 +
4668 + msgid "source repository is shallow, ignoring --local"
4669 + msgstr "bronbewaarplek is vlak, ignoreer --local"
4670 +
4671 + msgid "--local is ignored"
4672 + msgstr "--local word geïgnoreer"
4673 +
4674 + msgid "cannot clone from filtered bundle"
4675 + msgstr "kan nie vanaf 'n gefilterde bondel kloon nie"
4676 +
4677 + msgid "failed to initialize the repo, skipping bundle URI"
4678 + msgstr "kon nie die bewaarplek inisialiseer nie, slaan bondel-URI oor"
4679 +
4680 + #, c-format
4681 + msgid "failed to fetch objects from bundle URI '%s'"
4682 + msgstr "kon nie objekte vanaf bondel-URI '%s' haal nie"
4683 +
4684 + msgid "failed to fetch advertised bundles"
4685 + msgstr "kon nie geadverteerde bondels haal nie"
4686 +
4687 + msgid "remote transport reported error"
4688 + msgstr "afgeleë vervoer het 'n fout gerapporteer"
4689 +
4690 + #, c-format
4691 + msgid "Remote branch %s not found in upstream %s"
4692 + msgstr "Afgeleë tak %s nie in stroomop %s gevind nie"
4693 +
4694 + #, c-format
4695 + msgid "Remote revision %s not found in upstream %s"
4696 + msgstr "Afgeleë hersiening %s nie in stroomop %s gevind nie"
4697 +
4698 + msgid "You appear to have cloned an empty repository."
4699 + msgstr "Dit lyk of jy 'n leë bewaarplek gekloon het."
4700 +
4701 + msgid "git column [<options>]"
4702 + msgstr "git column [<opsies>]"
4703 +
4704 + msgid "lookup config vars"
4705 + msgstr "soek konfigurasieveranderlikes op"
4706 +
4707 + msgid "layout to use"
4708 + msgstr "uitleg om te gebruik"
4709 +
4710 + msgid "maximum width"
4711 + msgstr "maksimum wydte"
4712 +
4713 + msgid "padding space on left border"
4714 + msgstr "opvulspasie by linkerrand"
4715 +
4716 + msgid "padding space on right border"
4717 + msgstr "opvulspasie by regterrand"
4718 +
4719 + msgid "padding space between columns"
4720 + msgstr "opvulspasie tussen kolomme"
4721 +
4722 + #, c-format
4723 + msgid "%s must be non-negative"
4724 + msgstr "%s moet nie-negatief wees"
4725 +
4726 + msgid "--command must be the first argument"
4727 + msgstr "--command moet die eerste argument wees"
4728 +
4729 + msgid ""
4730 + "git commit-graph verify [--object-dir <dir>] [--shallow] [--[no-]progress]"
4731 + msgstr ""
4732 + "git commit-graph verify [--object-dir <gids>] [--shallow] [--[no-]progress]"
4733 +
4734 + msgid ""
4735 + "git commit-graph write [--object-dir <dir>] [--append]\n"
4736 + " [--split[=<strategy>]] [--reachable | --stdin-packs | "
4737 + "--stdin-commits]\n"
4738 + " [--changed-paths] [--[no-]max-new-filters <n>] [--"
4739 + "[no-]progress]\n"
4740 + " <split-options>"
4741 + msgstr ""
4742 + "git commit-graph write [--object-dir <gids>] [--append]\n"
4743 + " [--split[=<strategie>]] [--reachable | --stdin-packs "
4744 + "| --stdin-commits]\n"
4745 + " [--changed-paths] [--[no-]max-new-filters <n>] [--"
4746 + "[no-]progress]\n"
4747 + " <verdeel-opsies>"
4748 +
4749 + msgid "dir"
4750 + msgstr "gids"
4751 +
4752 + msgid "the object directory to store the graph"
4753 + msgstr "die objekgids om die grafiek te stoor"
4754 +
4755 + msgid "if the commit-graph is split, only verify the tip file"
4756 + msgstr "indien die commit-graph verdeel is, verifieer slegs die puntlêer"
4757 +
4758 + #, c-format
4759 + msgid "Could not open commit-graph '%s'"
4760 + msgstr "Kon nie commit-graph '%s' oopmaak nie"
4761 +
4762 + #, c-format
4763 + msgid "could not open commit-graph chain '%s'"
4764 + msgstr "kon nie commit-graph-ketting '%s' oopmaak nie"
4765 +
4766 + #, c-format
4767 + msgid "unrecognized --split argument, %s"
4768 + msgstr "onherkende argument --split, %s"
4769 +
4770 + #, c-format
4771 + msgid "unexpected non-hex object ID: %s"
4772 + msgstr "onverwagte nie-heksadesimale objek-ID: %s"
4773 +
4774 + #, c-format
4775 + msgid "invalid object: %s"
4776 + msgstr "ongeldige objek: %s"
4777 +
4778 + #, c-format
4779 + msgid "option `%s' expects a numerical value"
4780 + msgstr "opsie `%s' verwag 'n numeriese waarde"
4781 +
4782 + msgid "start walk at all refs"
4783 + msgstr "begin deurloop by alle verwysings"
4784 +
4785 + msgid "scan pack-indexes listed by stdin for commits"
4786 + msgstr "deursoek pakindekse wat deur stdin gelys word vir vasleggings"
4787 +
4788 + msgid "start walk at commits listed by stdin"
4789 + msgstr "begin deurloop by vasleggings wat deur stdin gelys word"
4790 +
4791 + msgid "include all commits already in the commit-graph file"
4792 + msgstr "sluit alle vasleggings in wat reeds in die commit-graph-lêer is"
4793 +
4794 + msgid "enable computation for changed paths"
4795 + msgstr "aktiveer berekening vir veranderde paaie"
4796 +
4797 + msgid "allow writing an incremental commit-graph file"
4798 + msgstr "laat die skryf van 'n inkrementele commit-graph-lêer toe"
4799 +
4800 + msgid "maximum number of commits in a non-base split commit-graph"
4801 + msgstr "maksimum aantal vasleggings in 'n verdeelde nie-basis-commit-graph"
4802 +
4803 + msgid "maximum ratio between two levels of a split commit-graph"
4804 + msgstr "maksimum verhouding tussen twee vlakke van 'n verdeelde commit-graph"
4805 +
4806 + msgid "only expire files older than a given date-time"
4807 + msgstr "laat slegs lêers verval wat ouer as 'n gegewe datum-tyd is"
4808 +
4809 + msgid "maximum number of changed-path Bloom filters to compute"
4810 + msgstr "maksimum aantal veranderde-pad-Bloom-filters om te bereken"
4811 +
4812 + msgid "use at most one of --reachable, --stdin-commits, or --stdin-packs"
4813 + msgstr ""
4814 + "gebruik hoogstens een van --reachable, --stdin-commits of --stdin-packs"
4815 +
4816 + msgid "Collecting commits from input"
4817 + msgstr "Versamel vasleggings uit invoer"
4818 +
4819 + msgid "git commit-tree <tree> [(-p <parent>)...]"
4820 + msgstr "git commit-tree <boom> [(-p <ouer>)...]"
4821 +
4822 + msgid ""
4823 + "git commit-tree [(-p <parent>)...] [-S[<keyid>]] [(-m <message>)...]\n"
4824 + " [(-F <file>)...] <tree>"
4825 + msgstr ""
4826 + "git commit-tree [(-p <ouer>)...] [-S[<sleutel-id>]] [(-m <boodskap>)...]\n"
4827 + " [(-F <lêer>)...] <boom>"
4828 +
4829 + #, c-format
4830 + msgid "duplicate parent %s ignored"
4831 + msgstr "duplikaat-ouer %s geïgnoreer"
4832 +
4833 + #, c-format
4834 + msgid "not a valid object name %s"
4835 + msgstr "nie 'n geldige objeknaam %s nie"
4836 +
4837 + #, c-format
4838 + msgid "git commit-tree: failed to read '%s'"
4839 + msgstr "git commit-tree: kon nie '%s' lees nie"
4840 +
4841 + #, c-format
4842 + msgid "git commit-tree: failed to close '%s'"
4843 + msgstr "git commit-tree: kon nie '%s' sluit nie"
4844 +
4845 + msgid "parent"
4846 + msgstr "ouer"
4847 +
4848 + msgid "id of a parent commit object"
4849 + msgstr "id van 'n ouer-vasleggingsobjek"
4850 +
4851 + msgid "message"
4852 + msgstr "boodskap"
4853 +
4854 + msgid "commit message"
4855 + msgstr "vasleggingsboodskap"
4856 +
4857 + msgid "read commit log message from file"
4858 + msgstr "lees vasleggingslogboodskap vanaf lêer"
4859 +
4860 + msgid "GPG sign commit"
4861 + msgstr "onderteken vaslegging met GPG"
4862 +
4863 + msgid "must give exactly one tree"
4864 + msgstr "moet presies een boom gee"
4865 +
4866 + msgid "git commit-tree: failed to read"
4867 + msgstr "git commit-tree: kon nie lees nie"
4868 +
4869 + msgid ""
4870 + "git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]\n"
4871 + " [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|"
4872 + "reword):]<commit>]\n"
4873 + " [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
4874 + " [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"
4875 + " [--date=<date>] [--cleanup=<mode>] [--[no-]status]\n"
4876 + " [-i | -o] [--pathspec-from-file=<file> [--pathspec-file-nul]]\n"
4877 + " [(--trailer <token>[(=|:)<value>])...] [-S[<keyid>]]\n"
4878 + " [--] [<pathspec>...]"
4879 + msgstr ""
4880 + "git commit [-a | --interactive | --patch] [-s] [-v] [-u[<modus>]] [--amend]\n"
4881 + " [--dry-run] [(-c | -C | --squash) <vaslegging> | --fixup [(amend|"
4882 + "reword):]<vaslegging>]\n"
4883 + " [-F <lêer> | -m <boodskap>] [--reset-author] [--allow-empty]\n"
4884 + " [--allow-empty-message] [--no-verify] [-e] [--author=<outeur>]\n"
4885 + " [--date=<datum>] [--cleanup=<modus>] [--[no-]status]\n"
4886 + " [-i | -o] [--pathspec-from-file=<lêer> [--pathspec-file-nul]]\n"
4887 + " [(--trailer <teken>[(=|:)<waarde>])...] [-S[<sleutel-id>]]\n"
4888 + " [--] [<padspesifikasie>...]"
4889 +
4890 + msgid "git status [<options>] [--] [<pathspec>...]"
4891 + msgstr "git status [<opsies>] [--] [<padspesifikasie>...]"
4892 +
4893 + msgid ""
4894 + "You asked to amend the most recent commit, but doing so would make\n"
4895 + "it empty. You can repeat your command with --allow-empty, or you can\n"
4896 + "remove the commit entirely with \"git reset HEAD^\".\n"
4897 + msgstr ""
4898 + "Jy het gevra om die mees onlangse vaslegging te wysig, maar dit sou dit\n"
4899 + "leeg maak. Jy kan jou opdrag herhaal met --allow-empty, of jy kan die\n"
4900 + "vaslegging heeltemal verwyder met \"git reset HEAD^\".\n"
4901 +
4902 + msgid ""
4903 + "The previous cherry-pick is now empty, possibly due to conflict resolution.\n"
4904 + "If you wish to commit it anyway, use:\n"
4905 + "\n"
4906 + " git commit --allow-empty\n"
4907 + "\n"
4908 + msgstr ""
4909 + "Die vorige kersiepluk is nou leeg, moontlik weens konflikoplossing.\n"
4910 + "As jy dit in elk geval wil vaslê, gebruik:\n"
4911 + "\n"
4912 + " git commit --allow-empty\n"
4913 + "\n"
4914 +
4915 + msgid "Otherwise, please use 'git rebase --skip'\n"
4916 + msgstr "Gebruik andersins asseblief 'git rebase --skip'\n"
4917 +
4918 + msgid "Otherwise, please use 'git cherry-pick --skip'\n"
4919 + msgstr "Gebruik andersins asseblief 'git cherry-pick --skip'\n"
4920 +
4921 + msgid ""
4922 + "and then use:\n"
4923 + "\n"
4924 + " git cherry-pick --continue\n"
4925 + "\n"
4926 + "to resume cherry-picking the remaining commits.\n"
4927 + "If you wish to skip this commit, use:\n"
4928 + "\n"
4929 + " git cherry-pick --skip\n"
4930 + "\n"
4931 + msgstr ""
4932 + "en gebruik dan:\n"
4933 + "\n"
4934 + " git cherry-pick --continue\n"
4935 + "\n"
4936 + "om voort te gaan met die kersiepluk van die oorblywende vasleggings.\n"
4937 + "As jy hierdie vaslegging wil oorslaan, gebruik:\n"
4938 + "\n"
4939 + " git cherry-pick --skip\n"
4940 + "\n"
4941 +
4942 + msgid "updating files failed"
4943 + msgstr "bywerk van lêers het misluk"
4944 +
4945 + msgid "failed to unpack HEAD tree object"
4946 + msgstr "kon nie HEAD-boomobjek uitpak nie"
4947 +
4948 + msgid "No paths with --include/--only does not make sense."
4949 + msgstr "Geen paaie met --include/--only maak nie sin nie."
4950 +
4951 + msgid "unable to create temporary index"
4952 + msgstr "kan nie tydelike indeks skep nie"
4953 +
4954 + msgid "interactive add failed"
4955 + msgstr "interaktiewe byvoeging het misluk"
4956 +
4957 + msgid "unable to update temporary index"
4958 + msgstr "kan nie tydelike indeks bywerk nie"
4959 +
4960 + msgid "Failed to update main cache tree"
4961 + msgstr "Kon nie hoofkasboom bywerk nie"
4962 +
4963 + msgid "cannot do a partial commit during a merge."
4964 + msgstr "kan nie 'n gedeeltelike vaslegging tydens 'n saamsmelting doen nie."
4965 +
4966 + msgid "cannot do a partial commit during a cherry-pick."
4967 + msgstr "kan nie 'n gedeeltelike vaslegging tydens 'n kersiepluk doen nie."
4968 +
4969 + msgid "cannot do a partial commit during a rebase."
4970 + msgstr "kan nie 'n gedeeltelike vaslegging tydens 'n herbasering doen nie."
4971 +
4972 + msgid "cannot read the index"
4973 + msgstr "kan nie die indeks lees nie"
4974 +
4975 + msgid "unable to write temporary index file"
4976 + msgstr "kan nie tydelike indekslêer skryf nie"
4977 +
4978 + #, c-format
4979 + msgid "commit '%s' lacks author header"
4980 + msgstr "vaslegging '%s' het nie 'n outeurkop nie"
4981 +
4982 + #, c-format
4983 + msgid "commit '%s' has malformed author line"
4984 + msgstr "vaslegging '%s' het 'n misvormde outeurreël"
4985 +
4986 + msgid "malformed --author parameter"
4987 + msgstr "misvormde parameter --author"
4988 +
4989 + #, c-format
4990 + msgid "invalid date format: %s"
4991 + msgstr "ongeldige datumformaat: %s"
4992 +
4993 + msgid ""
4994 + "unable to select a comment character that is not used\n"
4995 + "in the current commit message"
4996 + msgstr ""
4997 + "kan nie 'n kommentaarkarakter kies wat nie in die huidige\n"
4998 + "vasleggingsboodskap gebruik word nie"
4999 +
5000 + #, c-format
5001 + msgid "could not lookup commit '%s'"
5002 + msgstr "kon nie vaslegging '%s' opsoek nie"
5003 +
5004 + #, c-format
5005 + msgid "(reading log message from standard input)\n"
5006 + msgstr "(lees logboodskap vanaf standaardinvoer)\n"
5007 +
5008 + msgid "could not read log from standard input"
5009 + msgstr "kon nie log vanaf standaardinvoer lees nie"
5010 +
5011 + #, c-format
5012 + msgid "could not read log file '%s'"
5013 + msgstr "kon nie loglêer '%s' lees nie"
5014 +
5015 + #, c-format
5016 + msgid "options '%s' and '%s:%s' cannot be used together"
5017 + msgstr "opsies '%s' en '%s:%s' kan nie saam gebruik word nie"
5018 +
5019 + msgid "could not read SQUASH_MSG"
5020 + msgstr "kon nie SQUASH_MSG lees nie"
5021 +
5022 + msgid "could not read MERGE_MSG"
5023 + msgstr "kon nie MERGE_MSG lees nie"
5024 +
5025 + #, c-format
5026 + msgid "could not open '%s'"
5027 + msgstr "kon nie '%s' oopmaak nie"
5028 +
5029 + msgid "could not write commit template"
5030 + msgstr "kon nie vasleggingsjabloon skryf nie"
5031 +
5032 + #, c-format
5033 + msgid ""
5034 + "Please enter the commit message for your changes. Lines starting\n"
5035 + "with '%s' will be ignored.\n"
5036 + msgstr ""
5037 + "Voer asseblief die vasleggingsboodskap vir jou veranderinge in. Reëls wat\n"
5038 + "met '%s' begin, sal geïgnoreer word.\n"
5039 +
5040 + #, c-format
5041 + msgid ""
5042 + "Please enter the commit message for your changes. Lines starting\n"
5043 + "with '%s' will be ignored, and an empty message aborts the commit.\n"
5044 + msgstr ""
5045 + "Voer asseblief die vasleggingsboodskap vir jou veranderinge in. Reëls wat\n"
5046 + "met '%s' begin, sal geïgnoreer word, en 'n leë boodskap staak die "
5047 + "vaslegging.\n"
5048 +
5049 + #, c-format
5050 + msgid ""
5051 + "Please enter the commit message for your changes. Lines starting\n"
5052 + "with '%s' will be kept; you may remove them yourself if you want to.\n"
5053 + msgstr ""
5054 + "Voer asseblief die vasleggingsboodskap vir jou veranderinge in. Reëls wat\n"
5055 + "met '%s' begin, sal behou word; jy kan dit self verwyder as jy wil.\n"
5056 +
5057 + #, c-format
5058 + msgid ""
5059 + "Please enter the commit message for your changes. Lines starting\n"
5060 + "with '%s' will be kept; you may remove them yourself if you want to.\n"
5061 + "An empty message aborts the commit.\n"
5062 + msgstr ""
5063 + "Voer asseblief die vasleggingsboodskap vir jou veranderinge in. Reëls wat\n"
5064 + "met '%s' begin, sal behou word; jy kan dit self verwyder as jy wil.\n"
5065 + "'n Leë boodskap staak die vaslegging.\n"
5066 +
5067 + msgid ""
5068 + "\n"
5069 + "It looks like you may be committing a merge.\n"
5070 + "If this is not correct, please run\n"
5071 + "\tgit update-ref -d MERGE_HEAD\n"
5072 + "and try again.\n"
5073 + msgstr ""
5074 + "\n"
5075 + "Dit lyk asof jy dalk 'n saamsmelting vaslê.\n"
5076 + "As dit nie korrek is nie, voer asseblief\n"
5077 + "\tgit update-ref -d MERGE_HEAD\n"
5078 + "uit en probeer weer.\n"
5079 +
5080 + msgid ""
5081 + "\n"
5082 + "It looks like you may be committing a cherry-pick.\n"
5083 + "If this is not correct, please run\n"
5084 + "\tgit update-ref -d CHERRY_PICK_HEAD\n"
5085 + "and try again.\n"
5086 + msgstr ""
5087 + "\n"
5088 + "Dit lyk asof jy dalk 'n kersiepluk vaslê.\n"
5089 + "As dit nie korrek is nie, voer asseblief\n"
5090 + "\tgit update-ref -d CHERRY_PICK_HEAD\n"
5091 + "uit en probeer weer.\n"
5092 +
5093 + #, c-format
5094 + msgid "%sAuthor: %.*s <%.*s>"
5095 + msgstr "%sOuteur: %.*s <%.*s>"
5096 +
5097 + #, c-format
5098 + msgid "%sDate: %s"
5099 + msgstr "%sDatum: %s"
5100 +
5101 + #, c-format
5102 + msgid "%sCommitter: %.*s <%.*s>"
5103 + msgstr "%sVaslegger: %.*s <%.*s>"
5104 +
5105 + msgid "Cannot read index"
5106 + msgstr "Kan nie indeks lees nie"
5107 +
5108 + msgid "unable to pass trailers to --trailers"
5109 + msgstr "kan nie aanhangsels aan --trailers deurgee nie"
5110 +
5111 + msgid "Error building trees"
5112 + msgstr "Fout met die bou van bome"
5113 +
5114 + #, c-format
5115 + msgid "Please supply the message using either -m or -F option.\n"
5116 + msgstr "Verskaf asseblief die boodskap met die -m- of -F-opsie.\n"
5117 +
5118 + #, c-format
5119 + msgid "--author '%s' is not 'Name <email>' and matches no existing author"
5120 + msgstr ""
5121 + "--author '%s' is nie 'Naam <e-pos>' nie en stem met geen bestaande outeur "
5122 + "ooreen nie"
5123 +
5124 + #, c-format
5125 + msgid "Invalid ignored mode '%s'"
5126 + msgstr "Ongeldige geïgnoreerde-modus '%s'"
5127 +
5128 + #, c-format
5129 + msgid "Invalid untracked files mode '%s'"
5130 + msgstr "Ongeldige modus vir onnaspoorbare lêers '%s'"
5131 +
5132 + msgid "You are in the middle of a merge -- cannot reword."
5133 + msgstr "Jy is in die middel van 'n saamsmelting -- kan nie herbewoord nie."
5134 +
5135 + msgid "You are in the middle of a cherry-pick -- cannot reword."
5136 + msgstr "Jy is in die middel van 'n kersiepluk -- kan nie herbewoord nie."
5137 +
5138 + #, c-format
5139 + msgid "reword option of '%s' and path '%s' cannot be used together"
5140 + msgstr "herbewoordopsie van '%s' en pad '%s' kan nie saam gebruik word nie"
5141 +
5142 + #, c-format
5143 + msgid "reword option of '%s' and '%s' cannot be used together"
5144 + msgstr "herbewoordopsie van '%s' en '%s' kan nie saam gebruik word nie"
5145 +
5146 + msgid "You have nothing to amend."
5147 + msgstr "Jy het niks om te wysig nie."
5148 +
5149 + msgid "You are in the middle of a merge -- cannot amend."
5150 + msgstr "Jy is in die middel van 'n saamsmelting -- kan nie wysig nie."
5151 +
5152 + msgid "You are in the middle of a cherry-pick -- cannot amend."
5153 + msgstr "Jy is in die middel van 'n kersiepluk -- kan nie wysig nie."
5154 +
5155 + msgid "You are in the middle of a rebase -- cannot amend."
5156 + msgstr "Jy is in die middel van 'n herbasering -- kan nie wysig nie."
5157 +
5158 + msgid "--reset-author can be used only with -C, -c or --amend."
5159 + msgstr "--reset-author kan slegs met -C, -c of --amend gebruik word."
5160 +
5161 + #, c-format
5162 + msgid "unknown option: --fixup=%s:%s"
5163 + msgstr "onbekende opsie: --fixup=%s:%s"
5164 +
5165 + #, c-format
5166 + msgid "paths '%s ...' with -a does not make sense"
5167 + msgstr "paaie '%s ...' met -a maak nie sin nie"
5168 +
5169 + msgid "show status concisely"
5170 + msgstr "wys status beknop"
5171 +
5172 + msgid "show branch information"
5173 + msgstr "wys takinligting"
5174 +
5175 + msgid "show stash information"
5176 + msgstr "wys wegbêre-inligting"
5177 +
5178 + msgid "compute full ahead/behind values"
5179 + msgstr "bereken volledige voor/agter-waardes"
5180 +
5181 + msgid "version"
5182 + msgstr "weergawe"
5183 +
5184 + msgid "machine-readable output"
5185 + msgstr "masjienleesbare uitvoer"
5186 +
5187 + msgid "show status in long format (default)"
5188 + msgstr "wys status in lang formaat (verstek)"
5189 +
5190 + msgid "terminate entries with NUL"
5191 + msgstr "beëindig inskrywings met NUL"
5192 +
5193 + msgid "show untracked files, optional modes: all, normal, no. (Default: all)"
5194 + msgstr ""
5195 + "wys onnaspoorbare lêers, opsionele modusse: all, normal, no. (Verstek: all)"
5196 +
5197 + msgid ""
5198 + "show ignored files, optional modes: traditional, matching, no. (Default: "
5199 + "traditional)"
5200 + msgstr ""
5201 + "wys geïgnoreerde lêers, opsionele modusse: traditional, matching, no. "
5202 + "(Verstek: traditional)"
5203 +
5204 + msgid "when"
5205 + msgstr "wanneer"
5206 +
5207 + msgid ""
5208 + "ignore changes to submodules, optional when: all, dirty, untracked. "
5209 + "(Default: all)"
5210 + msgstr ""
5211 + "ignoreer veranderinge aan submodules, opsioneel wanneer: all, dirty, "
5212 + "untracked. (Verstek: all)"
5213 +
5214 + msgid "list untracked files in columns"
5215 + msgstr "lys onnaspoorbare lêers in kolomme"
5216 +
5217 + msgid "do not detect renames"
5218 + msgstr "moenie hernoemings bespeur nie"
5219 +
5220 + msgid "detect renames, optionally set similarity index"
5221 + msgstr "bespeur hernoemings, stel opsioneel ooreenkomsindeks"
5222 +
5223 + msgid "Unsupported combination of ignored and untracked-files arguments"
5224 + msgstr "Nie-ondersteunde kombinasie van ignored- en untracked-files-argumente"
5225 +
5226 + msgid "suppress summary after successful commit"
5227 + msgstr "onderdruk opsomming na suksesvolle vaslegging"
5228 +
5229 + msgid "show diff in commit message template"
5230 + msgstr "wys verskil in vasleggingsboodskapsjabloon"
5231 +
5232 + msgid "Commit message options"
5233 + msgstr "Vasleggingsboodskapopsies"
5234 +
5235 + msgid "read message from file"
5236 + msgstr "lees boodskap vanaf lêer"
5237 +
5238 + msgid "author"
5239 + msgstr "outeur"
5240 +
5241 + msgid "override author for commit"
5242 + msgstr "oorskryf outeur vir vaslegging"
5243 +
5244 + msgid "date"
5245 + msgstr "datum"
5246 +
5247 + msgid "override date for commit"
5248 + msgstr "oorskryf datum vir vaslegging"
5249 +
5250 + msgid "commit"
5251 + msgstr "vaslegging"
5252 +
5253 + msgid "reuse and edit message from specified commit"
5254 + msgstr "hergebruik en redigeer boodskap van gespesifiseerde vaslegging"
5255 +
5256 + msgid "reuse message from specified commit"
5257 + msgstr "hergebruik boodskap van gespesifiseerde vaslegging"
5258 +
5259 + #. TRANSLATORS: Leave "[(amend|reword):]" as-is,
5260 + #. and only translate <commit>.
5261 + #.
5262 + msgid "[(amend|reword):]commit"
5263 + msgstr "[(amend|reword):]vaslegging"
5264 +
5265 + msgid ""
5266 + "use autosquash formatted message to fixup or amend/reword specified commit"
5267 + msgstr ""
5268 + "gebruik autosquash-geformateerde boodskap om gespesifiseerde vaslegging reg "
5269 + "te maak of te wysig/herbewoord"
5270 +
5271 + msgid "use autosquash formatted message to squash specified commit"
5272 + msgstr ""
5273 + "gebruik autosquash-geformateerde boodskap om gespesifiseerde vaslegging saam "
5274 + "te pers"
5275 +
5276 + msgid "the commit is authored by me now (used with -C/-c/--amend)"
5277 + msgstr "ek is nou die outeur van die vaslegging (gebruik met -C/-c/--amend)"
5278 +
5279 + msgid "trailer"
5280 + msgstr "aanhangsel"
5281 +
5282 + msgid "add custom trailer(s)"
5283 + msgstr "voeg pasgemaakte aanhangsel(s) by"
5284 +
5285 + msgid "add a Signed-off-by trailer"
5286 + msgstr "voeg 'n Signed-off-by-aanhangsel by"
5287 +
5288 + msgid "use specified template file"
5289 + msgstr "gebruik gespesifiseerde sjabloonlêer"
5290 +
5291 + msgid "force edit of commit"
5292 + msgstr "dwing redigering van vaslegging af"
5293 +
5294 + msgid "include status in commit message template"
5295 + msgstr "sluit status in vasleggingsboodskapsjabloon in"
5296 +
5297 + msgid "Commit contents options"
5298 + msgstr "Vasleggingsinhoudopsies"
5299 +
5300 + msgid "commit all changed files"
5301 + msgstr "lê alle veranderde lêers vas"
5302 +
5303 + msgid "add specified files to index for commit"
5304 + msgstr "voeg gespesifiseerde lêers by indeks vir vaslegging"
5305 +
5306 + msgid "interactively add files"
5307 + msgstr "voeg lêers interaktief by"
5308 +
5309 + msgid "interactively add changes"
5310 + msgstr "voeg veranderinge interaktief by"
5311 +
5312 + msgid "commit only specified files"
5313 + msgstr "lê slegs gespesifiseerde lêers vas"
5314 +
5315 + msgid "bypass pre-commit and commit-msg hooks"
5316 + msgstr "omseil pre-commit- en commit-msg-hake"
5317 +
5318 + msgid "show what would be committed"
5319 + msgstr "wys wat vasgelê sou word"
5320 +
5321 + msgid "amend previous commit"
5322 + msgstr "wysig vorige vaslegging"
5323 +
5324 + msgid "bypass post-rewrite hook"
5325 + msgstr "omseil post-rewrite-haak"
5326 +
5327 + msgid "ok to record an empty change"
5328 + msgstr "dit is in orde om 'n leë verandering op te teken"
5329 +
5330 + msgid "ok to record a change with an empty message"
5331 + msgstr "dit is in orde om 'n verandering met 'n leë boodskap op te teken"
5332 +
5333 + msgid "could not parse HEAD commit"
5334 + msgstr "kon nie HEAD-vaslegging ontleed nie"
5335 +
5336 + #, c-format
5337 + msgid "Corrupt MERGE_HEAD file (%s)"
5338 + msgstr "Korrupte MERGE_HEAD-lêer (%s)"
5339 +
5340 + msgid "could not read MERGE_MODE"
5341 + msgstr "kon nie MERGE_MODE lees nie"
5342 +
5343 + #, c-format
5344 + msgid "could not read commit message: %s"
5345 + msgstr "kon nie vasleggingsboodskap lees nie: %s"
5346 +
5347 + #, c-format
5348 + msgid "Aborting commit due to empty commit message.\n"
5349 + msgstr "Staak vaslegging weens leë vasleggingsboodskap.\n"
5350 +
5351 + #, c-format
5352 + msgid "Aborting commit; you did not edit the message.\n"
5353 + msgstr "Staak vaslegging; jy het nie die boodskap geredigeer nie.\n"
5354 +
5355 + #, c-format
5356 + msgid "Aborting commit due to empty commit message body.\n"
5357 + msgstr "Staak vaslegging weens leë vasleggingsboodskapliggaam.\n"
5358 +
5359 + msgid ""
5360 + "repository has been updated, but unable to write\n"
5361 + "new index file. Check that disk is not full and quota is\n"
5362 + "not exceeded, and then \"git restore --staged :/\" to recover."
5363 + msgstr ""
5364 + "bewaarplek is bygewerk, maar kan nie nuwe indekslêer\n"
5365 + "skryf nie. Kontroleer dat die skyf nie vol is nie en dat die kwota\n"
5366 + "nie oorskry is nie, en voer dan \"git restore --staged :/\" uit om te "
5367 + "herstel."
5368 +
5369 + msgid "git config list [<file-option>] [<display-option>] [--includes]"
5370 + msgstr "git config list [<lêeropsie>] [<vertoonopsie>] [--includes]"
5371 +
5372 + msgid ""
5373 + "git config get [<file-option>] [<display-option>] [--includes] [--all] [--"
5374 + "regexp] [--value=<pattern>] [--fixed-value] [--default=<default>] [--"
5375 + "url=<url>] <name>"
5376 + msgstr ""
5377 + "git config get [<lêeropsie>] [<vertoonopsie>] [--includes] [--all] [--"
5378 + "regexp] [--value=<patroon>] [--fixed-value] [--default=<verstek>] [--"
5379 + "url=<url>] <naam>"
5380 +
5381 + msgid ""
5382 + "git config set [<file-option>] [--type=<type>] [--all] [--value=<pattern>] "
5383 + "[--fixed-value] <name> <value>"
5384 + msgstr ""
5385 + "git config set [<lêeropsie>] [--type=<tipe>] [--all] [--value=<patroon>] [--"
5386 + "fixed-value] <naam> <waarde>"
5387 +
5388 + msgid ""
5389 + "git config unset [<file-option>] [--all] [--value=<pattern>] [--fixed-value] "
5390 + "<name>"
5391 + msgstr ""
5392 + "git config unset [<lêeropsie>] [--all] [--value=<patroon>] [--fixed-value] "
5393 + "<naam>"
5394 +
5395 + msgid "git config rename-section [<file-option>] <old-name> <new-name>"
5396 + msgstr "git config rename-section [<lêeropsie>] <ou-naam> <nuwe-naam>"
5397 +
5398 + msgid "git config remove-section [<file-option>] <name>"
5399 + msgstr "git config remove-section [<lêeropsie>] <naam>"
5400 +
5401 + msgid "git config edit [<file-option>]"
5402 + msgstr "git config edit [<lêeropsie>]"
5403 +
5404 + msgid "git config [<file-option>] --get-colorbool <name> [<stdout-is-tty>]"
5405 + msgstr "git config [<lêeropsie>] --get-colorbool <naam> [<stdout-is-tty>]"
5406 +
5407 + msgid ""
5408 + "git config get [<file-option>] [<display-option>] [--includes] [--all] [--"
5409 + "regexp=<regexp>] [--value=<pattern>] [--fixed-value] [--default=<default>] "
5410 + "<name>"
5411 + msgstr ""
5412 + "git config get [<lêeropsie>] [<vertoonopsie>] [--includes] [--all] [--"
5413 + "regexp=<regex>] [--value=<patroon>] [--fixed-value] [--default=<verstek>] "
5414 + "<naam>"
5415 +
5416 + msgid ""
5417 + "git config set [<file-option>] [--type=<type>] [--comment=<message>] [--all] "
5418 + "[--value=<pattern>] [--fixed-value] <name> <value>"
5419 + msgstr ""
5420 + "git config set [<lêeropsie>] [--type=<tipe>] [--comment=<boodskap>] [--all] "
5421 + "[--value=<patroon>] [--fixed-value] <naam> <waarde>"
5422 +
5423 + msgid "Config file location"
5424 + msgstr "Ligging van konfigurasielêer"
5425 +
5426 + msgid "use global config file"
5427 + msgstr "gebruik globale konfigurasielêer"
5428 +
5429 + msgid "use system config file"
5430 + msgstr "gebruik stelselkonfigurasielêer"
5431 +
5432 + msgid "use repository config file"
5433 + msgstr "gebruik bewaarplek-konfigurasielêer"
5434 +
5435 + msgid "use per-worktree config file"
5436 + msgstr "gebruik konfigurasielêer per werkboom"
5437 +
5438 + msgid "use given config file"
5439 + msgstr "gebruik gegewe konfigurasielêer"
5440 +
5441 + msgid "blob-id"
5442 + msgstr "blob-id"
5443 +
5444 + msgid "read config from given blob object"
5445 + msgstr "lees konfigurasie vanaf gegewe blob-objek"
5446 +
5447 + msgid "Type"
5448 + msgstr "Tipe"
5449 +
5450 + msgid "type"
5451 + msgstr "tipe"
5452 +
5453 + msgid "value is given this type"
5454 + msgstr "waarde kry hierdie tipe"
5455 +
5456 + msgid "value is \"true\" or \"false\""
5457 + msgstr "waarde is \"true\" of \"false\""
5458 +
5459 + msgid "value is decimal number"
5460 + msgstr "waarde is 'n desimale getal"
5461 +
5462 + msgid "value is --bool or --int"
5463 + msgstr "waarde is --bool of --int"
5464 +
5465 + msgid "value is --bool or string"
5466 + msgstr "waarde is --bool of 'n string"
5467 +
5468 + msgid "value is a path (file or directory name)"
5469 + msgstr "waarde is 'n pad (lêer- of gidsnaam)"
5470 +
5471 + msgid "value is an expiry date"
5472 + msgstr "waarde is 'n vervaldatum"
5473 +
5474 + msgid "Display options"
5475 + msgstr "Vertoonopsies"
5476 +
5477 + msgid "terminate values with NUL byte"
5478 + msgstr "beëindig waardes met NUL-greep"
5479 +
5480 + msgid "show variable names only"
5481 + msgstr "wys slegs veranderlikename"
5482 +
5483 + msgid "show origin of config (file, standard input, blob, command line)"
5484 + msgstr ""
5485 + "wys oorsprong van konfigurasie (lêer, standaardinvoer, blob, opdragreël)"
5486 +
5487 + msgid "show scope of config (worktree, local, global, system, command)"
5488 + msgstr ""
5489 + "wys omvang van konfigurasie (werkboom, plaaslik, globaal, stelsel, opdrag)"
5490 +
5491 + msgid "show config keys in addition to their values"
5492 + msgstr "wys konfigurasiesleutels benewens hul waardes"
5493 +
5494 + #, c-format
5495 + msgid "unrecognized --type argument, %s"
5496 + msgstr "onherkende argument --type, %s"
5497 +
5498 + msgid "only one type at a time"
5499 + msgstr "slegs een tipe op 'n slag"
5500 +
5501 + #, c-format
5502 + msgid "wrong number of arguments, should be %d"
5503 + msgstr "verkeerde aantal argumente, moet %d wees"
5504 +
5505 + #, c-format
5506 + msgid "wrong number of arguments, should be from %d to %d"
5507 + msgstr "verkeerde aantal argumente, moet van %d tot %d wees"
5508 +
5509 + #, c-format
5510 + msgid "missing value to set to the variable '%s'"
5511 + msgstr "ontbrekende waarde om aan die veranderlike '%s' toe te ken"
5512 +
5513 + #, c-format
5514 + msgid "did you mean \"git config set %s %s\"?"
5515 + msgstr "het jy \"git config set %s %s\" bedoel?"
5516 +
5517 + #, c-format
5518 + msgid "missing value to set to a variable with an invalid name '%s'"
5519 + msgstr ""
5520 + "ontbrekende waarde om aan 'n veranderlike met 'n ongeldige naam '%s' toe te "
5521 + "ken"
5522 +
5523 + #, c-format
5524 + msgid "invalid key pattern: %s"
5525 + msgstr "ongeldige sleutelpatroon: %s"
5526 +
5527 + #, c-format
5528 + msgid "invalid pattern: %s"
5529 + msgstr "ongeldige patroon: %s"
5530 +
5531 + #, c-format
5532 + msgid "failed to format default config value: %s"
5533 + msgstr "kon nie verstek-konfigurasiewaarde formateer nie: %s"
5534 +
5535 + #, c-format
5536 + msgid "cannot parse color '%s'"
5537 + msgstr "kan nie kleur '%s' ontleed nie"
5538 +
5539 + msgid "unable to parse default color value"
5540 + msgstr "kan nie verstek-kleurwaarde ontleed nie"
5541 +
5542 + msgid "not in a git directory"
5543 + msgstr "nie in 'n Git-gids nie"
5544 +
5545 + msgid "writing to stdin is not supported"
5546 + msgstr "skryf na stdin word nie ondersteun nie"
5547 +
5548 + msgid "writing config blobs is not supported"
5549 + msgstr "skryf van konfigurasie-blobs word nie ondersteun nie"
5550 +
5551 + #, c-format
5552 + msgid ""
5553 + "# This is Git's per-user configuration file.\n"
5554 + "[user]\n"
5555 + "# Please adapt and uncomment the following lines:\n"
5556 + "#\tname = %s\n"
5557 + "#\temail = %s\n"
5558 + msgstr ""
5559 + "# Dit is Git se konfigurasielêer per gebruiker.\n"
5560 + "[user]\n"
5561 + "# Pas asseblief die volgende reëls aan en ontkommentarieer hulle:\n"
5562 + "#\tname = %s\n"
5563 + "#\temail = %s\n"
5564 +
5565 + msgid "only one config file at a time"
5566 + msgstr "slegs een konfigurasielêer op 'n slag"
5567 +
5568 + msgid "--local can only be used inside a git repository"
5569 + msgstr "--local kan slegs binne 'n Git-bewaarplek gebruik word"
5570 +
5571 + msgid "--blob can only be used inside a git repository"
5572 + msgstr "--blob kan slegs binne 'n Git-bewaarplek gebruik word"
5573 +
5574 + msgid "--worktree can only be used inside a git repository"
5575 + msgstr "--worktree kan slegs binne 'n Git-bewaarplek gebruik word"
5576 +
5577 + msgid "$HOME not set"
5578 + msgstr "$HOME is nie gestel nie"
5579 +
5580 + msgid ""
5581 + "--worktree cannot be used with multiple working trees unless the config\n"
5582 + "extension worktreeConfig is enabled. Please read \"CONFIGURATION FILE\"\n"
5583 + "section in \"git help worktree\" for details"
5584 + msgstr ""
5585 + "--worktree kan nie met veelvuldige werkbome gebruik word nie, tensy die\n"
5586 + "konfigurasie-uitbreiding worktreeConfig geaktiveer is. Lees asseblief die\n"
5587 + "afdeling \"CONFIGURATION FILE\" in \"git help worktree\" vir besonderhede"
5588 +
5589 + msgid "Other"
5590 + msgstr "Ander"
5591 +
5592 + msgid "respect include directives on lookup"
5593 + msgstr "respekteer insluitdirektiewe tydens opsoek"
5594 +
5595 + #, c-format
5596 + msgid "unable to read config file '%s'"
5597 + msgstr "kan nie konfigurasielêer '%s' lees nie"
5598 +
5599 + msgid "error processing config file(s)"
5600 + msgstr "fout met verwerking van konfigurasielêer(s)"
5601 +
5602 + msgid "Filter options"
5603 + msgstr "Filteropsies"
5604 +
5605 + msgid "return all values for multi-valued config options"
5606 + msgstr "gee alle waardes terug vir meerwaardige konfigurasie-opsies"
5607 +
5608 + msgid "interpret the name as a regular expression"
5609 + msgstr "interpreteer die naam as 'n reguliere uitdrukking"
5610 +
5611 + msgid "show config with values matching the pattern"
5612 + msgstr "wys konfigurasie met waardes wat by die patroon pas"
5613 +
5614 + msgid "use string equality when comparing values to value pattern"
5615 + msgstr ""
5616 + "gebruik stringgelykheid wanneer waardes met die waardepatroon vergelyk word"
5617 +
5618 + msgid "URL"
5619 + msgstr "URL"
5620 +
5621 + msgid "show config matching the given URL"
5622 + msgstr "wys konfigurasie wat by die gegewe URL pas"
5623 +
5624 + msgid "value"
5625 + msgstr "waarde"
5626 +
5627 + msgid "use default value when missing entry"
5628 + msgstr "gebruik verstekwaarde wanneer inskrywing ontbreek"
5629 +
5630 + msgid "--fixed-value only applies with 'value-pattern'"
5631 + msgstr "--fixed-value is slegs van toepassing saam met 'value-pattern'"
5632 +
5633 + msgid "--default= cannot be used with --all or --url="
5634 + msgstr "--default= kan nie met --all of --url= gebruik word nie"
5635 +
5636 + msgid "--url= cannot be used with --all, --regexp or --value"
5637 + msgstr "--url= kan nie met --all, --regexp of --value gebruik word nie"
5638 +
5639 + msgid "Filter"
5640 + msgstr "Filter"
5641 +
5642 + msgid "replace multi-valued config option with new value"
5643 + msgstr "vervang meerwaardige konfigurasie-opsie met nuwe waarde"
5644 +
5645 + msgid "human-readable comment string (# will be prepended as needed)"
5646 + msgstr "mensleesbare kommentaarstring (# sal vooraan gevoeg word soos nodig)"
5647 +
5648 + msgid "add a new line without altering any existing values"
5649 + msgstr "voeg 'n nuwe reël by sonder om enige bestaande waardes te verander"
5650 +
5651 + msgid "--fixed-value only applies with --value=<pattern>"
5652 + msgstr "--fixed-value is slegs van toepassing saam met --value=<patroon>"
5653 +
5654 + msgid "--append cannot be used with --value=<pattern>"
5655 + msgstr "--append kan nie met --value=<patroon> gebruik word nie"
5656 +
5657 + #, c-format
5658 + msgid ""
5659 + "cannot overwrite multiple values with a single value\n"
5660 + " Use --value=<pattern>, --append or --all to change %s."
5661 + msgstr ""
5662 + "kan nie veelvuldige waardes met 'n enkele waarde oorskryf nie\n"
5663 + " Gebruik --value=<patroon>, --append of --all om %s te verander."
5664 +
5665 + msgid "unset all multi-valued config options"
5666 + msgstr "ontstel alle meerwaardige konfigurasie-opsies"
5667 +
5668 + msgid "unset multi-valued config options with matching values"
5669 + msgstr "ontstel meerwaardige konfigurasie-opsies met passende waardes"
5670 +
5671 + #, c-format
5672 + msgid "no such section: %s"
5673 + msgstr "geen sodanige afdeling nie: %s"
5674 +
5675 + msgid "editing stdin is not supported"
5676 + msgstr "wysiging van stdin word nie ondersteun nie"
5677 +
5678 + msgid "editing blobs is not supported"
5679 + msgstr "wysiging van blobs word nie ondersteun nie"
5680 +
5681 + #, c-format
5682 + msgid "cannot create configuration file %s"
5683 + msgstr "kan nie konfigurasielêer %s skep nie"
5684 +
5685 + msgid "Action"
5686 + msgstr "Aksie"
5687 +
5688 + msgid "get value: name [<value-pattern>]"
5689 + msgstr "kry waarde: naam [<waardepatroon>]"
5690 +
5691 + msgid "get all values: key [<value-pattern>]"
5692 + msgstr "kry alle waardes: sleutel [<waardepatroon>]"
5693 +
5694 + msgid "get values for regexp: name-regex [<value-pattern>]"
5695 + msgstr "kry waardes vir reguliere uitdrukking: naam-regex [<waardepatroon>]"
5696 +
5697 + msgid "get value specific for the URL: section[.var] URL"
5698 + msgstr "kry waarde spesifiek vir die URL: afdeling[.var] URL"
5699 +
5700 + msgid "replace all matching variables: name value [<value-pattern>]"
5701 + msgstr "vervang alle passende veranderlikes: naam waarde [<waardepatroon>]"
5702 +
5703 + msgid "add a new variable: name value"
5704 + msgstr "voeg 'n nuwe veranderlike by: naam waarde"
5705 +
5706 + msgid "remove a variable: name [<value-pattern>]"
5707 + msgstr "verwyder 'n veranderlike: naam [<waardepatroon>]"
5708 +
5709 + msgid "remove all matches: name [<value-pattern>]"
5710 + msgstr "verwyder alle passings: naam [<waardepatroon>]"
5711 +
5712 + msgid "rename section: old-name new-name"
5713 + msgstr "hernoem afdeling: ou-naam nuwe-naam"
5714 +
5715 + msgid "remove a section: name"
5716 + msgstr "verwyder 'n afdeling: naam"
5717 +
5718 + msgid "list all"
5719 + msgstr "lys alles"
5720 +
5721 + msgid "open an editor"
5722 + msgstr "open 'n redigeerder"
5723 +
5724 + msgid "find the color configured: slot [<default>]"
5725 + msgstr "vind die gekonfigureerde kleur: gleuf [<verstek>]"
5726 +
5727 + msgid "find the color setting: slot [<stdout-is-tty>]"
5728 + msgstr "vind die kleurinstelling: gleuf [<stdout-is-tty>]"
5729 +
5730 + msgid "with --get, use default value when missing entry"
5731 + msgstr "met --get, gebruik verstekwaarde wanneer inskrywing ontbreek"
5732 +
5733 + msgid "--get-color and variable type are incoherent"
5734 + msgstr "--get-color en veranderlike tipe is onsamehangend"
5735 +
5736 + msgid "no action specified"
5737 + msgstr "geen aksie gespesifiseer nie"
5738 +
5739 + msgid "--name-only is only applicable to --list or --get-regexp"
5740 + msgstr "--name-only is slegs van toepassing op --list of --get-regexp"
5741 +
5742 + msgid ""
5743 + "--show-origin is only applicable to --get, --get-all, --get-regexp, and --"
5744 + "list"
5745 + msgstr ""
5746 + "--show-origin is slegs van toepassing op --get, --get-all, --get-regexp en --"
5747 + "list"
5748 +
5749 + msgid "--default is only applicable to --get"
5750 + msgstr "--default is slegs van toepassing op --get"
5751 +
5752 + msgid "--comment is only applicable to add/set/replace operations"
5753 + msgstr "--comment is slegs van toepassing op add/set/replace-bewerkings"
5754 +
5755 + #, c-format
5756 + msgid ""
5757 + "cannot overwrite multiple values with a single value\n"
5758 + " Use a regexp, --add or --replace-all to change %s."
5759 + msgstr ""
5760 + "kan nie veelvuldige waardes met 'n enkele waarde oorskryf nie\n"
5761 + " Gebruik 'n reguliere uitdrukking, --add of --replace-all om %s te "
5762 + "verander."
5763 +
5764 + msgid "print sizes in human readable format"
5765 + msgstr "druk groottes in mensleesbare formaat"
5766 +
5767 + #, c-format
5768 + msgid ""
5769 + "The permissions on your socket directory are too loose; other\n"
5770 + "users may be able to read your cached credentials. Consider running:\n"
5771 + "\n"
5772 + "\tchmod 0700 %s"
5773 + msgstr ""
5774 + "Die toestemmings op u sokgids is te los; ander gebruikers\n"
5775 + "kan dalk u gekaste geloofsbriewe lees. Oorweeg om die volgende uit te voer:\n"
5776 + "\n"
5777 + "\tchmod 0700 %s"
5778 +
5779 + msgid "print debugging messages to stderr"
5780 + msgstr "druk ontfoutingsboodskappe na stderr"
5781 +
5782 + msgid "credential-cache--daemon unavailable; no unix socket support"
5783 + msgstr ""
5784 + "credential-cache--daemon nie beskikbaar nie; geen unix-sokondersteuning nie"
5785 +
5786 + msgid "credential-cache unavailable; no unix socket support"
5787 + msgstr "credential-cache nie beskikbaar nie; geen unix-sokondersteuning nie"
5788 +
5789 + #, c-format
5790 + msgid "unable to get credential storage lock in %d ms"
5791 + msgstr "kan nie binne %d ms 'n slot op die geloofsbriefberging kry nie"
5792 +
5793 + msgid ""
5794 + "git describe [--all] [--tags] [--contains] [--abbrev=<n>] [<commit-ish>...]"
5795 + msgstr ""
5796 + "git describe [--all] [--tags] [--contains] [--abbrev=<n>] "
5797 + "[<vasleggingagtige>...]"
5798 +
5799 + msgid ""
5800 + "git describe [--all] [--tags] [--contains] [--abbrev=<n>] --dirty[=<mark>]"
5801 + msgstr ""
5802 + "git describe [--all] [--tags] [--contains] [--abbrev=<n>] --dirty[=<merk>]"
5803 +
5804 + msgid "git describe <blob>"
5805 + msgstr "git describe <blob>"
5806 +
5807 + msgid "head"
5808 + msgstr "kop"
5809 +
5810 + msgid "lightweight"
5811 + msgstr "liggewig"
5812 +
5813 + msgid "annotated"
5814 + msgstr "geannoteer"
5815 +
5816 + #, c-format
5817 + msgid "annotated tag %s not available"
5818 + msgstr "geannoteerde etiket %s is nie beskikbaar nie"
5819 +
5820 + #, c-format
5821 + msgid "tag '%s' is externally known as '%s'"
5822 + msgstr "etiket '%s' is ekstern bekend as '%s'"
5823 +
5824 + #, c-format
5825 + msgid "no tag exactly matches '%s'"
5826 + msgstr "geen etiket pas presies by '%s' nie"
5827 +
5828 + #, c-format
5829 + msgid "No exact match on refs or tags, searching to describe\n"
5830 + msgstr ""
5831 + "Geen presiese passing op verwysings of etikette nie, soek om te beskryf\n"
5832 +
5833 + #, c-format
5834 + msgid "finished search at %s\n"
5835 + msgstr "soektog voltooi by %s\n"
5836 +
5837 + #, c-format
5838 + msgid ""
5839 + "No annotated tags can describe '%s'.\n"
5840 + "However, there were unannotated tags: try --tags."
5841 + msgstr ""
5842 + "Geen geannoteerde etikette kan '%s' beskryf nie.\n"
5843 + "Daar was egter ongeannoteerde etikette: probeer --tags."
5844 +
5845 + #, c-format
5846 + msgid ""
5847 + "No tags can describe '%s'.\n"
5848 + "Try --always, or create some tags."
5849 + msgstr ""
5850 + "Geen etikette kan '%s' beskryf nie.\n"
5851 + "Probeer --always, of skep 'n paar etikette."
5852 +
5853 + #, c-format
5854 + msgid "traversed %lu commits\n"
5855 + msgstr "%lu vasleggings deurloop\n"
5856 +
5857 + #, c-format
5858 + msgid "found %i tags; gave up search at %s\n"
5859 + msgstr "%i etikette gevind; soektog by %s gestaak\n"
5860 +
5861 + #, c-format
5862 + msgid "cannot search for blob '%s' on an unborn branch"
5863 + msgstr "kan nie na blob '%s' op 'n ongebore tak soek nie"
5864 +
5865 + #, c-format
5866 + msgid "blob '%s' not reachable from HEAD"
5867 + msgstr "blob '%s' is nie vanaf HEAD bereikbaar nie"
5868 +
5869 + #, c-format
5870 + msgid "describe %s\n"
5871 + msgstr "beskryf %s\n"
5872 +
5873 + #, c-format
5874 + msgid "Not a valid object name %s"
5875 + msgstr "Nie 'n geldige objeknaam nie: %s"
5876 +
5877 + #, c-format
5878 + msgid "%s is neither a commit nor blob"
5879 + msgstr "%s is nóg 'n vaslegging nóg 'n blob"
5880 +
5881 + msgid "find the tag that comes after the commit"
5882 + msgstr "vind die etiket wat ná die vaslegging kom"
5883 +
5884 + msgid "debug search strategy on stderr"
5885 + msgstr "ontfout soekstrategie op stderr"
5886 +
5887 + msgid "use any ref"
5888 + msgstr "gebruik enige verwysing"
5889 +
5890 + msgid "use any tag, even unannotated"
5891 + msgstr "gebruik enige etiket, selfs ongeannoteerde"
5892 +
5893 + msgid "always use long format"
5894 + msgstr "gebruik altyd lang formaat"
5895 +
5896 + msgid "only follow first parent"
5897 + msgstr "volg slegs eerste ouer"
5898 +
5899 + msgid "only output exact matches"
5900 + msgstr "voer slegs presiese passings uit"
5901 +
5902 + msgid "consider <n> most recent tags (default: 10)"
5903 + msgstr "oorweeg <n> mees onlangse etikette (verstek: 10)"
5904 +
5905 + msgid "only consider tags matching <pattern>"
5906 + msgstr "oorweeg slegs etikette wat by <patroon> pas"
5907 +
5908 + msgid "do not consider tags matching <pattern>"
5909 + msgstr "moenie etikette oorweeg wat by <patroon> pas nie"
5910 +
5911 + msgid "show abbreviated commit object as fallback"
5912 + msgstr "wys verkorte vasleggingsobjek as terugvaloplossing"
5913 +
5914 + msgid "mark"
5915 + msgstr "merk"
5916 +
5917 + msgid "append <mark> on dirty working tree (default: \"-dirty\")"
5918 + msgstr "voeg <merk> by op vuil werkboom (verstek: \"-dirty\")"
5919 +
5920 + msgid "append <mark> on broken working tree (default: \"-broken\")"
5921 + msgstr "voeg <merk> by op stukkende werkboom (verstek: \"-broken\")"
5922 +
5923 + msgid "No names found, cannot describe anything."
5924 + msgstr "Geen name gevind nie, kan niks beskryf nie."
5925 +
5926 + #, c-format
5927 + msgid "option '%s' and commit-ishes cannot be used together"
5928 + msgstr "opsie '%s' en vasleggingagtiges kan nie saam gebruik word nie"
5929 +
5930 + msgid ""
5931 + "git diagnose [(-o | --output-directory) <path>] [(-s | --suffix) <format>]\n"
5932 + " [--mode=<mode>]"
5933 + msgstr ""
5934 + "git diagnose [(-o | --output-directory) <pad>] [(-s | --suffix) <formaat>]\n"
5935 + " [--mode=<modus>]"
5936 +
5937 + msgid "specify a destination for the diagnostics archive"
5938 + msgstr "spesifiseer 'n bestemming vir die diagnostiese argief"
5939 +
5940 + msgid "specify a strftime format suffix for the filename"
5941 + msgstr "spesifiseer 'n strftime-formaatagtervoegsel vir die lêernaam"
5942 +
5943 + msgid "specify the content of the diagnostic archive"
5944 + msgstr "spesifiseer die inhoud van die diagnostiese argief"
5945 +
5946 + #, c-format
5947 + msgid "unable to parse mode: %s"
5948 + msgstr "kan nie modus ontleed nie: %s"
5949 +
5950 + #, c-format
5951 + msgid "unable to parse object id: %s"
5952 + msgstr "kan nie objek-id ontleed nie: %s"
5953 +
5954 + msgid "git diff-pairs -z [<diff-options>]"
5955 + msgstr "git diff-pairs -z [<diff-opsies>]"
5956 +
5957 + msgid "working without -z is not supported"
5958 + msgstr "werk sonder -z word nie ondersteun nie"
5959 +
5960 + msgid "pathspec arguments not supported"
5961 + msgstr "padspesifikasie-argumente word nie ondersteun nie"
5962 +
5963 + msgid "revision arguments not allowed"
5964 + msgstr "hersieningsargumente word nie toegelaat nie"
5965 +
5966 + msgid "invalid raw diff input"
5967 + msgstr "ongeldige rou diff-invoer"
5968 +
5969 + msgid "tree objects not supported"
5970 + msgstr "boomobjekte word nie ondersteun nie"
5971 +
5972 + msgid "got EOF while reading path"
5973 + msgstr "EOF teëgekom tydens lees van pad"
5974 +
5975 + msgid "got EOF while reading destination path"
5976 + msgstr "EOF teëgekom tydens lees van bestemmingspad"
5977 +
5978 + #, c-format
5979 + msgid "unable to parse rename/copy score: %s"
5980 + msgstr "kan nie hernoem-/kopieertelling ontleed nie: %s"
5981 +
5982 + #, c-format
5983 + msgid "unknown diff status: %c"
5984 + msgstr "onbekende diff-status: %c"
5985 +
5986 + msgid "--merge-base only works with two commits"
5987 + msgstr "--merge-base werk slegs met twee vasleggings"
5988 +
5989 + #, c-format
5990 + msgid "'%s': not a regular file or symlink"
5991 + msgstr "'%s': nie 'n gewone lêer of simboliese skakel nie"
5992 +
5993 + msgid "no merge given, only parents."
5994 + msgstr "geen saamsmelting gegee nie, slegs ouers."
5995 +
5996 + #, c-format
5997 + msgid "invalid option: %s"
5998 + msgstr "ongeldige opsie: %s"
5999 +
6000 + #, c-format
6001 + msgid "%s...%s: no merge base"
6002 + msgstr "%s...%s: geen saamsmeltbasis nie"
6003 +
6004 + msgid "cannot come back to cwd"
6005 + msgstr "kan nie na huidige werkgids terugkeer nie"
6006 +
6007 + msgid "Not a git repository"
6008 + msgstr "Nie 'n Git-bewaarplek nie"
6009 +
6010 + #, c-format
6011 + msgid "invalid object '%s' given."
6012 + msgstr "ongeldige objek '%s' gegee."
6013 +
6014 + #, c-format
6015 + msgid "unable to read tree object for commit '%s'"
6016 + msgstr "kan nie boomobjek vir vaslegging '%s' lees nie"
6017 +
6018 + #, c-format
6019 + msgid "more than two blobs given: '%s'"
6020 + msgstr "meer as twee blobs gegee: '%s'"
6021 +
6022 + #, c-format
6023 + msgid "unhandled object '%s' given."
6024 + msgstr "onhanteerde objek '%s' gegee."
6025 +
6026 + #, c-format
6027 + msgid "%s...%s: multiple merge bases, using %s"
6028 + msgstr "%s...%s: veelvuldige saamsmeltbasisse, gebruik %s"
6029 +
6030 + msgid "git difftool [<options>] [<commit> [<commit>]] [--] [<path>...]"
6031 + msgstr "git difftool [<opsies>] [<vaslegging> [<vaslegging>]] [--] [<pad>...]"
6032 +
6033 + #, c-format
6034 + msgid "could not read symlink %s"
6035 + msgstr "kon nie simboliese skakel %s lees nie"
6036 +
6037 + #, c-format
6038 + msgid "could not read symlink file %s"
6039 + msgstr "kon nie simboliese skakellêer %s lees nie"
6040 +
6041 + #, c-format
6042 + msgid "could not read object %s for symlink %s"
6043 + msgstr "kon nie objek %s vir simboliese skakel %s lees nie"
6044 +
6045 + msgid ""
6046 + "combined diff formats ('-c' and '--cc') are not supported in\n"
6047 + "directory diff mode ('-d' and '--dir-diff')."
6048 + msgstr ""
6049 + "gekombineerde diff-formate ('-c' en '--cc') word nie ondersteun in\n"
6050 + "gids-diff-modus ('-d' en '--dir-diff') nie."
6051 +
6052 + #, c-format
6053 + msgid "both files modified: '%s' and '%s'."
6054 + msgstr "albei lêers gewysig: '%s' en '%s'."
6055 +
6056 + msgid "working tree file has been left."
6057 + msgstr "werkboomlêer is agtergelaat."
6058 +
6059 + #, c-format
6060 + msgid "could not copy '%s' to '%s'"
6061 + msgstr "kon nie '%s' na '%s' kopieer nie"
6062 +
6063 + #, c-format
6064 + msgid "temporary files exist in '%s'."
6065 + msgstr "tydelike lêers bestaan in '%s'."
6066 +
6067 + msgid "you may want to cleanup or recover these."
6068 + msgstr "u wil dit dalk opruim of herstel."
6069 +
6070 + #, c-format
6071 + msgid "failed: %d"
6072 + msgstr "misluk: %d"
6073 +
6074 + msgid "use `diff.guitool` instead of `diff.tool`"
6075 + msgstr "gebruik `diff.guitool` in plaas van `diff.tool`"
6076 +
6077 + msgid "perform a full-directory diff"
6078 + msgstr "voer 'n volledige gids-diff uit"
6079 +
6080 + msgid "do not prompt before launching a diff tool"
6081 + msgstr "moenie vra voordat 'n diff-hulpmiddel gelanseer word nie"
6082 +
6083 + msgid "use symlinks in dir-diff mode"
6084 + msgstr "gebruik simboliese skakels in dir-diff-modus"
6085 +
6086 + msgid "tool"
6087 + msgstr "hulpmiddel"
6088 +
6089 + msgid "use the specified diff tool"
6090 + msgstr "gebruik die gespesifiseerde diff-hulpmiddel"
6091 +
6092 + msgid "print a list of diff tools that may be used with `--tool`"
6093 + msgstr "druk 'n lys van diff-hulpmiddels wat met `--tool` gebruik kan word"
6094 +
6095 + msgid ""
6096 + "make 'git-difftool' exit when an invoked diff tool returns a non-zero exit "
6097 + "code"
6098 + msgstr ""
6099 + "laat 'git-difftool' afsluit wanneer 'n opgeroepte diff-hulpmiddel 'n "
6100 + "afsluitkode anders as nul teruggee"
6101 +
6102 + msgid "specify a custom command for viewing diffs"
6103 + msgstr "spesifiseer 'n pasgemaakte opdrag om verskille te bekyk"
6104 +
6105 + msgid "passed to `diff`"
6106 + msgstr "aan `diff` deurgegee"
6107 +
6108 + msgid "difftool requires worktree or --no-index"
6109 + msgstr "difftool vereis 'n werkboom of --no-index"
6110 +
6111 + msgid "no <tool> given for --tool=<tool>"
6112 + msgstr "geen <hulpmiddel> vir --tool=<hulpmiddel> gegee nie"
6113 +
6114 + msgid "no <cmd> given for --extcmd=<cmd>"
6115 + msgstr "geen <opdrag> vir --extcmd=<opdrag> gegee nie"
6116 +
6117 + msgid "git fast-export [<options>] [<revision-range>] [[--] <path>...]"
6118 + msgstr "git fast-export [<opsies>] [<hersieningsreeks>] [[--] <pad>...]"
6119 +
6120 + #, c-format
6121 + msgid "unknown %s mode: %s"
6122 + msgstr "onbekende %s-modus: %s"
6123 +
6124 + #, c-format
6125 + msgid "unknown tag-of-filtered mode: %s"
6126 + msgstr "onbekende tag-of-filtered-modus: %s"
6127 +
6128 + #, c-format
6129 + msgid "unknown reencoding mode: %s"
6130 + msgstr "onbekende herkoderingsmodus: %s"
6131 +
6132 + #, c-format
6133 + msgid "could not read blob %s"
6134 + msgstr "kon nie blob %s lees nie"
6135 +
6136 + #, c-format
6137 + msgid "oid mismatch in blob %s"
6138 + msgstr "oid stem nie ooreen in blob %s nie"
6139 +
6140 + #, c-format
6141 + msgid "could not write blob '%s'"
6142 + msgstr "kon nie blob '%s' skryf nie"
6143 +
6144 + #, c-format
6145 + msgid "unexpected comparison status '%c' for %s, %s"
6146 + msgstr "onverwagte vergelykingstatus '%c' vir %s, %s"
6147 +
6148 + msgid "none"
6149 + msgstr "geen"
6150 +
6151 + #, c-format
6152 + msgid "could not find author in commit %s"
6153 + msgstr "kon nie outeur in vaslegging %s vind nie"
6154 +
6155 + #, c-format
6156 + msgid "could not find committer in commit %s"
6157 + msgstr "kon nie vaslegger in vaslegging %s vind nie"
6158 +
6159 + #, c-format
6160 + msgid ""
6161 + "encountered commit-specific encoding %.*s in commit %s; use --reencode=[yes|"
6162 + "no] to handle it"
6163 + msgstr ""
6164 + "vaslegging-spesifieke kodering %.*s in vaslegging %s teëgekom; gebruik --"
6165 + "reencode=[yes|no] om dit te hanteer"
6166 +
6167 + #, c-format
6168 + msgid "exporting %<PRIuMAX> signature(s) for commit %s"
6169 + msgstr "voer %<PRIuMAX> handtekening(e) vir vaslegging %s uit"
6170 +
6171 + #, c-format
6172 + msgid "stripping signature(s) from commit %s"
6173 + msgstr "stroop handtekening(e) van vaslegging %s af"
6174 +
6175 + #, c-format
6176 + msgid "encountered signed commit %s; use --signed-commits=<mode> to handle it"
6177 + msgstr ""
6178 + "ondertekende vaslegging %s teëgekom; gebruik --signed-commits=<modus> om dit "
6179 + "te hanteer"
6180 +
6181 + #, c-format
6182 + msgid ""
6183 + "omitting tag %s,\n"
6184 + "since tags of trees (or tags of tags of trees, etc.) are not supported."
6185 + msgstr ""
6186 + "laat etiket %s weg,\n"
6187 + "aangesien etikette van bome (of etikette van etikette van bome, ens.) nie "
6188 + "ondersteun word nie."
6189 +
6190 + #, c-format
6191 + msgid "could not read tag %s"
6192 + msgstr "kon nie etiket %s lees nie"
6193 +
6194 + #, c-format
6195 + msgid "exporting signed tag %s"
6196 + msgstr "voer ondertekende etiket %s uit"
6197 +
6198 + #, c-format
6199 + msgid "stripping signature from tag %s"
6200 + msgstr "stroop handtekening van etiket %s af"
6201 +
6202 + #, c-format
6203 + msgid "encountered signed tag %s; use --signed-tags=<mode> to handle it"
6204 + msgstr ""
6205 + "ondertekende etiket %s teëgekom; gebruik --signed-tags=<modus> om dit te "
6206 + "hanteer"
6207 +
6208 + #, c-format
6209 + msgid ""
6210 + "tag %s tags unexported object; use --tag-of-filtered-object=<mode> to handle "
6211 + "it"
6212 + msgstr ""
6213 + "etiket %s etiketteer 'n onuitgevoerde objek; gebruik --tag-of-filtered-"
6214 + "object=<modus> om dit te hanteer"
6215 +
6216 + msgid "cannot export nested tags unless --mark-tags is specified."
6217 + msgstr ""
6218 + "kan nie geneste etikette uitvoer nie, tensy --mark-tags gespesifiseer is."
6219 +
6220 + #, c-format
6221 + msgid "tag %s points nowhere?"
6222 + msgstr "etiket %s wys nêrens heen nie?"
6223 +
6224 + #, c-format
6225 + msgid "%s: unexpected object of type %s, skipping."
6226 + msgstr "%s: onverwagte objek van tipe %s, word oorgeslaan."
6227 +
6228 + #, c-format
6229 + msgid "tag points to object of unexpected type %s, skipping."
6230 + msgstr "etiket wys na objek van onverwagte tipe %s, word oorgeslaan."
6231 +
6232 + #, c-format
6233 + msgid "unable to open marks file %s for writing."
6234 + msgstr "kan nie merkelêer %s vir skryf oopmaak nie."
6235 +
6236 + #, c-format
6237 + msgid "unable to write marks file %s."
6238 + msgstr "kan nie merkelêer %s skryf nie."
6239 +
6240 + #, c-format
6241 + msgid "corrupt mark line: %s"
6242 + msgstr "korrupte merkreël: %s"
6243 +
6244 + #, c-format
6245 + msgid "object not found: %s"
6246 + msgstr "objek nie gevind nie: %s"
6247 +
6248 + #, c-format
6249 + msgid "not a commit? can't happen: %s"
6250 + msgstr "nie 'n vaslegging nie? kan nie gebeur nie: %s"
6251 +
6252 + #, c-format
6253 + msgid "object %s already has a mark"
6254 + msgstr "objek %s het reeds 'n merk"
6255 +
6256 + msgid "--anonymize-map token cannot be empty"
6257 + msgstr "teken --anonymize-map kan nie leeg wees nie"
6258 +
6259 + msgid "show progress after <n> objects"
6260 + msgstr "wys vordering ná <n> objekte"
6261 +
6262 + msgid "select handling of signed tags"
6263 + msgstr "kies hantering van ondertekende etikette"
6264 +
6265 + msgid "select handling of signed commits"
6266 + msgstr "kies hantering van ondertekende vasleggings"
6267 +
6268 + msgid "select handling of tags that tag filtered objects"
6269 + msgstr "kies hantering van etikette wat gefiltreerde objekte etiketteer"
6270 +
6271 + msgid "select handling of commit messages in an alternate encoding"
6272 + msgstr "kies hantering van vasleggingsboodskappe in 'n alternatiewe kodering"
6273 +
6274 + msgid "dump marks to this file"
6275 + msgstr "stort merke na hierdie lêer"
6276 +
6277 + msgid "import marks from this file"
6278 + msgstr "voer merke vanaf hierdie lêer in"
6279 +
6280 + msgid "import marks from this file if it exists"
6281 + msgstr "voer merke vanaf hierdie lêer in indien dit bestaan"
6282 +
6283 + msgid "fake a tagger when tags lack one"
6284 + msgstr "vervals 'n etiketteerder wanneer etikette een kortkom"
6285 +
6286 + msgid "output full tree for each commit"
6287 + msgstr "voer die volledige boom vir elke vaslegging uit"
6288 +
6289 + msgid "use the done feature to terminate the stream"
6290 + msgstr "gebruik die done-funksie om die stroom te beëindig"
6291 +
6292 + msgid "skip output of blob data"
6293 + msgstr "slaan uitvoer van blobdata oor"
6294 +
6295 + msgid "refspec"
6296 + msgstr "verwysingspesifikasie"
6297 +
6298 + msgid "apply refspec to exported refs"
6299 + msgstr "pas verwysingspesifikasie toe op uitgevoerde verwysings"
6300 +
6301 + msgid "anonymize output"
6302 + msgstr "anonimiseer uitvoer"
6303 +
6304 + msgid "from:to"
6305 + msgstr "van:na"
6306 +
6307 + msgid "convert <from> to <to> in anonymized output"
6308 + msgstr "skakel <van> om na <na> in geanonimiseerde uitvoer"
6309 +
6310 + msgid "reference parents which are not in fast-export stream by object id"
6311 + msgstr ""
6312 + "verwys na ouers wat nie in die fast-export-stroom is nie volgens objek-id"
6313 +
6314 + msgid "show original object ids of blobs/commits"
6315 + msgstr "wys oorspronklike objek-id's van blobs/vasleggings"
6316 +
6317 + msgid "label tags with mark ids"
6318 + msgstr "benoem etikette met merk-id's"
6319 +
6320 + #, c-format
6321 + msgid "can't write crash report %s"
6322 + msgstr "kan nie omvalverslag %s skryf nie"
6323 +
6324 + #, c-format
6325 + msgid "fast-import: dumping crash report to %s\n"
6326 + msgstr "fast-import: stort omvalverslag na %s\n"
6327 +
6328 + #, c-format
6329 + msgid "mark :%<PRIuMAX> not declared"
6330 + msgstr "merk :%<PRIuMAX> is nie verklaar nie"
6331 +
6332 + #, c-format
6333 + msgid "invalid attempt to create duplicate branch: %s"
6334 + msgstr "ongeldige poging om duplikaattak te skep: %s"
6335 +
6336 + #, c-format
6337 + msgid "branch name doesn't conform to Git standards: %s"
6338 + msgstr "taknaam voldoen nie aan Git-standaarde nie: %s"
6339 +
6340 + msgid "internal consistency error creating the index"
6341 + msgstr "interne konsekwentheidsfout tydens skep van die indeks"
6342 +
6343 + msgid "cannot create keep file"
6344 + msgstr "kan nie keep-lêer skep nie"
6345 +
6346 + msgid "failed to write keep file"
6347 + msgstr "kon nie keep-lêer skryf nie"
6348 +
6349 + msgid "cannot store pack file"
6350 + msgstr "kan nie paklêer stoor nie"
6351 +
6352 + msgid "cannot store index file"
6353 + msgstr "kan nie indekslêer stoor nie"
6354 +
6355 + #, c-format
6356 + msgid "failed seeking to start of '%s'"
6357 + msgstr "kon nie na die begin van '%s' soek nie"
6358 +
6359 + #, c-format
6360 + msgid "core Git rejected index %s"
6361 + msgstr "kern-Git het indeks %s verwerp"
6362 +
6363 + msgid "cannot truncate pack to skip duplicate"
6364 + msgstr "kan nie pak afknip om duplikaat oor te slaan nie"
6365 +
6366 + #, c-format
6367 + msgid "EOF in data (%<PRIuMAX> bytes remaining)"
6368 + msgstr "EOF in data (%<PRIuMAX> grepe oor)"
6369 +
6370 + #, c-format
6371 + msgid "unexpected deflate failure: %d"
6372 + msgstr "onverwagte deflate-mislukking: %d"
6373 +
6374 + #, c-format
6375 + msgid "not a tree: %s"
6376 + msgstr "nie 'n boom nie: %s"
6377 +
6378 + #, c-format
6379 + msgid "can't load tree %s"
6380 + msgstr "kan nie boom %s laai nie"
6381 +
6382 + #, c-format
6383 + msgid "corrupt mode in %s"
6384 + msgstr "korrupte modus in %s"
6385 +
6386 + msgid "root cannot be a non-directory"
6387 + msgstr "wortel kan nie 'n nie-gids wees nie"
6388 +
6389 + msgid "empty path component found in input"
6390 + msgstr "leë padkomponent in invoer gevind"
6391 +
6392 + msgid "non-directories cannot have subtrees"
6393 + msgstr "nie-gidse kan nie subbome hê nie"
6394 +
6395 + #, c-format
6396 + msgid "dropping %s since it would point to itself (i.e. to %s)"
6397 + msgstr "laat %s val aangesien dit na homself sou wys (d.w.s. na %s)"
6398 +
6399 + #, c-format
6400 + msgid "branch %s is missing commits."
6401 + msgstr "tak %s kort vasleggings."
6402 +
6403 + #, c-format
6404 + msgid "not updating %s (new tip %s does not contain %s)"
6405 + msgstr "%s word nie bygewerk nie (nuwe punt %s bevat nie %s nie)"
6406 +
6407 + #, c-format
6408 + msgid "unable to create leading directories of %s"
6409 + msgstr "kan nie voorafgaande gidse van %s skep nie"
6410 +
6411 + #, c-format
6412 + msgid "unable to write marks file %s"
6413 + msgstr "kan nie merkelêer %s skryf nie"
6414 +
6415 + #, c-format
6416 + msgid "unable to write marks file %s: %s"
6417 + msgstr "kan nie merkelêer %s skryf nie: %s"
6418 +
6419 + #, c-format
6420 + msgid "unable to write file %s"
6421 + msgstr "kan nie lêer %s skryf nie"
6422 +
6423 + #, c-format
6424 + msgid "expected 'data n' command, found: %s"
6425 + msgstr "het 'data n'-opdrag verwag, gevind: %s"
6426 +
6427 + #, c-format
6428 + msgid "EOF in data (terminator '%s' not found)"
6429 + msgstr "EOF in data (afsluiter '%s' nie gevind nie)"
6430 +
6431 + msgid "data is too large to use in this context"
6432 + msgstr "data is te groot om in hierdie konteks te gebruik"
6433 +
6434 + #, c-format
6435 + msgid "EOF in data (%lu bytes remaining)"
6436 + msgstr "EOF in data (%lu grepe oor)"
6437 +
6438 + #, c-format
6439 + msgid "missing < in ident string: %s"
6440 + msgstr "ontbrekende < in identiteitstring: %s"
6441 +
6442 + #, c-format
6443 + msgid "missing space before < in ident string: %s"
6444 + msgstr "ontbrekende spasie voor < in identiteitstring: %s"
6445 +
6446 + #, c-format
6447 + msgid "missing > in ident string: %s"
6448 + msgstr "ontbrekende > in identiteitstring: %s"
6449 +
6450 + #, c-format
6451 + msgid "missing space after > in ident string: %s"
6452 + msgstr "ontbrekende spasie ná > in identiteitstring: %s"
6453 +
6454 + #, c-format
6455 + msgid "invalid raw date \"%s\" in ident: %s"
6456 + msgstr "ongeldige rou datum \"%s\" in identiteit: %s"
6457 +
6458 + #, c-format
6459 + msgid "invalid rfc2822 date \"%s\" in ident: %s"
6460 + msgstr "ongeldige rfc2822-datum \"%s\" in identiteit: %s"
6461 +
6462 + #, c-format
6463 + msgid "date in ident must be 'now': %s"
6464 + msgstr "datum in identiteit moet 'now' wees: %s"
6465 +
6466 + #, c-format
6467 + msgid "too large fanout (%u)"
6468 + msgstr "te groot waaier (%u)"
6469 +
6470 + #, c-format
6471 + msgid "failed to remove path %s"
6472 + msgstr "kon nie pad %s verwyder nie"
6473 +
6474 + #, c-format
6475 + msgid "no value after ':' in mark: %s"
6476 + msgstr "geen waarde ná ':' in merk nie: %s"
6477 +
6478 + #, c-format
6479 + msgid "garbage after mark: %s"
6480 + msgstr "gemors ná merk: %s"
6481 +
6482 + #, c-format
6483 + msgid "missing space after mark: %s"
6484 + msgstr "ontbrekende spasie ná merk: %s"
6485 +
6486 + #, c-format
6487 + msgid "invalid %s: %s"
6488 + msgstr "ongeldige %s: %s"
6489 +
6490 + #, c-format
6491 + msgid "NUL in %s: %s"
6492 + msgstr "NUL in %s: %s"
6493 +
6494 + #, c-format
6495 + msgid "garbage after %s: %s"
6496 + msgstr "gemors ná %s: %s"
6497 +
6498 + #, c-format
6499 + msgid "missing space after %s: %s"
6500 + msgstr "ontbrekende spasie ná %s: %s"
6501 +
6502 + #, c-format
6503 + msgid "corrupt mode: %s"
6504 + msgstr "korrupte modus: %s"
6505 +
6506 + #, c-format
6507 + msgid "invalid dataref: %s"
6508 + msgstr "ongeldige dataverwysing: %s"
6509 +
6510 + #, c-format
6511 + msgid "missing space after SHA1: %s"
6512 + msgstr "ontbrekende spasie ná SHA1: %s"
6513 +
6514 + #, c-format
6515 + msgid "Git links cannot be specified 'inline': %s"
6516 + msgstr "Git-skakels kan nie 'inline' gespesifiseer word nie: %s"
6517 +
6518 + #, c-format
6519 + msgid "not a commit (actually a %s): %s"
6520 + msgstr "nie 'n vaslegging nie (eintlik 'n %s): %s"
6521 +
6522 + #, c-format
6523 + msgid "directories cannot be specified 'inline': %s"
6524 + msgstr "gidse kan nie 'inline' gespesifiseer word nie: %s"
6525 +
6526 + #, c-format
6527 + msgid "%s not found: %s"
6528 + msgstr "%s nie gevind nie: %s"
6529 +
6530 + msgid "tree"
6531 + msgstr "boom"
6532 +
6533 + #, c-format
6534 + msgid "not a %s (actually a %s): %s"
6535 + msgstr "nie 'n %s nie (eintlik 'n %s): %s"
6536 +
6537 + #, c-format
6538 + msgid "path %s not in branch"
6539 + msgstr "pad %s is nie in tak nie"
6540 +
6541 + msgid "can't add a note on empty branch."
6542 + msgstr "kan nie 'n nota op 'n leë tak byvoeg nie."
6543 +
6544 + #, c-format
6545 + msgid "mark :%<PRIuMAX> not a commit"
6546 + msgstr "merk :%<PRIuMAX> is nie 'n vaslegging nie"
6547 +
6548 + #, c-format
6549 + msgid "not a valid commit: %s"
6550 + msgstr "nie 'n geldige vaslegging nie: %s"
6551 +
6552 + #, c-format
6553 + msgid "invalid ref name or SHA1 expression: %s"
6554 + msgstr "ongeldige verwysingsnaam of SHA1-uitdrukking: %s"
6555 +
6556 + #, c-format
6557 + msgid "not a blob (actually a %s): %s"
6558 + msgstr "nie 'n blob nie (eintlik 'n %s): %s"
6559 +
6560 + #, c-format
6561 + msgid "blob not found: %s"
6562 + msgstr "blob nie gevind nie: %s"
6563 +
6564 + #, c-format
6565 + msgid "the commit %s is corrupt"
6566 + msgstr "die vaslegging %s is korrup"
6567 +
6568 + #, c-format
6569 + msgid "can't create a branch from itself: %s"
6570 + msgstr "kan nie 'n tak van homself skep nie: %s"
6571 +
6572 + #, c-format
6573 + msgid ""
6574 + "expected gpgsig format: 'gpgsig <hash-algo> <signature-format>', got 'gpgsig "
6575 + "%s'"
6576 + msgstr ""
6577 + "verwagte gpgsig-formaat: 'gpgsig <hash-algo> <signature-format>', het "
6578 + "'gpgsig %s' gekry"
6579 +
6580 + #, c-format
6581 + msgid "unknown git hash algorithm in gpgsig: '%s'"
6582 + msgstr "onbekende Git-hutsalgoritme in gpgsig: '%s'"
6583 +
6584 + #, c-format
6585 + msgid "invalid signature format in gpgsig: '%s'"
6586 + msgstr "ongeldige handtekeningformaat in gpgsig: '%s'"
6587 +
6588 + msgid "'unknown' signature format in gpgsig"
6589 + msgstr "'unknown' handtekeningformaat in gpgsig"
6590 +
6591 + #, c-format
6592 + msgid "multiple %s signatures found, ignoring additional signature"
6593 + msgstr "veelvuldige %s-handtekeninge gevind, ignoreer bykomende handtekening"
6594 +
6595 + msgid "parse_one_signature() returned unknown hash algo"
6596 + msgstr "parse_one_signature() het 'n onbekende hutsalgoritme teruggegee"
6597 +
6598 + msgid "unknown"
6599 + msgstr "onbekend"
6600 +
6601 + #, c-format
6602 + msgid ""
6603 + "stripping invalid signature for commit '%.100s...'\n"
6604 + " allegedly by %s"
6605 + msgstr ""
6606 + "stroop ongeldige handtekening vir vaslegging '%.100s...' af\n"
6607 + " kwansuis deur %s"
6608 +
6609 + #, c-format
6610 + msgid ""
6611 + "stripping invalid signature for commit '%.*s'\n"
6612 + " allegedly by %s"
6613 + msgstr ""
6614 + "stroop ongeldige handtekening vir vaslegging '%.*s' af\n"
6615 + " kwansuis deur %s"
6616 +
6617 + #, c-format
6618 + msgid ""
6619 + "stripping invalid signature for commit\n"
6620 + " allegedly by %s"
6621 + msgstr ""
6622 + "stroop ongeldige handtekening vir vaslegging af\n"
6623 + " kwansuis deur %s"
6624 +
6625 + #, c-format
6626 + msgid ""
6627 + "replacing invalid signature for commit '%.100s...'\n"
6628 + " allegedly by %s"
6629 + msgstr ""
6630 + "vervang ongeldige handtekening vir vaslegging '%.100s...'\n"
6631 + " kwansuis deur %s"
6632 +
6633 + #, c-format
6634 + msgid ""
6635 + "replacing invalid signature for commit '%.*s'\n"
6636 + " allegedly by %s"
6637 + msgstr ""
6638 + "vervang ongeldige handtekening vir vaslegging '%.*s'\n"
6639 + " kwansuis deur %s"
6640 +
6641 + #, c-format
6642 + msgid ""
6643 + "replacing invalid signature for commit\n"
6644 + " allegedly by %s"
6645 + msgstr ""
6646 + "vervang ongeldige handtekening vir vaslegging\n"
6647 + " kwansuis deur %s"
6648 +
6649 + msgid "aborting due to invalid signature"
6650 + msgstr "staak weens ongeldige handtekening"
6651 +
6652 + msgid "signing commits in interoperability mode is unsupported"
6653 + msgstr ""
6654 + "ondertekening van vasleggings in interoperabiliteitsmodus word nie "
6655 + "ondersteun nie"
6656 +
6657 + msgid "failed to sign commit object"
6658 + msgstr "kon nie vasleggingsobjek onderteken nie"
6659 +
6660 + msgid "expected committer but didn't get one"
6661 + msgstr "het 'n vaslegger verwag, maar nie een gekry nie"
6662 +
6663 + msgid "encountered signed commit; use --signed-commits=<mode> to handle it"
6664 + msgstr ""
6665 + "ondertekende vaslegging teëgekom; gebruik --signed-commits=<modus> om dit te "
6666 + "hanteer"
6667 +
6668 + msgid "stripping a commit signature"
6669 + msgstr "stroop 'n vasleggingshandtekening af"
6670 +
6671 + msgid "importing a commit signature verbatim"
6672 + msgstr "voer 'n vasleggingshandtekening woordeliks in"
6673 +
6674 + msgid "failed to sign tag object"
6675 + msgstr "kon nie etiketobjek onderteken nie"
6676 +
6677 + #, c-format
6678 + msgid "importing a tag signature verbatim for tag '%s'"
6679 + msgstr "voer 'n etikethandtekening woordeliks in vir etiket '%s'"
6680 +
6681 + #, c-format
6682 + msgid "stripping a tag signature for tag '%s'"
6683 + msgstr "stroop 'n etikethandtekening af vir etiket '%s'"
6684 +
6685 + msgid "encountered signed tag; use --signed-tags=<mode> to handle it"
6686 + msgstr ""
6687 + "ondertekende etiket teëgekom; gebruik --signed-tags=<modus> om dit te hanteer"
6688 +
6689 + #, c-format
6690 + msgid "expected 'from' command, got '%s'"
6691 + msgstr "het 'from'-opdrag verwag, het '%s' gekry"
6692 +
6693 + msgid "can't tag an empty branch."
6694 + msgstr "kan nie 'n leë tak etiketteer nie."
6695 +
6696 + #, c-format
6697 + msgid "not a valid object: %s"
6698 + msgstr "nie 'n geldige objek nie: %s"
6699 +
6700 + msgid "write to frontend failed"
6701 + msgstr "skryf na voorkant het misluk"
6702 +
6703 + #, c-format
6704 + msgid "can't read object %s"
6705 + msgstr "kan nie objek %s lees nie"
6706 +
6707 + #, c-format
6708 + msgid "object %s is a %s but a blob was expected."
6709 + msgstr "objek %s is 'n %s, maar 'n blob is verwag."
6710 +
6711 + #, c-format
6712 + msgid "not a mark: %s"
6713 + msgstr "nie 'n merk nie: %s"
6714 +
6715 + #, c-format
6716 + msgid "unknown mark: %s"
6717 + msgstr "onbekende merk: %s"
6718 +
6719 + #, c-format
6720 + msgid "garbage after SHA1: %s"
6721 + msgstr "gemors ná SHA1: %s"
6722 +
6723 + #, c-format
6724 + msgid "not a tree-ish: %s"
6725 + msgstr "nie 'n boomagtige nie: %s"
6726 +
6727 + #, c-format
6728 + msgid "can't load object %s"
6729 + msgstr "kan nie objek %s laai nie"
6730 +
6731 + #, c-format
6732 + msgid "invalid SHA1 in tag: %s"
6733 + msgstr "ongeldige SHA1 in etiket: %s"
6734 +
6735 + #, c-format
6736 + msgid "invalid SHA1 in commit: %s"
6737 + msgstr "ongeldige SHA1 in vaslegging: %s"
6738 +
6739 + #, c-format
6740 + msgid "missing from marks for submodule '%s'"
6741 + msgstr "ontbrekende van-merke vir submodule '%s'"
6742 +
6743 + #, c-format
6744 + msgid "missing to marks for submodule '%s'"
6745 + msgstr "ontbrekende na-merke vir submodule '%s'"
6746 +
6747 + #, c-format
6748 + msgid "missing space after tree-ish: %s"
6749 + msgstr "ontbrekende spasie ná boomagtige: %s"
6750 +
6751 + #, c-format
6752 + msgid "not in a commit: %s"
6753 + msgstr "nie in 'n vaslegging nie: %s"
6754 +
6755 + #, c-format
6756 + msgid "expected 'mark' command, got %s"
6757 + msgstr "het 'mark'-opdrag verwag, het %s gekry"
6758 +
6759 + #, c-format
6760 + msgid "expected 'to' command, got %s"
6761 + msgstr "het 'to'-opdrag verwag, het %s gekry"
6762 +
6763 + msgid "only one import-marks command allowed per stream"
6764 + msgstr "slegs een import-marks-opdrag word per stroom toegelaat"
6765 +
6766 + #, c-format
6767 + msgid "unknown --date-format argument %s"
6768 + msgstr "onbekende argument --date-format %s"
6769 +
6770 + #, c-format
6771 + msgid "%s: argument must be a non-negative integer"
6772 + msgstr "%s: argument moet 'n nie-negatiewe heelgetal wees"
6773 +
6774 + #, c-format
6775 + msgid "--depth cannot exceed %u"
6776 + msgstr "--depth kan nie %u oorskry nie"
6777 +
6778 + #, c-format
6779 + msgid "--cat-blob-fd cannot exceed %d"
6780 + msgstr "--cat-blob-fd kan nie %d oorskry nie"
6781 +
6782 + msgid "expected format name:filename for submodule rewrite option"
6783 + msgstr "verwagte formaat naam:lêernaam vir submodule-herskryfopsie"
6784 +
6785 + msgid "--max-pack-size: argument must be a non-negative integer"
6786 + msgstr "--max-pack-size: argument moet 'n nie-negatiewe heelgetal wees"
6787 +
6788 + #, c-format
6789 + msgid "max-pack-size is now in bytes, assuming --max-pack-size=%lum"
6790 + msgstr "max-pack-size is nou in grepe, neem --max-pack-size=%lum aan"
6791 +
6792 + msgid "minimum max-pack-size is 1 MiB"
6793 + msgstr "minimum max-pack-size is 1 MiB"
6794 +
6795 + msgid "--big-file-threshold: argument must be a non-negative integer"
6796 + msgstr "--big-file-threshold: argument moet 'n nie-negatiewe heelgetal wees"
6797 +
6798 + #, c-format
6799 + msgid "unknown --signed-commits mode '%s'"
6800 + msgstr "onbekende modus --signed-commits '%s'"
6801 +
6802 + #, c-format
6803 + msgid "unknown --signed-tags mode '%s'"
6804 + msgstr "onbekende modus --signed-tags '%s'"
6805 +
6806 + #, c-format
6807 + msgid "feature '%s' forbidden in input without --allow-unsafe-features"
6808 + msgstr "funksie '%s' is verbode in invoer sonder --allow-unsafe-features"
6809 +
6810 + #, c-format
6811 + msgid "got feature command '%s' after data command"
6812 + msgstr "funksie-opdrag '%s' ná data-opdrag ontvang"
6813 +
6814 + #, c-format
6815 + msgid "this version of fast-import does not support feature %s."
6816 + msgstr "hierdie weergawe van fast-import ondersteun nie funksie %s nie."
6817 +
6818 + #, c-format
6819 + msgid "got option command '%s' after data command"
6820 + msgstr "opsie-opdrag '%s' ná data-opdrag ontvang"
6821 +
6822 + #, c-format
6823 + msgid "this version of fast-import does not support option: %s"
6824 + msgstr "hierdie weergawe van fast-import ondersteun nie opsie nie: %s"
6825 +
6826 + msgid "git fast-import [<options>]"
6827 + msgstr "git fast-import [<opsies>]"
6828 +
6829 + msgid "Common"
6830 + msgstr "Algemeen"
6831 +
6832 + msgid "format of the commit/tag dates"
6833 + msgstr "formaat van die vaslegging-/etiketdatums"
6834 +
6835 + msgid "display some basic statistics (objects, packfiles and memory)"
6836 + msgstr "vertoon 'n paar basiese statistieke (objekte, paklêers en geheue)"
6837 +
6838 + msgid "disable the output shown by --stats"
6839 + msgstr "deaktiveer die afvoer wat deur --stats gewys word"
6840 +
6841 + msgid "force updating modified existing branches"
6842 + msgstr "dwing die bywerking van gewysigde bestaande takke af"
6843 +
6844 + msgid "require a terminating 'done' command"
6845 + msgstr "vereis 'n afsluitende opdrag 'done'"
6846 +
6847 + msgid "maximum size of each output pack file"
6848 + msgstr "maksimum grootte van elke uitvoerpaklêer"
6849 +
6850 + msgid "maximum size of a blob that will be deltified"
6851 + msgstr "maksimum grootte van 'n blob wat as delta gestoor sal word"
6852 +
6853 + msgid "maximum delta depth"
6854 + msgstr "maksimum delta-diepte"
6855 +
6856 + msgid "maximum number of branches to maintain active"
6857 + msgstr "maksimum aantal takke om aktief te hou"
6858 +
6859 + msgid "Marks"
6860 + msgstr "Merke"
6861 +
6862 + msgid "import marks from <file>"
6863 + msgstr "voer merke vanaf <lêer> in"
6864 +
6865 + msgid "import marks from <file> if it exists"
6866 + msgstr "voer merke vanaf <lêer> in indien dit bestaan"
6867 +
6868 + msgid "dump marks to <file>"
6869 + msgstr "stort merke na <lêer>"
6870 +
6871 + msgid "are --(import|export)-marks= paths relative to '.git/info/fast-import'?"
6872 + msgstr ""
6873 + "is paaie van --(import|export)-marks= relatief tot '.git/info/fast-import'?"
6874 +
6875 + msgid "Submodule rewrite"
6876 + msgstr "Herskrywing van submodules"
6877 +
6878 + msgid "name:filename"
6879 + msgstr "naam:lêernaam"
6880 +
6881 + msgid "rewrite object IDs for submodule <name> from <filename>"
6882 + msgstr "herskryf objek-ID's vir submodule <naam> vanaf <lêernaam>"
6883 +
6884 + msgid "rewrite object IDs for submodule <name> to <filename>"
6885 + msgstr "herskryf objek-ID's vir submodule <naam> na <lêernaam>"
6886 +
6887 + msgid "Signing"
6888 + msgstr "Ondertekening"
6889 +
6890 + msgid "how to handle signed commits"
6891 + msgstr "hoe om ondertekende vasleggings te hanteer"
6892 +
6893 + msgid "how to handle signed tags"
6894 + msgstr "hoe om ondertekende etikette te hanteer"
6895 +
6896 + msgid "Advanced"
6897 + msgstr "Gevorderd"
6898 +
6899 + msgid "allow unsafe mark commands from the stream"
6900 + msgstr "laat onveilige merkopdragte vanaf die stroom toe"
6901 +
6902 + msgid "dump edge commits to <file>"
6903 + msgstr "stort randvasleggings na <lêer>"
6904 +
6905 + msgid "fd"
6906 + msgstr "lb"
6907 +
6908 + msgid "write some responses to <fd> instead of stdout"
6909 + msgstr "skryf sommige antwoorde na <lb> in plaas van stdout"
6910 +
6911 + #, c-format
6912 + msgid "unsupported command: %s"
6913 + msgstr "nie-ondersteunde opdrag: %s"
6914 +
6915 + msgid "stream ends early"
6916 + msgstr "stroom eindig vroeg"
6917 +
6918 + #, c-format
6919 + msgid "Lockfile created but not reported: %s"
6920 + msgstr "Sluitlêer geskep maar nie gerapporteer nie: %s"
6921 +
6922 + msgid "git fetch [<options>] [<repository> [<refspec>...]]"
6923 + msgstr "git fetch [<opsies>] [<bewaarplek> [<verwysingspesifikasie>...]]"
6924 +
6925 + msgid "git fetch [<options>] <group>"
6926 + msgstr "git fetch [<opsies>] <groep>"
6927 +
6928 + msgid "git fetch --multiple [<options>] [(<repository>|<group>)...]"
6929 + msgstr "git fetch --multiple [<opsies>] [(<bewaarplek>|<groep>)...]"
6930 +
6931 + msgid "git fetch --all [<options>]"
6932 + msgstr "git fetch --all [<opsies>]"
6933 +
6934 + msgid "fetch.parallel cannot be negative"
6935 + msgstr "fetch.parallel kan nie negatief wees nie"
6936 +
6937 + #, c-format
6938 + msgid "unrecognized fetch.followRemoteHEAD value '%s' ignored"
6939 + msgstr "onherkende waarde '%s' vir fetch.followRemoteHEAD geïgnoreer"
6940 +
6941 + msgid "couldn't find remote ref HEAD"
6942 + msgstr "kon nie afgeleë verwysing HEAD vind nie"
6943 +
6944 + #, c-format
6945 + msgid "From %.*s\n"
6946 + msgstr "Vanaf %.*s\n"
6947 +
6948 + #, c-format
6949 + msgid "object %s not found"
6950 + msgstr "objek %s nie gevind nie"
6951 +
6952 + msgid "[up to date]"
6953 + msgstr "[op datum]"
6954 +
6955 + msgid "[rejected]"
6956 + msgstr "[verwerp]"
6957 +
6958 + msgid "can't fetch into checked-out branch"
6959 + msgstr "kan nie in 'n uitgecheckte tak haal nie"
6960 +
6961 + msgid "[tag update]"
6962 + msgstr "[etiketbywerking]"
6963 +
6964 + msgid "unable to update local ref"
6965 + msgstr "kan nie plaaslike verwysing bywerk nie"
6966 +
6967 + msgid "would clobber existing tag"
6968 + msgstr "sou bestaande etiket oorskryf"
6969 +
6970 + msgid "[new tag]"
6971 + msgstr "[nuwe etiket]"
6972 +
6973 + msgid "[new branch]"
6974 + msgstr "[nuwe tak]"
6975 +
6976 + msgid "[new ref]"
6977 + msgstr "[nuwe verwysing]"
6978 +
6979 + msgid "forced update"
6980 + msgstr "geforseerde bywerking"
6981 +
6982 + msgid "non-fast-forward"
6983 + msgstr "nie-vooruitspoel"
6984 +
6985 + #, c-format
6986 + msgid "cannot open '%s'"
6987 + msgstr "kan nie '%s' oopmaak nie"
6988 +
6989 + msgid ""
6990 + "fetch normally indicates which branches had a forced update,\n"
6991 + "but that check has been disabled; to re-enable, use '--show-forced-updates'\n"
6992 + "flag or run 'git config fetch.showForcedUpdates true'"
6993 + msgstr ""
6994 + "haal dui gewoonlik aan watter takke 'n geforseerde bywerking gehad het,\n"
6995 + "maar daardie kontrole is gedeaktiveer; om dit weer te aktiveer, gebruik die\n"
6996 + "'--show-forced-updates'-vlag of voer 'git config fetch.showForcedUpdates "
6997 + "true' uit"
6998 +
6999 + #, c-format
7000 + msgid ""
7001 + "it took %.2f seconds to check forced updates; you can use\n"
7002 + "'--no-show-forced-updates' or run 'git config fetch.showForcedUpdates "
7003 + "false'\n"
7004 + "to avoid this check\n"
7005 + msgstr ""
7006 + "dit het %.2f sekondes geneem om geforseerde bywerkings na te gaan; u kan\n"
7007 + "'--no-show-forced-updates' gebruik of 'git config fetch.showForcedUpdates "
7008 + "false'\n"
7009 + "uitvoer om hierdie kontrole te vermy\n"
7010 +
7011 + #, c-format
7012 + msgid "%s did not send all necessary objects"
7013 + msgstr "%s het nie alle nodige objekte gestuur nie"
7014 +
7015 + #, c-format
7016 + msgid "rejected %s because shallow roots are not allowed to be updated"
7017 + msgstr "%s verwerp omdat vlak wortels nie bygewerk mag word nie"
7018 +
7019 + msgid "[deleted]"
7020 + msgstr "[geskrap]"
7021 +
7022 + msgid "(none)"
7023 + msgstr "(geen)"
7024 +
7025 + #, c-format
7026 + msgid "refusing to fetch into branch '%s' checked out at '%s'"
7027 + msgstr "weier om te haal in tak '%s' wat by '%s' uitgecheck is"
7028 +
7029 + #, c-format
7030 + msgid "option \"%s\" value \"%s\" is not valid for %s"
7031 + msgstr "opsie \"%s\" se waarde \"%s\" is nie geldig vir %s nie"
7032 +
7033 + #, c-format
7034 + msgid "option \"%s\" is ignored for %s"
7035 + msgstr "opsie \"%s\" word vir %s geïgnoreer"
7036 +
7037 + #, c-format
7038 + msgid "the object %s does not exist"
7039 + msgstr "die objek %s bestaan nie"
7040 +
7041 + #, c-format
7042 + msgid "ignoring %s=%s because it does not match any refs"
7043 + msgstr "ignoreer %s=%s omdat dit nie by enige verwysings pas nie"
7044 +
7045 + #, c-format
7046 + msgid "ignoring %s because the protocol does not support it"
7047 + msgstr "ignoreer %s omdat die protokol dit nie ondersteun nie"
7048 +
7049 + #, c-format
7050 + msgid ""
7051 + "Run 'git remote set-head %s %s' to follow the change, or modify\n"
7052 + "either of the 'remote.%s.followRemoteHEAD' or 'fetch.followRemoteHEAD'\n"
7053 + "configuration variables to handle the situation differently.\n"
7054 + "\n"
7055 + "Using this specific setting\n"
7056 + "\n"
7057 + " git config set remote.%s.followRemoteHEAD warn-if-not-%s\n"
7058 + "\n"
7059 + "will suppress the warning until the remote changes HEAD to something else."
7060 + msgstr ""
7061 + "Voer 'git remote set-head %s %s' uit om die verandering te volg, of wysig\n"
7062 + "een van die konfigurasieveranderlikes 'remote.%s.followRemoteHEAD' of\n"
7063 + "'fetch.followRemoteHEAD' om die situasie anders te hanteer.\n"
7064 + "\n"
7065 + "Die gebruik van hierdie spesifieke instelling\n"
7066 + "\n"
7067 + " git config set remote.%s.followRemoteHEAD warn-if-not-%s\n"
7068 + "\n"
7069 + "sal die waarskuwing onderdruk totdat die afgeleë HEAD na iets anders "
7070 + "verander."
7071 +
7072 + msgid ""
7073 + "You're on a case-insensitive filesystem, and the remote you are\n"
7074 + "trying to fetch from has references that only differ in casing. It\n"
7075 + "is impossible to store such references with the 'files' backend. You\n"
7076 + "can either accept this as-is, in which case you won't be able to\n"
7077 + "store all remote references on disk. Or you can alternatively\n"
7078 + "migrate your repository to use the 'reftable' backend with the\n"
7079 + "following command:\n"
7080 + "\n"
7081 + " git refs migrate --ref-format=reftable\n"
7082 + "\n"
7083 + "Please keep in mind that not all implementations of Git support this\n"
7084 + "new format yet. So if you use tools other than Git to access this\n"
7085 + "repository it may not be an option to migrate to reftables.\n"
7086 + msgstr ""
7087 + "Jy is op 'n hoofletter-onsensitiewe lêerstelsel, en die afgeleë waarvandaan\n"
7088 + "jy probeer haal, het verwysings wat slegs in hoofletters verskil. Dit is\n"
7089 + "onmoontlik om sulke verwysings met die 'files'-agterkant te stoor. Jy kan\n"
7090 + "dit óf aanvaar soos dit is, in welke geval jy nie alle afgeleë verwysings\n"
7091 + "op skyf sal kan stoor nie. Of jy kan alternatiewelik jou bewaarplek migreer\n"
7092 + "om die 'reftable'-agterkant te gebruik met die volgende opdrag:\n"
7093 + "\n"
7094 + " git refs migrate --ref-format=reftable\n"
7095 + "\n"
7096 + "Hou asseblief in gedagte dat nog nie alle implementerings van Git hierdie\n"
7097 + "nuwe formaat ondersteun nie. As jy dus ander hulpmiddels as Git gebruik om\n"
7098 + "toegang tot hierdie bewaarplek te kry, is migrasie na reftables dalk nie 'n "
7099 + "opsie nie.\n"
7100 +
7101 + #, c-format
7102 + msgid ""
7103 + "some local refs could not be updated; try running\n"
7104 + " 'git remote prune %s' to remove any old, conflicting branches"
7105 + msgstr ""
7106 + "sommige plaaslike verwysings kon nie bygewerk word nie; probeer\n"
7107 + " 'git remote prune %s' uitvoer om enige ou, botsende takke te verwyder"
7108 +
7109 + #, c-format
7110 + msgid "fetching ref %s failed: %s"
7111 + msgstr "haal van verwysing %s het misluk: %s"
7112 +
7113 + msgid "multiple branches detected, incompatible with --set-upstream"
7114 + msgstr "veelvuldige takke bespeur, onversoenbaar met --set-upstream"
7115 +
7116 + #, c-format
7117 + msgid ""
7118 + "could not set upstream of HEAD to '%s' from '%s' when it does not point to "
7119 + "any branch."
7120 + msgstr ""
7121 + "kon nie stroomop van HEAD na '%s' vanaf '%s' stel nie wanneer dit nie na "
7122 + "enige tak wys nie."
7123 +
7124 + msgid "not setting upstream for a remote remote-tracking branch"
7125 + msgstr "stel nie stroomop vir 'n afgeleë afgeleë volgtak nie"
7126 +
7127 + msgid "not setting upstream for a remote tag"
7128 + msgstr "stel nie stroomop vir 'n afgeleë etiket nie"
7129 +
7130 + msgid "unknown branch type"
7131 + msgstr "onbekende taksoort"
7132 +
7133 + msgid ""
7134 + "no source branch found;\n"
7135 + "you need to specify exactly one branch with the --set-upstream option"
7136 + msgstr ""
7137 + "geen brontak gevind nie;\n"
7138 + "jy moet presies een tak met die opsie --set-upstream spesifiseer"
7139 +
7140 + #, c-format
7141 + msgid "Fetching %s\n"
7142 + msgstr "Haal %s\n"
7143 +
7144 + #, c-format
7145 + msgid "could not fetch %s"
7146 + msgstr "kon nie %s haal nie"
7147 +
7148 + #, c-format
7149 + msgid "could not fetch '%s' (exit code: %d)\n"
7150 + msgstr "kon nie '%s' haal nie (uittreekode: %d)\n"
7151 +
7152 + msgid ""
7153 + "no remote repository specified; please specify either a URL or a\n"
7154 + "remote name from which new revisions should be fetched"
7155 + msgstr ""
7156 + "geen afgeleë bewaarplek gespesifiseer nie; spesifiseer asseblief 'n URL of\n"
7157 + "'n afgeleë naam waarvandaan nuwe revisies gehaal moet word"
7158 +
7159 + msgid "you need to specify a tag name"
7160 + msgstr "jy moet 'n etiketnaam spesifiseer"
7161 +
7162 + msgid "fetch from all remotes"
7163 + msgstr "haal van alle afgeleës"
7164 +
7165 + msgid "set upstream for git pull/fetch"
7166 + msgstr "stel stroomop vir git pull/fetch"
7167 +
7168 + msgid "append to .git/FETCH_HEAD instead of overwriting"
7169 + msgstr "voeg by .git/FETCH_HEAD by in plaas daarvan om te oorskryf"
7170 +
7171 + msgid "use atomic transaction to update references"
7172 + msgstr "gebruik 'n atomiese transaksie om verwysings by te werk"
7173 +
7174 + msgid "path to upload pack on remote end"
7175 + msgstr "pad na upload-pack aan die afgeleë kant"
7176 +
7177 + msgid "force overwrite of local reference"
7178 + msgstr "dwing oorskrywing van plaaslike verwysing af"
7179 +
7180 + msgid "fetch from multiple remotes"
7181 + msgstr "haal van veelvuldige afgeleës"
7182 +
7183 + msgid "fetch all tags and associated objects"
7184 + msgstr "haal alle etikette en geassosieerde objekte"
7185 +
7186 + msgid "do not fetch all tags (--no-tags)"
7187 + msgstr "moenie alle etikette haal nie (--no-tags)"
7188 +
7189 + msgid "number of submodules fetched in parallel"
7190 + msgstr "aantal submodules wat parallel gehaal word"
7191 +
7192 + msgid "modify the refspec to place all refs within refs/prefetch/"
7193 + msgstr ""
7194 + "wysig die verwysingspesifikasie om alle verwysings binne refs/prefetch/ te "
7195 + "plaas"
7196 +
7197 + msgid "prune remote-tracking branches no longer on remote"
7198 + msgstr "snoei afgeleë volgtakke wat nie meer op die afgeleë is nie"
7199 +
7200 + msgid "prune local tags no longer on remote and clobber changed tags"
7201 + msgstr ""
7202 + "snoei plaaslike etikette wat nie meer op die afgeleë is nie en oorskryf "
7203 + "veranderde etikette"
7204 +
7205 + msgid "on-demand"
7206 + msgstr "op-aanvraag"
7207 +
7208 + msgid "control recursive fetching of submodules"
7209 + msgstr "beheer rekursiewe haal van submodules"
7210 +
7211 + msgid "write fetched references to the FETCH_HEAD file"
7212 + msgstr "skryf gehaalde verwysings na die FETCH_HEAD-lêer"
7213 +
7214 + msgid "keep downloaded pack"
7215 + msgstr "hou afgelaaide pak"
7216 +
7217 + msgid "allow updating of HEAD ref"
7218 + msgstr "laat bywerking van HEAD-verwysing toe"
7219 +
7220 + msgid "deepen history of shallow clone"
7221 + msgstr "verdiep geskiedenis van vlak kloon"
7222 +
7223 + msgid "deepen history of shallow repository based on time"
7224 + msgstr "verdiep geskiedenis van vlak bewaarplek gebaseer op tyd"
7225 +
7226 + msgid "convert to a complete repository"
7227 + msgstr "skakel om na 'n volledige bewaarplek"
7228 +
7229 + msgid "re-fetch without negotiating common commits"
7230 + msgstr "haal weer sonder om gemeenskaplike vasleggings te onderhandel"
7231 +
7232 + msgid "prepend this to submodule path output"
7233 + msgstr "voeg dit voor submodule-paduitvoer by"
7234 +
7235 + msgid ""
7236 + "default for recursive fetching of submodules (lower priority than config "
7237 + "files)"
7238 + msgstr ""
7239 + "verstek vir rekursiewe haal van submodules (laer prioriteit as "
7240 + "konfigurasielêers)"
7241 +
7242 + msgid "accept refs that update .git/shallow"
7243 + msgstr "aanvaar verwysings wat .git/shallow bywerk"
7244 +
7245 + msgid "refmap"
7246 + msgstr "verwysingskaart"
7247 +
7248 + msgid "specify fetch refmap"
7249 + msgstr "spesifiseer haal-verwysingskaart"
7250 +
7251 + msgid "revision"
7252 + msgstr "revisie"
7253 +
7254 + msgid "report that we have only objects reachable from this object"
7255 + msgstr ""
7256 + "rapporteer dat ons slegs objekte het wat vanaf hierdie objek bereikbaar is"
7257 +
7258 + msgid "ensure this ref is always sent as a negotiation have"
7259 + msgstr ""
7260 + "verseker dat hierdie verwysing altyd as 'n onderhandelings-\"have\" gestuur "
7261 + "word"
7262 +
7263 + msgid "do not fetch a packfile; instead, print ancestors of negotiation tips"
7264 + msgstr ""
7265 + "moenie 'n paklêer haal nie; druk eerder voorouers van onderhandelingspunte"
7266 +
7267 + msgid "run 'maintenance --auto' after fetching"
7268 + msgstr "voer 'maintenance --auto' uit na haal"
7269 +
7270 + msgid "check for forced-updates on all updated branches"
7271 + msgstr "kontroleer vir geforseerde bywerkings op alle bygewerkte takke"
7272 +
7273 + msgid "write the commit-graph after fetching"
7274 + msgstr "skryf die vasleggingsgrafiek na haal"
7275 +
7276 + msgid "accept refspecs from stdin"
7277 + msgstr "aanvaar verwysingspesifikasies vanaf stdin"
7278 +
7279 + msgid "negative depth in --deepen is not supported"
7280 + msgstr "negatiewe diepte in --deepen word nie ondersteun nie"
7281 +
7282 + msgid "--unshallow on a complete repository does not make sense"
7283 + msgstr "--unshallow op 'n volledige bewaarplek maak nie sin nie"
7284 +
7285 + #, c-format
7286 + msgid "failed to fetch bundles from '%s'"
7287 + msgstr "kon nie bundels vanaf '%s' haal nie"
7288 +
7289 + msgid "fetch --all does not take a repository argument"
7290 + msgstr "fetch --all neem nie 'n bewaarplek-argument nie"
7291 +
7292 + msgid "fetch --all does not make sense with refspecs"
7293 + msgstr "fetch --all maak nie sin met verwysingspesifikasies nie"
7294 +
7295 + #, c-format
7296 + msgid "no such remote or remote group: %s"
7297 + msgstr "geen sulke afgeleë of afgeleë groep nie: %s"
7298 +
7299 + msgid "fetching a group and specifying refspecs does not make sense"
7300 + msgstr ""
7301 + "om 'n groep te haal en verwysingspesifikasies te spesifiseer maak nie sin nie"
7302 +
7303 + msgid "must supply remote when using --negotiate-only"
7304 + msgstr "moet 'n afgeleë verskaf wanneer --negotiate-only gebruik word"
7305 +
7306 + msgid "protocol does not support --negotiate-only, exiting"
7307 + msgstr "protokol ondersteun nie --negotiate-only nie, verlaat"
7308 +
7309 + #, c-format
7310 + msgid "%s needs one or more %s"
7311 + msgstr "%s benodig een of meer %s"
7312 +
7313 + msgid ""
7314 + "--filter can only be used with the remote configured in "
7315 + "extensions.partialclone"
7316 + msgstr ""
7317 + "--filter kan slegs gebruik word met die afgeleë wat in "
7318 + "extensions.partialclone gekonfigureer is"
7319 +
7320 + msgid "--atomic can only be used when fetching from one remote"
7321 + msgstr "--atomic kan slegs gebruik word wanneer van een afgeleë gehaal word"
7322 +
7323 + msgid "--stdin can only be used when fetching from one remote"
7324 + msgstr "--stdin kan slegs gebruik word wanneer van een afgeleë gehaal word"
7325 +
7326 + msgid ""
7327 + "git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] [--file <file>]"
7328 + msgstr ""
7329 + "git fmt-merge-msg [-m <boodskap>] [--log[=<n>] | --no-log] [--file <lêer>]"
7330 +
7331 + msgid "populate log with at most <n> entries from shortlog"
7332 + msgstr "vul log met hoogstens <n> inskrywings vanaf shortlog"
7333 +
7334 + msgid "alias for --log (deprecated)"
7335 + msgstr "alias vir --log (verouderd)"
7336 +
7337 + msgid "text"
7338 + msgstr "teks"
7339 +
7340 + msgid "use <text> as start of message"
7341 + msgstr "gebruik <teks> as begin van boodskap"
7342 +
7343 + msgid "use <name> instead of the real target branch"
7344 + msgstr "gebruik <naam> in plaas van die werklike teikentak"
7345 +
7346 + msgid "file to read from"
7347 + msgstr "lêer om van te lees"
7348 +
7349 + msgid "quote placeholders suitably for shells"
7350 + msgstr "haal plekhouers geskik vir doppe aan"
7351 +
7352 + msgid "quote placeholders suitably for perl"
7353 + msgstr "haal plekhouers geskik vir perl aan"
7354 +
7355 + msgid "quote placeholders suitably for python"
7356 + msgstr "haal plekhouers geskik vir python aan"
7357 +
7358 + msgid "quote placeholders suitably for Tcl"
7359 + msgstr "haal plekhouers geskik vir Tcl aan"
7360 +
7361 + msgid "show only <n> matched refs"
7362 + msgstr "wys slegs <n> ooreenstemmende verwysings"
7363 +
7364 + msgid "marker"
7365 + msgstr "merker"
7366 +
7367 + msgid "start iteration after the provided marker"
7368 + msgstr "begin iterasie na die verskafde merker"
7369 +
7370 + msgid "respect format colors"
7371 + msgstr "respekteer formaatkleure"
7372 +
7373 + msgid "print only refs which points at the given object"
7374 + msgstr "druk slegs verwysings wat na die gegewe objek wys"
7375 +
7376 + msgid "print only refs that are merged"
7377 + msgstr "druk slegs verwysings wat saamgesmelt is"
7378 +
7379 + msgid "print only refs that are not merged"
7380 + msgstr "druk slegs verwysings wat nie saamgesmelt is nie"
7381 +
7382 + msgid "print only refs which contain the commit"
7383 + msgstr "druk slegs verwysings wat die vaslegging bevat"
7384 +
7385 + msgid "print only refs which don't contain the commit"
7386 + msgstr "druk slegs verwysings wat nie die vaslegging bevat nie"
7387 +
7388 + msgid "read reference patterns from stdin"
7389 + msgstr "lees verwysingspatrone vanaf stdin"
7390 +
7391 + msgid "also include HEAD ref and pseudorefs"
7392 + msgstr "sluit ook HEAD-verwysing en pseudo-verwysings in"
7393 +
7394 + msgid "cannot use --start-after with custom sort options"
7395 + msgstr "kan nie --start-after met pasgemaakte sorteeropsies gebruik nie"
7396 +
7397 + msgid "unknown arguments supplied with --stdin"
7398 + msgstr "onbekende argumente met --stdin verskaf"
7399 +
7400 + msgid "cannot use --start-after with patterns"
7401 + msgstr "kan nie --start-after met patrone gebruik nie"
7402 +
7403 + msgid "git for-each-ref "
7404 + msgstr "git for-each-ref "
7405 +
7406 + msgid "git for-each-repo --config=<config> [--] <arguments>"
7407 + msgstr "git for-each-repo --config=<konfigurasie> [--] <argumente>"
7408 +
7409 + msgid "config"
7410 + msgstr "konfigurasie"
7411 +
7412 + msgid "config key storing a list of repository paths"
7413 + msgstr "konfigurasiesleutel wat 'n lys bewaarplekpaaie stoor"
7414 +
7415 + msgid "keep going even if command fails in a repository"
7416 + msgstr "gaan voort selfs as opdrag in 'n bewaarplek misluk"
7417 +
7418 + msgid "missing --config=<config>"
7419 + msgstr "--config=<konfigurasie> ontbreek"
7420 +
7421 + #, c-format
7422 + msgid "got bad config --config=%s"
7423 + msgstr "het slegte konfigurasie --config=%s gekry"
7424 +
7425 + #. TRANSLATORS: e.g. error in tree 01bfda: <more explanation>
7426 + #, c-format
7427 + msgid "error in %s %s: %s"
7428 + msgstr "fout in %s %s: %s"
7429 +
7430 + #. TRANSLATORS: e.g. warning in tree 01bfda: <more explanation>
7431 + #, c-format
7432 + msgid "warning in %s %s: %s"
7433 + msgstr "waarskuwing in %s %s: %s"
7434 +
7435 + #, c-format
7436 + msgid "broken link from %7s %s"
7437 + msgstr "gebroke skakel vanaf %7s %s"
7438 +
7439 + msgid "wrong object type in link"
7440 + msgstr "verkeerde objeksoort in skakel"
7441 +
7442 + #, c-format
7443 + msgid ""
7444 + "broken link from %7s %s\n"
7445 + " to %7s %s"
7446 + msgstr ""
7447 + "gebroke skakel vanaf %7s %s\n"
7448 + " na %7s %s"
7449 +
7450 + msgid "Checking connectivity"
7451 + msgstr "Kontroleer konnektiwiteit"
7452 +
7453 + #, c-format
7454 + msgid "missing %s %s"
7455 + msgstr "ontbrekende %s %s"
7456 +
7457 + #, c-format
7458 + msgid "unreachable %s %s"
7459 + msgstr "onbereikbare %s %s"
7460 +
7461 + #, c-format
7462 + msgid "dangling %s %s"
7463 + msgstr "hangende %s %s"
7464 +
7465 + msgid "could not create lost-found"
7466 + msgstr "kon nie lost-found skep nie"
7467 +
7468 + #, c-format
7469 + msgid "could not write '%s'"
7470 + msgstr "kon nie '%s' skryf nie"
7471 +
7472 + #, c-format
7473 + msgid "could not finish '%s'"
7474 + msgstr "kon nie '%s' voltooi nie"
7475 +
7476 + #, c-format
7477 + msgid "Checking %s"
7478 + msgstr "Kontroleer %s"
7479 +
7480 + #, c-format
7481 + msgid "Checking connectivity (%d objects)"
7482 + msgstr "Kontroleer konnektiwiteit (%d objekte)"
7483 +
7484 + #, c-format
7485 + msgid "%s: object corrupt or missing"
7486 + msgstr "%s: objek korrup of ontbreek"
7487 +
7488 + #, c-format
7489 + msgid "Checking %s %s"
7490 + msgstr "Kontroleer %s %s"
7491 +
7492 + msgid "broken links"
7493 + msgstr "gebroke skakels"
7494 +
7495 + #, c-format
7496 + msgid "root %s"
7497 + msgstr "wortel %s"
7498 +
7499 + #, c-format
7500 + msgid "tagged %s %s (%s) in %s"
7501 + msgstr "%s %s (%s) geëtiketteer in %s"
7502 +
7503 + #, c-format
7504 + msgid "%s: invalid reflog entry %s"
7505 + msgstr "%s: ongeldige reflog-inskrywing %s"
7506 +
7507 + #, c-format
7508 + msgid "Checking reflog %s->%s"
7509 + msgstr "Kontroleer reflog %s->%s"
7510 +
7511 + #, c-format
7512 + msgid "%s: invalid sha1 pointer %s"
7513 + msgstr "%s: ongeldige sha1-wyser %s"
7514 +
7515 + #, c-format
7516 + msgid "%s: not a commit"
7517 + msgstr "%s: nie 'n vaslegging nie"
7518 +
7519 + #, c-format
7520 + msgid "invalid parameter: expected sha1, got '%s'"
7521 + msgstr "ongeldige parameter: sha1 verwag, '%s' gekry"
7522 +
7523 + msgid "notice: No default references"
7524 + msgstr "kennisgewing: Geen verstekverwysings nie"
7525 +
7526 + #, c-format
7527 + msgid "Checking cache tree of %s"
7528 + msgstr "Kontroleer kasboom van %s"
7529 +
7530 + #, c-format
7531 + msgid "%s: invalid sha1 pointer in cache-tree of %s"
7532 + msgstr "%s: ongeldige sha1-wyser in kasboom van %s"
7533 +
7534 + msgid "non-tree in cache-tree"
7535 + msgstr "nie-boom in kasboom"
7536 +
7537 + #, c-format
7538 + msgid "%s: invalid sha1 pointer in resolve-undo of %s"
7539 + msgstr "%s: ongeldige sha1-wyser in resolve-undo van %s"
7540 +
7541 + msgid "Checking ref database"
7542 + msgstr "Kontroleer verwysingsdatabasis"
7543 +
7544 + msgid ""
7545 + "git fsck [--tags] [--root] [--unreachable] [--cache] [--no-reflogs]\n"
7546 + " [--[no-]full] [--strict] [--verbose] [--lost-found]\n"
7547 + " [--[no-]dangling] [--[no-]progress] [--connectivity-only]\n"
7548 + " [--[no-]name-objects] [--[no-]references] [<object>...]"
7549 + msgstr ""
7550 + "git fsck [--tags] [--root] [--unreachable] [--cache] [--no-reflogs]\n"
7551 + " [--[no-]full] [--strict] [--verbose] [--lost-found]\n"
7552 + " [--[no-]dangling] [--[no-]progress] [--connectivity-only]\n"
7553 + " [--[no-]name-objects] [--[no-]references] [<objek>...]"
7554 +
7555 + msgid "show unreachable objects"
7556 + msgstr "wys onbereikbare objekte"
7557 +
7558 + msgid "show dangling objects"
7559 + msgstr "wys hangende objekte"
7560 +
7561 + msgid "report tags"
7562 + msgstr "rapporteer etikette"
7563 +
7564 + msgid "report root nodes"
7565 + msgstr "rapporteer wortelnodusse"
7566 +
7567 + msgid "make index objects head nodes"
7568 + msgstr "maak indeksobjekte hoofnodusse"
7569 +
7570 + msgid "make reflogs head nodes (default)"
7571 + msgstr "maak reflogs hoofnodusse (verstek)"
7572 +
7573 + msgid "also consider packs and alternate objects"
7574 + msgstr "oorweeg ook pakke en alternatiewe objekte"
7575 +
7576 + msgid "check only connectivity"
7577 + msgstr "kontroleer slegs konnektiwiteit"
7578 +
7579 + msgid "enable more strict checking"
7580 + msgstr "aktiveer strenger kontrolering"
7581 +
7582 + msgid "write dangling objects in .git/lost-found"
7583 + msgstr "skryf hangende objekte in .git/lost-found"
7584 +
7585 + msgid "show progress"
7586 + msgstr "wys vordering"
7587 +
7588 + msgid "show verbose names for reachable objects"
7589 + msgstr "wys uitvoerige name vir bereikbare objekte"
7590 +
7591 + msgid "check reference database consistency"
7592 + msgstr "kontroleer konsekwentheid van verwysingsdatabasis"
7593 +
7594 + msgid "git fsmonitor--daemon start [<options>]"
7595 + msgstr "git fsmonitor--daemon start [<opsies>]"
7596 +
7597 + msgid "git fsmonitor--daemon run [<options>]"
7598 + msgstr "git fsmonitor--daemon run [<opsies>]"
7599 +
7600 + #, c-format
7601 + msgid "value of '%s' out of range: %d"
7602 + msgstr "waarde van '%s' buite bereik: %d"
7603 +
7604 + #, c-format
7605 + msgid "value of '%s' not bool or int: %d"
7606 + msgstr "waarde van '%s' is nie bool of int nie: %d"
7607 +
7608 + #, c-format
7609 + msgid "daemon did not stop within %d seconds"
7610 + msgstr "daemon het nie binne %d sekondes gestop nie"
7611 +
7612 + #, c-format
7613 + msgid "fsmonitor-daemon is watching '%s'\n"
7614 + msgstr "fsmonitor-daemon hou '%s' dop\n"
7615 +
7616 + #, c-format
7617 + msgid "fsmonitor-daemon is not watching '%s'\n"
7618 + msgstr "fsmonitor-daemon hou nie '%s' dop nie\n"
7619 +
7620 + #, c-format
7621 + msgid "could not create fsmonitor cookie '%s'"
7622 + msgstr "kon nie fsmonitor-koekie '%s' skep nie"
7623 +
7624 + #, c-format
7625 + msgid "fsmonitor: cookie_result '%d' != SEEN"
7626 + msgstr "fsmonitor: cookie_result '%d' != SEEN"
7627 +
7628 + #, c-format
7629 + msgid "could not start IPC thread pool on '%s'"
7630 + msgstr "kon nie IPC-draadpoel op '%s' begin nie"
7631 +
7632 + msgid "could not start fsmonitor listener thread"
7633 + msgstr "kon nie fsmonitor-luisterdraad begin nie"
7634 +
7635 + msgid "could not start fsmonitor health thread"
7636 + msgstr "kon nie fsmonitor-gesondheidsdraad begin nie"
7637 +
7638 + msgid "could not initialize listener thread"
7639 + msgstr "kon nie luisterdraad inisialiseer nie"
7640 +
7641 + msgid "could not initialize health thread"
7642 + msgstr "kon nie gesondheidsdraad inisialiseer nie"
7643 +
7644 + #, c-format
7645 + msgid "could not cd home '%s'"
7646 + msgstr "kon nie cd na tuis '%s' doen nie"
7647 +
7648 + #, c-format
7649 + msgid "fsmonitor--daemon is already running '%s'"
7650 + msgstr "fsmonitor--daemon loop reeds '%s'"
7651 +
7652 + #, c-format
7653 + msgid "running fsmonitor-daemon in '%s'\n"
7654 + msgstr "voer fsmonitor-daemon uit in '%s'\n"
7655 +
7656 + msgid "setsid failed"
7657 + msgstr "setsid het misluk"
7658 +
7659 + #, c-format
7660 + msgid "starting fsmonitor-daemon in '%s'\n"
7661 + msgstr "begin fsmonitor-daemon in '%s'\n"
7662 +
7663 + msgid "daemon failed to start"
7664 + msgstr "daemon kon nie begin nie"
7665 +
7666 + msgid "daemon not online yet"
7667 + msgstr "daemon nog nie aanlyn nie"
7668 +
7669 + msgid "daemon terminated"
7670 + msgstr "daemon beëindig"
7671 +
7672 + msgid "detach from console"
7673 + msgstr "ontkoppel van konsole"
7674 +
7675 + msgid "use <n> ipc worker threads"
7676 + msgstr "gebruik <n> ipc-werkerdrade"
7677 +
7678 + msgid "max seconds to wait for background daemon startup"
7679 + msgstr "maksimum sekondes om te wag vir agtergrond-daemon se opstart"
7680 +
7681 + #, c-format
7682 + msgid "invalid 'ipc-threads' value (%d)"
7683 + msgstr "ongeldige 'ipc-threads'-waarde (%d)"
7684 +
7685 + #, c-format
7686 + msgid "Unhandled subcommand '%s'"
7687 + msgstr "Onhanteerde subopdrag '%s'"
7688 +
7689 + msgid "fsmonitor--daemon not supported on this platform"
7690 + msgstr "fsmonitor--daemon word nie op hierdie platform ondersteun nie"
7691 +
7692 + msgid "git gc [<options>]"
7693 + msgstr "git gc [<opsies>]"
7694 +
7695 + #, c-format
7696 + msgid "Failed to fstat %s: %s"
7697 + msgstr "Kon nie fstat op %s doen nie: %s"
7698 +
7699 + #, c-format
7700 + msgid "failed to parse '%s' value '%s'"
7701 + msgstr "kon nie '%s'-waarde '%s' ontleed nie"
7702 +
7703 + #, c-format
7704 + msgid "cannot stat '%s'"
7705 + msgstr "kan nie stat op '%s' doen nie"
7706 +
7707 + #, c-format
7708 + msgid ""
7709 + "The last gc run reported the following. Please correct the root cause\n"
7710 + "and remove %s\n"
7711 + "Automatic cleanup will not be performed until the file is removed.\n"
7712 + "\n"
7713 + "%s"
7714 + msgstr ""
7715 + "Die laaste gc-uitvoering het die volgende gerapporteer. Korrigeer asseblief "
7716 + "die\n"
7717 + "grondoorsaak en verwyder %s\n"
7718 + "Outomatiese opruiming sal nie uitgevoer word totdat die lêer verwyder is "
7719 + "nie.\n"
7720 + "\n"
7721 + "%s"
7722 +
7723 + msgid "prune unreferenced objects"
7724 + msgstr "snoei onverwysde objekte"
7725 +
7726 + msgid "pack unreferenced objects separately"
7727 + msgstr "pak onverwysde objekte afsonderlik"
7728 +
7729 + msgid "with --cruft, limit the size of new cruft packs"
7730 + msgstr "met --cruft, beperk die grootte van nuwe afvalpakke"
7731 +
7732 + msgid "be more thorough (increased runtime)"
7733 + msgstr "wees meer deeglik (verhoogde looptyd)"
7734 +
7735 + msgid "enable auto-gc mode"
7736 + msgstr "aktiveer auto-gc-modus"
7737 +
7738 + msgid "perform garbage collection in the background"
7739 + msgstr "voer vullisversameling in die agtergrond uit"
7740 +
7741 + msgid "force running gc even if there may be another gc running"
7742 + msgstr "dwing gc om te loop selfs al loop 'n ander gc dalk reeds"
7743 +
7744 + msgid "repack all other packs except the largest pack"
7745 + msgstr "herpak alle ander pakke behalwe die grootste pak"
7746 +
7747 + msgid "pack prefix to store a pack containing pruned objects"
7748 + msgstr "pakvoorvoegsel om 'n pak met gesnoeide objekte te stoor"
7749 +
7750 + msgid "skip maintenance tasks typically done in the foreground"
7751 + msgstr "slaan onderhoudstake oor wat gewoonlik in die voorgrond gedoen word"
7752 +
7753 + #, c-format
7754 + msgid "failed to parse gc.logExpiry value %s"
7755 + msgstr "kon nie gc.logExpiry-waarde %s ontleed nie"
7756 +
7757 + #, c-format
7758 + msgid "failed to parse prune expiry value %s"
7759 + msgstr "kon nie snoei-vervalwaarde %s ontleed nie"
7760 +
7761 + #, c-format
7762 + msgid "Auto packing the repository in background for optimum performance.\n"
7763 + msgstr ""
7764 + "Pak die bewaarplek outomaties in die agtergrond vir optimale "
7765 + "werkverrigting.\n"
7766 +
7767 + #, c-format
7768 + msgid "Auto packing the repository for optimum performance.\n"
7769 + msgstr "Pak die bewaarplek outomaties vir optimale werkverrigting.\n"
7770 +
7771 + #, c-format
7772 + msgid "See \"git help gc\" for manual housekeeping.\n"
7773 + msgstr "Sien \"git help gc\" vir handmatige huishouding.\n"
7774 +
7775 + #, c-format
7776 + msgid ""
7777 + "gc is already running on machine '%s' pid %<PRIuMAX> (use --force if not)"
7778 + msgstr ""
7779 + "gc loop reeds op masjien '%s' pid %<PRIuMAX> (gebruik --force indien nie)"
7780 +
7781 + msgid ""
7782 + "git maintenance run [--auto] [--[no-]quiet] [--task=<task>] [--schedule]"
7783 + msgstr ""
7784 + "git maintenance run [--auto] [--[no-]quiet] [--task=<taak>] [--schedule]"
7785 +
7786 + msgid "--no-schedule is not allowed"
7787 + msgstr "--no-schedule word nie toegelaat nie"
7788 +
7789 + #, c-format
7790 + msgid "unrecognized --schedule argument '%s'"
7791 + msgstr "onherkende argument --schedule '%s'"
7792 +
7793 + msgid "failed to write commit-graph"
7794 + msgstr "kon nie vasleggingsgrafiek skryf nie"
7795 +
7796 + msgid "failed to prefetch remotes"
7797 + msgstr "kon nie afgeleës vooraf haal nie"
7798 +
7799 + msgid "failed to start 'git pack-objects' process"
7800 + msgstr "kon nie 'git pack-objects'-proses begin nie"
7801 +
7802 + msgid "failed to finish 'git pack-objects' process"
7803 + msgstr "kon nie 'git pack-objects'-proses voltooi nie"
7804 +
7805 + msgid "failed to write multi-pack-index"
7806 + msgstr "kon nie multi-pack-index skryf nie"
7807 +
7808 + msgid "'git multi-pack-index expire' failed"
7809 + msgstr "'git multi-pack-index expire' het misluk"
7810 +
7811 + msgid "'git multi-pack-index repack' failed"
7812 + msgstr "'git multi-pack-index repack' het misluk"
7813 +
7814 + msgid ""
7815 + "skipping incremental-repack task because core.multiPackIndex is disabled"
7816 + msgstr ""
7817 + "slaan incremental-repack-taak oor omdat core.multiPackIndex gedeaktiveer is"
7818 +
7819 + #, c-format
7820 + msgid "task '%s' failed"
7821 + msgstr "taak '%s' het misluk"
7822 +
7823 + #, c-format
7824 + msgid "lock file '%s' exists, skipping maintenance"
7825 + msgstr "slotlêer '%s' bestaan, slaan onderhoud oor"
7826 +
7827 + #, c-format
7828 + msgid "unknown maintenance strategy: '%s'"
7829 + msgstr "onbekende onderhoudstrategie: '%s'"
7830 +
7831 + #, c-format
7832 + msgid "'%s' is not a valid task"
7833 + msgstr "'%s' is nie 'n geldige taak nie"
7834 +
7835 + #, c-format
7836 + msgid "task '%s' cannot be selected multiple times"
7837 + msgstr "taak '%s' kan nie meer as een keer gekies word nie"
7838 +
7839 + msgid "run tasks based on the state of the repository"
7840 + msgstr "voer take uit gebaseer op die toestand van die bewaarplek"
7841 +
7842 + msgid "perform maintenance in the background"
7843 + msgstr "voer onderhoud in die agtergrond uit"
7844 +
7845 + msgid "frequency"
7846 + msgstr "frekwensie"
7847 +
7848 + msgid "run tasks based on frequency"
7849 + msgstr "voer take uit gebaseer op frekwensie"
7850 +
7851 + msgid "do not report progress or other information over stderr"
7852 + msgstr "moenie vordering of ander inligting oor stderr rapporteer nie"
7853 +
7854 + msgid "task"
7855 + msgstr "taak"
7856 +
7857 + msgid "run a specific task"
7858 + msgstr "voer 'n spesifieke taak uit"
7859 +
7860 + #, c-format
7861 + msgid "unable to add '%s' value of '%s'"
7862 + msgstr "kan nie '%s'-waarde van '%s' byvoeg nie"
7863 +
7864 + msgid "return success even if repository was not registered"
7865 + msgstr "gee sukses terug selfs as bewaarplek nie geregistreer was nie"
7866 +
7867 + #, c-format
7868 + msgid "unable to unset '%s' value of '%s'"
7869 + msgstr "kan nie '%s'-waarde van '%s' ontstel nie"
7870 +
7871 + #, c-format
7872 + msgid "repository '%s' is not registered"
7873 + msgstr "bewaarplek '%s' is nie geregistreer nie"
7874 +
7875 + #, c-format
7876 + msgid "failed to expand path '%s'"
7877 + msgstr "kon nie pad '%s' uitbrei nie"
7878 +
7879 + msgid "failed to start launchctl"
7880 + msgstr "kon nie launchctl begin nie"
7881 +
7882 + #, c-format
7883 + msgid "failed to create directories for '%s'"
7884 + msgstr "kon nie gidse vir '%s' skep nie"
7885 +
7886 + #, c-format
7887 + msgid "failed to bootstrap service %s"
7888 + msgstr "kon nie diens %s selflaai nie"
7889 +
7890 + msgid "failed to create temp xml file"
7891 + msgstr "kon nie tydelike xml-lêer skep nie"
7892 +
7893 + msgid "failed to start schtasks"
7894 + msgstr "kon nie schtasks begin nie"
7895 +
7896 + msgid "failed to run 'crontab -l'; your system might not support 'cron'"
7897 + msgstr ""
7898 + "kon nie 'crontab -l' uitvoer nie; u stelsel ondersteun dalk nie 'cron' nie"
7899 +
7900 + msgid "failed to create crontab temporary file"
7901 + msgstr "kon nie tydelike crontab-lêer skep nie"
7902 +
7903 + msgid "failed to open temporary file"
7904 + msgstr "kon nie tydelike lêer oopmaak nie"
7905 +
7906 + msgid "failed to run 'crontab'; your system might not support 'cron'"
7907 + msgstr ""
7908 + "kon nie 'crontab' uitvoer nie; u stelsel ondersteun dalk nie 'cron' nie"
7909 +
7910 + msgid "'crontab' died"
7911 + msgstr "'crontab' het gesterf"
7912 +
7913 + #, c-format
7914 + msgid "failed to delete '%s'"
7915 + msgstr "kon nie '%s' uitvee nie"
7916 +
7917 + #, c-format
7918 + msgid "failed to flush '%s'"
7919 + msgstr "kon nie '%s' spoel nie"
7920 +
7921 + msgid "failed to start systemctl"
7922 + msgstr "kon nie systemctl begin nie"
7923 +
7924 + msgid "failed to run systemctl"
7925 + msgstr "kon nie systemctl uitvoer nie"
7926 +
7927 + #, c-format
7928 + msgid "unrecognized --scheduler argument '%s'"
7929 + msgstr "onherkende argument --scheduler '%s'"
7930 +
7931 + msgid "neither systemd timers nor crontab are available"
7932 + msgstr "nóg systemd-tydhouers nóg crontab is beskikbaar"
7933 +
7934 + #, c-format
7935 + msgid "%s scheduler is not available"
7936 + msgstr "%s-skeduleerder is nie beskikbaar nie"
7937 +
7938 + #, c-format
7939 + msgid ""
7940 + "unable to create '%s.lock': %s.\n"
7941 + "\n"
7942 + "Another scheduled git-maintenance(1) process seems to be running in this\n"
7943 + "repository. Please make sure no other maintenance processes are running and\n"
7944 + "then try again. If it still fails, a git-maintenance(1) process may have\n"
7945 + "crashed in this repository earlier: remove the file manually to continue."
7946 + msgstr ""
7947 + "kan nie '%s.lock' skep nie: %s.\n"
7948 + "\n"
7949 + "Dit lyk of 'n ander geskeduleerde git-maintenance(1)-proses in hierdie\n"
7950 + "bewaarplek loop. Maak asseblief seker dat geen ander onderhoudsprosesse "
7951 + "loop\n"
7952 + "nie en probeer dan weer. As dit steeds misluk, het 'n git-maintenance(1)-\n"
7953 + "proses dalk vroeër in hierdie bewaarplek ineengestort: verwyder die lêer\n"
7954 + "handmatig om voort te gaan."
7955 +
7956 + msgid "cannot acquire lock for scheduled background maintenance"
7957 + msgstr "kan nie slot vir geskeduleerde agtergrondonderhoud verkry nie"
7958 +
7959 + msgid "git maintenance start [--scheduler=<scheduler>]"
7960 + msgstr "git maintenance start [--scheduler=<skeduleerder>]"
7961 +
7962 + msgid "scheduler"
7963 + msgstr "skeduleerder"
7964 +
7965 + msgid "scheduler to trigger git maintenance run"
7966 + msgstr "skeduleerder om git maintenance run te aktiveer"
7967 +
7968 + msgid "failed to set up maintenance schedule"
7969 + msgstr "kon nie onderhoudskedule opstel nie"
7970 +
7971 + msgid "failed to add repo to global config"
7972 + msgstr "kon nie bewaarplek by globale konfigurasie voeg nie"
7973 +
7974 + msgid "check a specific task"
7975 + msgstr "kontroleer 'n spesifieke taak"
7976 +
7977 + msgid "git maintenance <subcommand> [<options>]"
7978 + msgstr "git maintenance <subopdrag> [<opsies>]"
7979 +
7980 + msgid "git grep [<options>] [-e] <pattern> [<rev>...] [[--] <path>...]"
7981 + msgstr "git grep [<opsies>] [-e] <patroon> [<rev>...] [[--] <pad>...]"
7982 +
7983 + #, c-format
7984 + msgid "grep: failed to create thread: %s"
7985 + msgstr "grep: kon nie draad skep nie: %s"
7986 +
7987 + #, c-format
7988 + msgid "invalid number of threads specified (%d) for %s"
7989 + msgstr "ongeldige aantal drade gespesifiseer (%d) vir %s"
7990 +
7991 + #. #-#-#-#-# grep.c.po #-#-#-#-#
7992 + #. TRANSLATORS: %s is the configuration
7993 + #. variable for tweaking threads, currently
7994 + #. grep.threads
7995 + #.
7996 + #, c-format
7997 + msgid "no threads support, ignoring %s"
7998 + msgstr "geen draadondersteuning nie, ignoreer %s"
7999 +
8000 + #, c-format
8001 + msgid "unable to read tree %s"
8002 + msgstr "kan nie boom %s lees nie"
8003 +
8004 + #, c-format
8005 + msgid "unable to grep from object of type %s"
8006 + msgstr "kan nie grep op objek van soort %s doen nie"
8007 +
8008 + #, c-format
8009 + msgid "switch `%c' expects a numerical value"
8010 + msgstr "skakelaar `%c' verwag 'n numeriese waarde"
8011 +
8012 + msgid "search in index instead of in the work tree"
8013 + msgstr "soek in indeks in plaas van in die werkboom"
8014 +
8015 + msgid "find in contents not managed by git"
8016 + msgstr "soek in inhoud wat nie deur git bestuur word nie"
8017 +
8018 + msgid "search in both tracked and untracked files"
8019 + msgstr "soek in beide nagespoorde en onnaspoorbare lêers"
8020 +
8021 + msgid "ignore files specified via '.gitignore'"
8022 + msgstr "ignoreer lêers gespesifiseer via '.gitignore'"
8023 +
8024 + msgid "recursively search in each submodule"
8025 + msgstr "soek rekursief in elke submodule"
8026 +
8027 + msgid "show non-matching lines"
8028 + msgstr "wys reëls wat nie ooreenstem nie"
8029 +
8030 + msgid "case insensitive matching"
8031 + msgstr "hoofletter-onsensitiewe passing"
8032 +
8033 + msgid "match patterns only at word boundaries"
8034 + msgstr "pas patrone slegs by woordgrense"
8035 +
8036 + msgid "process binary files as text"
8037 + msgstr "verwerk binêre lêers as teks"
8038 +
8039 + msgid "don't match patterns in binary files"
8040 + msgstr "moenie patrone in binêre lêers pas nie"
8041 +
8042 + msgid "process binary files with textconv filters"
8043 + msgstr "verwerk binêre lêers met textconv-filters"
8044 +
8045 + msgid "search in subdirectories (default)"
8046 + msgstr "soek in subgidse (verstek)"
8047 +
8048 + msgid "descend at most <n> levels"
8049 + msgstr "daal hoogstens <n> vlakke af"
8050 +
8051 + msgid "use extended POSIX regular expressions"
8052 + msgstr "gebruik uitgebreide POSIX-reguliere uitdrukkings"
8053 +
8054 + msgid "use basic POSIX regular expressions (default)"
8055 + msgstr "gebruik basiese POSIX-reguliere uitdrukkings (verstek)"
8056 +
8057 + msgid "interpret patterns as fixed strings"
8058 + msgstr "interpreteer patrone as vaste stringe"
8059 +
8060 + msgid "use Perl-compatible regular expressions"
8061 + msgstr "gebruik Perl-versoenbare reguliere uitdrukkings"
8062 +
8063 + msgid "show line numbers"
8064 + msgstr "wys reëlnommers"
8065 +
8066 + msgid "show column number of first match"
8067 + msgstr "wys kolomnommer van eerste passing"
8068 +
8069 + msgid "don't show filenames"
8070 + msgstr "moenie lêername wys nie"
8071 +
8072 + msgid "show filenames"
8073 + msgstr "wys lêername"
8074 +
8075 + msgid "show filenames relative to top directory"
8076 + msgstr "wys lêername relatief tot boonste gids"
8077 +
8078 + msgid "show only filenames instead of matching lines"
8079 + msgstr "wys slegs lêername in plaas van ooreenstemmende reëls"
8080 +
8081 + msgid "synonym for --files-with-matches"
8082 + msgstr "sinoniem vir --files-with-matches"
8083 +
8084 + msgid "show only the names of files without match"
8085 + msgstr "wys slegs die name van lêers sonder passing"
8086 +
8087 + msgid "print NUL after filenames"
8088 + msgstr "druk NUL na lêername"
8089 +
8090 + msgid "show only matching parts of a line"
8091 + msgstr "wys slegs ooreenstemmende dele van 'n reël"
8092 +
8093 + msgid "show the number of matches instead of matching lines"
8094 + msgstr "wys die aantal passings in plaas van ooreenstemmende reëls"
8095 +
8096 + msgid "highlight matches"
8097 + msgstr "beklemtoon passings"
8098 +
8099 + msgid "print empty line between matches from different files"
8100 + msgstr "druk leë reël tussen passings uit verskillende lêers"
8101 +
8102 + msgid "show filename only once above matches from same file"
8103 + msgstr "wys lêernaam slegs een keer bo passings uit dieselfde lêer"
8104 +
8105 + msgid "show <n> context lines before and after matches"
8106 + msgstr "wys <n> konteksreëls voor en na passings"
8107 +
8108 + msgid "show <n> context lines before matches"
8109 + msgstr "wys <n> konteksreëls voor passings"
8110 +
8111 + msgid "show <n> context lines after matches"
8112 + msgstr "wys <n> konteksreëls na passings"
8113 +
8114 + msgid "use <n> worker threads"
8115 + msgstr "gebruik <n> werkerdrade"
8116 +
8117 + msgid "shortcut for -C NUM"
8118 + msgstr "kortpad vir -C NUM"
8119 +
8120 + msgid "show a line with the function name before matches"
8121 + msgstr "wys 'n reël met die funksienaam voor passings"
8122 +
8123 + msgid "show the surrounding function"
8124 + msgstr "wys die omliggende funksie"
8125 +
8126 + msgid "read patterns from file"
8127 + msgstr "lees patrone uit lêer"
8128 +
8129 + msgid "match <pattern>"
8130 + msgstr "pas <patroon>"
8131 +
8132 + msgid "combine patterns specified with -e"
8133 + msgstr "kombineer patrone gespesifiseer met -e"
8134 +
8135 + msgid "indicate hit with exit status without output"
8136 + msgstr "dui treffer aan met uittreestatus sonder uitvoer"
8137 +
8138 + msgid "show only matches from files that match all patterns"
8139 + msgstr "wys slegs passings uit lêers wat by alle patrone pas"
8140 +
8141 + msgid "pager"
8142 + msgstr "bladsyblaaier"
8143 +
8144 + msgid "show matching files in the pager"
8145 + msgstr "wys ooreenstemmende lêers in die bladsyblaaier"
8146 +
8147 + msgid "allow calling of grep(1) (ignored by this build)"
8148 + msgstr "laat aanroep van grep(1) toe (geïgnoreer deur hierdie bouweergawe)"
8149 +
8150 + msgid "maximum number of results per file"
8151 + msgstr "maksimum aantal resultate per lêer"
8152 +
8153 + msgid "no pattern given"
8154 + msgstr "geen patroon gegee nie"
8155 +
8156 + msgid "--no-index or --untracked cannot be used with revs"
8157 + msgstr "--no-index of --untracked kan nie met revisies gebruik word nie"
8158 +
8159 + #, c-format
8160 + msgid "unable to resolve revision: %s"
8161 + msgstr "kan nie revisie oplos nie: %s"
8162 +
8163 + msgid "--untracked not supported with --recurse-submodules"
8164 + msgstr "--untracked word nie met --recurse-submodules ondersteun nie"
8165 +
8166 + msgid "invalid option combination, ignoring --threads"
8167 + msgstr "ongeldige opsiekombinasie, ignoreer --threads"
8168 +
8169 + msgid "no threads support, ignoring --threads"
8170 + msgstr "geen drade-ondersteuning nie, ignoreer --threads"
8171 +
8172 + #, c-format
8173 + msgid "invalid number of threads specified (%d)"
8174 + msgstr "ongeldige aantal drade gespesifiseer (%d)"
8175 +
8176 + msgid "--open-files-in-pager only works on the worktree"
8177 + msgstr "--open-files-in-pager werk slegs op die werkboom"
8178 +
8179 + msgid "--[no-]exclude-standard cannot be used for tracked contents"
8180 + msgstr ""
8181 + "--[no-]exclude-standard kan nie vir nagespoorde inhoud gebruik word nie"
8182 +
8183 + msgid "both --cached and trees are given"
8184 + msgstr "beide --cached en bome is gegee"
8185 +
8186 + msgid ""
8187 + "git hash-object [-t <type>] [-w] [--path=<file> | --no-filters]\n"
8188 + " [--stdin [--literally]] [--] <file>..."
8189 + msgstr ""
8190 + "git hash-object [-t <soort>] [-w] [--path=<lêer> | --no-filters]\n"
8191 + " [--stdin [--literally]] [--] <lêer>..."
8192 +
8193 + msgid "git hash-object [-t <type>] [-w] --stdin-paths [--no-filters]"
8194 + msgstr "git hash-object [-t <soort>] [-w] --stdin-paths [--no-filters]"
8195 +
8196 + msgid "object type"
8197 + msgstr "objeksoort"
8198 +
8199 + msgid "write the object into the object database"
8200 + msgstr "skryf die objek in die objekdatabasis"
8201 +
8202 + msgid "read the object from stdin"
8203 + msgstr "lees die objek vanaf stdin"
8204 +
8205 + msgid "store file as is without filters"
8206 + msgstr "stoor lêer soos dit is sonder filters"
8207 +
8208 + msgid ""
8209 + "just hash any random garbage to create corrupt objects for debugging Git"
8210 + msgstr ""
8211 + "hash sommer enige ewekansige gemors om korrupte objekte te skep vir die "
8212 + "ontfouting van Git"
8213 +
8214 + msgid "process file as it were from this path"
8215 + msgstr "verwerk lêer asof dit van hierdie pad af kom"
8216 +
8217 + msgid "print all available commands"
8218 + msgstr "druk alle beskikbare opdragte"
8219 +
8220 + msgid "show external commands in --all"
8221 + msgstr "wys eksterne opdragte in --all"
8222 +
8223 + msgid "show aliases in --all"
8224 + msgstr "wys aliasse in --all"
8225 +
8226 + msgid "exclude guides"
8227 + msgstr "sluit gidse uit"
8228 +
8229 + msgid "show man page"
8230 + msgstr "wys man-bladsy"
8231 +
8232 + msgid "show manual in web browser"
8233 + msgstr "wys handleiding in webblaaier"
8234 +
8235 + msgid "show info page"
8236 + msgstr "wys info-bladsy"
8237 +
8238 + msgid "print command description"
8239 + msgstr "druk opdragbeskrywing"
8240 +
8241 + msgid "print list of useful guides"
8242 + msgstr "druk lys van nuttige gidse"
8243 +
8244 + msgid "print list of user-facing repository, command and file interfaces"
8245 + msgstr ""
8246 + "druk lys van gebruikersgerigte bewaarplek-, opdrag- en lêerkoppelvlakke"
8247 +
8248 + msgid "print list of file formats, protocols and other developer interfaces"
8249 + msgstr "druk lys van lêerformate, protokolle en ander ontwikkelaarkoppelvlakke"
8250 +
8251 + msgid "print all configuration variable names"
8252 + msgstr "druk alle konfigurasieveranderlike-name"
8253 +
8254 + msgid "git help [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>]"
8255 + msgstr "git help [[-i|--info] [-m|--man] [-w|--web]] [<opdrag>|<dok>]"
8256 +
8257 + #, c-format
8258 + msgid "unrecognized help format '%s'"
8259 + msgstr "onherkende hulpformaat '%s'"
8260 +
8261 + msgid "Failed to start emacsclient."
8262 + msgstr "Kon nie emacsclient begin nie."
8263 +
8264 + msgid "Failed to parse emacsclient version."
8265 + msgstr "Kon nie emacsclient-weergawe ontleed nie."
8266 +
8267 + #, c-format
8268 + msgid "emacsclient version '%d' too old (< 22)."
8269 + msgstr "emacsclient-weergawe '%d' te oud (< 22)."
8270 +
8271 + #, c-format
8272 + msgid "failed to exec '%s'"
8273 + msgstr "kon nie '%s' uitvoer nie"
8274 +
8275 + #, c-format
8276 + msgid ""
8277 + "'%s': path for unsupported man viewer.\n"
8278 + "Please consider using 'man.<tool>.cmd' instead."
8279 + msgstr ""
8280 + "'%s': pad vir nie-ondersteunde man-kyker.\n"
8281 + "Oorweeg asseblief om eerder 'man.<tool>.cmd' te gebruik."
8282 +
8283 + #, c-format
8284 + msgid ""
8285 + "'%s': cmd for supported man viewer.\n"
8286 + "Please consider using 'man.<tool>.path' instead."
8287 + msgstr ""
8288 + "'%s': cmd vir ondersteunde man-kyker.\n"
8289 + "Oorweeg asseblief om eerder 'man.<tool>.path' te gebruik."
8290 +
8291 + #, c-format
8292 + msgid "'%s': unknown man viewer."
8293 + msgstr "'%s': onbekende man-kyker."
8294 +
8295 + msgid "no man viewer handled the request"
8296 + msgstr "geen man-kyker het die versoek hanteer nie"
8297 +
8298 + msgid "no info viewer handled the request"
8299 + msgstr "geen info-kyker het die versoek hanteer nie"
8300 +
8301 + #, c-format
8302 + msgid "'%s' is aliased to '%s'"
8303 + msgstr "'%s' is 'n alias vir '%s'"
8304 +
8305 + #, c-format
8306 + msgid "bad alias.%s string: %s"
8307 + msgstr "slegte alias.%s-string: %s"
8308 +
8309 + #, c-format
8310 + msgid "the '%s' option doesn't take any non-option arguments"
8311 + msgstr "die '%s'-opsie neem geen nie-opsie-argumente nie"
8312 +
8313 + msgid ""
8314 + "the '--no-[external-commands|aliases]' options can only be used with '--all'"
8315 + msgstr ""
8316 + "die '--no-[external-commands|aliases]'-opsies kan slegs met '--all' gebruik "
8317 + "word"
8318 +
8319 + #, c-format
8320 + msgid "usage: %s%s"
8321 + msgstr "gebruik: %s%s"
8322 +
8323 + msgid "'git help config' for more information"
8324 + msgstr "'git help config' vir meer inligting"
8325 +
8326 + msgid ""
8327 + "git history drop <commit> [--dry-run] [--update-refs=(branches|head)] [--"
8328 + "empty=(drop|keep|abort)]"
8329 + msgstr ""
8330 + "git history drop <vaslegging> [--dry-run] [--update-refs=(branches|head)] [--"
8331 + "empty=(drop|keep|abort)]"
8332 +
8333 + msgid ""
8334 + "git history fixup <commit> [--dry-run] [--update-refs=(branches|head)] [--"
8335 + "reedit-message] [--empty=(drop|keep|abort)]"
8336 + msgstr ""
8337 + "git history fixup <vaslegging> [--dry-run] [--update-refs=(branches|head)] "
8338 + "[--reedit-message] [--empty=(drop|keep|abort)]"
8339 +
8340 + msgid "git history reword <commit> [--dry-run] [--update-refs=(branches|head)]"
8341 + msgstr ""
8342 + "git history reword <vaslegging> [--dry-run] [--update-refs=(branches|head)]"
8343 +
8344 + msgid ""
8345 + "git history split <commit> [--dry-run] [--update-refs=(branches|head)] [--] "
8346 + "[<pathspec>...]"
8347 + msgstr ""
8348 + "git history split <vaslegging> [--dry-run] [--update-refs=(branches|head)] "
8349 + "[--] [<padspesifikasie>...]"
8350 +
8351 + #, c-format
8352 + msgid ""
8353 + "Please enter the commit message for the %s changes. Lines starting\n"
8354 + "with '%s' will be ignored, and an empty message aborts the commit.\n"
8355 + msgstr ""
8356 + "Voer asseblief die vasleggingsboodskap vir die %s-veranderinge in. Reëls "
8357 + "wat\n"
8358 + "met '%s' begin sal geïgnoreer word, en 'n leë boodskap staak die "
8359 + "vaslegging.\n"
8360 +
8361 + #, c-format
8362 + msgid "could not write to '%s'"
8363 + msgstr "kon nie na '%s' skryf nie"
8364 +
8365 + #, c-format
8366 + msgid "Aborting commit as launching the editor failed.\n"
8367 + msgstr "Staak vaslegging aangesien die redigeerder nie begin kon word nie.\n"
8368 +
8369 + #, c-format
8370 + msgid "unable to parse parent commit %s"
8371 + msgstr "kan nie ouervaslegging %s ontleed nie"
8372 +
8373 + #, c-format
8374 + msgid "%s expects one of 'branches' or 'head'"
8375 + msgstr "%s verwag een van 'branches' of 'head'"
8376 +
8377 + msgid "error preparing revisions"
8378 + msgstr "fout met voorbereiding van revisies"
8379 +
8380 + msgid "replaying merge commits is not supported yet!"
8381 + msgstr "herspeel van saamsmeltvasleggings word nog nie ondersteun nie!"
8382 +
8383 + msgid "cannot look up HEAD"
8384 + msgstr "kan nie HEAD opsoek nie"
8385 +
8386 + msgid "cannot determine descendance"
8387 + msgstr "kan nie afstamming bepaal nie"
8388 +
8389 + msgid ""
8390 + "rewritten commit must be an ancestor of HEAD when using --update-refs=head"
8391 + msgstr ""
8392 + "herskryfde vaslegging moet 'n voorouer van HEAD wees wanneer --update-"
8393 + "refs=head gebruik word"
8394 +
8395 + #, c-format
8396 + msgid "failed to begin ref transaction: %s"
8397 + msgstr "kon nie verwysingstransaksie begin nie: %s"
8398 +
8399 + #, c-format
8400 + msgid "failed to update ref '%s': %s"
8401 + msgstr "kon nie verwysing '%s' bywerk nie: %s"
8402 +
8403 + #, c-format
8404 + msgid "failed to commit ref transaction: %s"
8405 + msgstr "kon nie verwysingstransaksie vaslê nie: %s"
8406 +
8407 + #, c-format
8408 + msgid "unable to parse parent of %s"
8409 + msgstr "kan nie ouer van %s ontleed nie"
8410 +
8411 + #, c-format
8412 + msgid ""
8413 + "unrecognized '--empty=' action '%s'; valid values are \"drop\", \"keep\", "
8414 + "and \"abort\"."
8415 + msgstr ""
8416 + "onbekende '--empty='-aksie '%s'; geldige waardes is \"drop\", \"keep\" en "
8417 + "\"abort\"."
8418 +
8419 + msgid "control which refs should be updated"
8420 + msgstr "beheer watter verwysings bygewerk moet word"
8421 +
8422 + msgid "perform a dry-run without updating any refs"
8423 + msgstr "voer 'n proeflopie uit sonder om enige verwysings by te werk"
8424 +
8425 + msgid "open an editor to modify the commit message"
8426 + msgstr "open 'n redigeerder om die vasleggingsboodskap te wysig"
8427 +
8428 + msgid "how to handle commits that become empty"
8429 + msgstr "hoe om vasleggings te hanteer wat leeg word"
8430 +
8431 + msgid "command expects a single revision"
8432 + msgstr "opdrag verwag 'n enkele hersiening"
8433 +
8434 + msgid "cannot run fixup in a bare repository"
8435 + msgstr "kan nie 'fixup' in 'n kaal bewaarplek uitvoer nie"
8436 +
8437 + #, c-format
8438 + msgid "commit cannot be found: %s"
8439 + msgstr "vaslegging kan nie gevind word nie: %s"
8440 +
8441 + msgid "cannot get tree for HEAD"
8442 + msgstr "kan nie boom vir HEAD kry nie"
8443 +
8444 + msgid "unable to read index"
8445 + msgstr "kan nie indeks lees nie"
8446 +
8447 + msgid "nothing to fixup: no staged changes"
8448 + msgstr "niks om reg te stel nie: geen geplaasde veranderinge nie"
8449 +
8450 + msgid "unable to write index as a tree"
8451 + msgstr "kan nie indeks as 'n boom skryf nie"
8452 +
8453 + #, c-format
8454 + msgid "cannot get tree for commit %s"
8455 + msgstr "kan nie boom vir vaslegging %s kry nie"
8456 +
8457 + msgid "merge failed while applying fixup"
8458 + msgstr "saamsmelting het misluk tydens toepassing van regstelling"
8459 +
8460 + msgid "fixup would produce conflicts; aborting"
8461 + msgstr "regstelling sou konflikte veroorsaak; staak"
8462 +
8463 + #, c-format
8464 + msgid "cannot drop root commit %s: it has no parent to replay onto"
8465 + msgstr ""
8466 + "kan nie wortelvaslegging %s laat val nie: dit het geen ouer om op oor te "
8467 + "speel nie"
8468 +
8469 + #, c-format
8470 + msgid "fixup makes commit %s empty"
8471 + msgstr "regstelling maak vaslegging %s leeg"
8472 +
8473 + msgid "failed writing fixed-up commit"
8474 + msgstr "kon nie reggestelde vaslegging skryf nie"
8475 +
8476 + msgid "failed replaying descendants"
8477 + msgstr "kon nie afstammelinge oorspeel nie"
8478 +
8479 + msgid "failed writing reworded commit"
8480 + msgstr "kon nie herbewoorde vaslegging skryf nie"
8481 +
8482 + #, c-format
8483 + msgid "unable to parse tree %s"
8484 + msgstr "kan nie boom %s ontleed nie"
8485 +
8486 + msgid "unable to populate index with tree"
8487 + msgstr "kan nie indeks met boom vul nie"
8488 +
8489 + msgid "unable to acquire index lock"
8490 + msgstr "kan nie indeksslot verkry nie"
8491 +
8492 + msgid "failed reading temporary index"
8493 + msgstr "kon nie tydelike indeks lees nie"
8494 +
8495 + msgid "failed split tree"
8496 + msgstr "kon nie boom verdeel nie"
8497 +
8498 + msgid "split commit is empty"
8499 + msgstr "verdeelde vaslegging is leeg"
8500 +
8501 + msgid "split commit tree matches original commit"
8502 + msgstr "boom van verdeelde vaslegging stem ooreen met oorspronklike vaslegging"
8503 +
8504 + msgid "failed writing first commit"
8505 + msgstr "kon nie eerste vaslegging skryf nie"
8506 +
8507 + msgid "failed writing second commit"
8508 + msgstr "kon nie tweede vaslegging skryf nie"
8509 +
8510 + msgid "control ref update behavior"
8511 + msgstr "beheer gedrag van verwysingsbywerking"
8512 +
8513 + msgid "command expects a committish"
8514 + msgstr "opdrag verwag 'n vasleggingagtige"
8515 +
8516 + msgid "cannot split up merge commit"
8517 + msgstr "kan nie saamsmeltvaslegging verdeel nie"
8518 +
8519 + msgid "cannot resolve HEAD commit"
8520 + msgstr "kan nie HEAD-vaslegging oplos nie"
8521 +
8522 + msgid "cannot resolve tree for HEAD"
8523 + msgstr "kan nie boom vir HEAD oplos nie"
8524 +
8525 + msgid "how to handle descendants that become empty"
8526 + msgstr "hoe om afstammelinge te hanteer wat leeg word"
8527 +
8528 + #, c-format
8529 + msgid "cannot drop merge commit: %s"
8530 + msgstr "kan nie saamsmeltvaslegging weglaat nie: %s"
8531 +
8532 + msgid "dropping this commit would overwrite local changes; aborting"
8533 + msgstr ""
8534 + "om hierdie vaslegging te laat val sou plaaslike veranderinge oorskryf; staak"
8535 +
8536 + msgid "failed to update references"
8537 + msgstr "kon nie verwysings bywerk nie"
8538 +
8539 + #, c-format
8540 + msgid "could not update working tree to new commit %s"
8541 + msgstr "kon nie werkboom na nuwe vaslegging %s bywerk nie"
8542 +
8543 + msgid ""
8544 + "git hook run [--allow-unknown-hook-name] [--ignore-missing] [--to-"
8545 + "stdin=<path>] [(-j|--jobs) <n>]\n"
8546 + "<hook-name> [-- <hook-args>]"
8547 + msgstr ""
8548 + "git hook run [--allow-unknown-hook-name] [--ignore-missing] [--to-"
8549 + "stdin=<pad>] [(-j|--jobs) <n>]\n"
8550 + "<haaknaam> [-- <haakargumente>]"
8551 +
8552 + msgid ""
8553 + "git hook list [--allow-unknown-hook-name] [-z] [--show-scope] <hook-name>"
8554 + msgstr ""
8555 + "git hook list [--allow-unknown-hook-name] [-z] [--show-scope] <haaknaam>"
8556 +
8557 + msgid "use NUL as line terminator"
8558 + msgstr "gebruik NUL as reëlafsluiter"
8559 +
8560 + msgid "show the config scope that defined each hook"
8561 + msgstr "wys die konfigurasiebestek wat elke haak gedefinieer het"
8562 +
8563 + msgid "allow running a hook with a non-native hook name"
8564 + msgstr "laat toe dat 'n haak met 'n nie-inheemse haaknaam uitgevoer word"
8565 +
8566 + msgid "you must specify a hook event name to list"
8567 + msgstr "jy moet 'n haakgebeurtenisnaam spesifiseer om te lys"
8568 +
8569 + #, c-format
8570 + msgid ""
8571 + "unknown hook event '%s';\n"
8572 + "use --allow-unknown-hook-name to allow non-native hook names"
8573 + msgstr ""
8574 + "onbekende haakgebeurtenis '%s';\n"
8575 + "gebruik --allow-unknown-hook-name om nie-inheemse haakname toe te laat"
8576 +
8577 + #, c-format
8578 + msgid "no hooks found for event '%s'"
8579 + msgstr "geen hake vir gebeurtenis '%s' gevind nie"
8580 +
8581 + msgid "hook from hookdir"
8582 + msgstr "haak uit haakgids"
8583 +
8584 + msgid "silently ignore missing requested <hook-name>"
8585 + msgstr "ignoreer ontbrekende versoekte <haaknaam> stilweg"
8586 +
8587 + msgid "file to read into hooks' stdin"
8588 + msgstr "lêer om in hake se standaardinvoer in te lees"
8589 +
8590 + msgid "run up to <n> hooks simultaneously (-1 for CPU count)"
8591 + msgstr "voer tot <n> hake gelyktydig uit (-1 vir aantal SVE's)"
8592 +
8593 + #, c-format
8594 + msgid "invalid value for -j: %d (use -1 for CPU count or a positive integer)"
8595 + msgstr ""
8596 + "ongeldige waarde vir -j: %d (gebruik -1 vir aantal SVE's of 'n positiewe "
8597 + "heelgetal)"
8598 +
8599 + #, c-format
8600 + msgid "object type mismatch at %s"
8601 + msgstr "objektipe stem nie ooreen by %s nie"
8602 +
8603 + #, c-format
8604 + msgid "did not receive expected object %s"
8605 + msgstr "het nie die verwagte objek %s ontvang nie"
8606 +
8607 + #, c-format
8608 + msgid "object %s: expected type %s, found %s"
8609 + msgstr "objek %s: tipe %s verwag, %s gevind"
8610 +
8611 + msgid "Checking objects"
8612 + msgstr "Gaan objekte na"
8613 +
8614 + #, c-format
8615 + msgid "cannot fill %d byte"
8616 + msgid_plural "cannot fill %d bytes"
8617 + msgstr[0] "kan nie %d greep vul nie"
8618 + msgstr[1] "kan nie %d grepe vul nie"
8619 +
8620 + msgid "early EOF"
8621 + msgstr "vroeë EOF"
8622 +
8623 + msgid "read error on input"
8624 + msgstr "leesfout op invoer"
8625 +
8626 + msgid "used more bytes than were available"
8627 + msgstr "het meer grepe gebruik as wat beskikbaar was"
8628 +
8629 + msgid "pack too large for current definition of off_t"
8630 + msgstr "pak is te groot vir die huidige definisie van off_t"
8631 +
8632 + #, c-format
8633 + msgid "pack exceeds maximum allowed size (%s)"
8634 + msgstr "pak oorskry die maksimum toegelate grootte (%s)"
8635 +
8636 + msgid "pack signature mismatch"
8637 + msgstr "pakhandtekening stem nie ooreen nie"
8638 +
8639 + #, c-format
8640 + msgid "pack version %<PRIu32> unsupported"
8641 + msgstr "pakweergawe %<PRIu32> word nie ondersteun nie"
8642 +
8643 + #, c-format
8644 + msgid "pack has bad object at offset %<PRIuMAX>: %s"
8645 + msgstr "pak het 'n slegte objek by verskuiwing %<PRIuMAX>: %s"
8646 +
8647 + #, c-format
8648 + msgid "inflate returned %d"
8649 + msgstr "inflate het %d teruggegee"
8650 +
8651 + msgid "object size too large for this platform"
8652 + msgstr "objekgrootte is te groot vir hierdie platform"
8653 +
8654 + msgid "offset value overflow for delta base object"
8655 + msgstr "verskuiwingswaarde-oorloop vir delta-basisobjek"
8656 +
8657 + msgid "delta base offset is out of bound"
8658 + msgstr "delta-basisverskuiwing is buite perke"
8659 +
8660 + #, c-format
8661 + msgid "unknown object type %d"
8662 + msgstr "onbekende objektipe %d"
8663 +
8664 + msgid "cannot pread pack file"
8665 + msgstr "kan nie paklêer met pread lees nie"
8666 +
8667 + #, c-format
8668 + msgid "premature end of pack file, %<PRIuMAX> byte missing"
8669 + msgid_plural "premature end of pack file, %<PRIuMAX> bytes missing"
8670 + msgstr[0] "voortydige einde van paklêer, %<PRIuMAX> greep ontbreek"
8671 + msgstr[1] "voortydige einde van paklêer, %<PRIuMAX> grepe ontbreek"
8672 +
8673 + msgid "serious inflate inconsistency"
8674 + msgstr "ernstige inflate-teenstrydigheid"
8675 +
8676 + #, c-format
8677 + msgid "SHA1 COLLISION FOUND WITH %s !"
8678 + msgstr "SHA1-BOTSING GEVIND MET %s !"
8679 +
8680 + #, c-format
8681 + msgid "cannot read existing object info %s"
8682 + msgstr "kan nie bestaande objekinligting %s lees nie"
8683 +
8684 + #, c-format
8685 + msgid "cannot read existing object %s"
8686 + msgstr "kan nie bestaande objek %s lees nie"
8687 +
8688 + #, c-format
8689 + msgid "invalid blob object %s"
8690 + msgstr "ongeldige blob-objek %s"
8691 +
8692 + msgid "fsck error in packed object"
8693 + msgstr "fsck-fout in gepakte objek"
8694 +
8695 + #, c-format
8696 + msgid "invalid %s"
8697 + msgstr "ongeldige %s"
8698 +
8699 + #, c-format
8700 + msgid "Not all child objects of %s are reachable"
8701 + msgstr "Nie alle kindobjekte van %s is bereikbaar nie"
8702 +
8703 + msgid "failed to apply delta"
8704 + msgstr "kon nie delta toepas nie"
8705 +
8706 + msgid "Receiving objects"
8707 + msgstr "Ontvang objekte"
8708 +
8709 + msgid "Indexing objects"
8710 + msgstr "Indekseer objekte"
8711 +
8712 + msgid "pack is corrupted (SHA1 mismatch)"
8713 + msgstr "pak is korrup (SHA1 stem nie ooreen nie)"
8714 +
8715 + msgid "cannot fstat packfile"
8716 + msgstr "kan nie fstat op paklêer doen nie"
8717 +
8718 + msgid "pack has junk at the end"
8719 + msgstr "pak het rommel aan die einde"
8720 +
8721 + msgid "confusion beyond insanity in parse_pack_objects()"
8722 + msgstr "verwarring buite alle rede in parse_pack_objects()"
8723 +
8724 + msgid "Resolving deltas"
8725 + msgstr "Los deltas op"
8726 +
8727 + #, c-format
8728 + msgid "unable to create thread: %s"
8729 + msgstr "kan nie draad skep nie: %s"
8730 +
8731 + msgid "confusion beyond insanity"
8732 + msgstr "verwarring buite alle rede"
8733 +
8734 + #, c-format
8735 + msgid "completed with %d local object"
8736 + msgid_plural "completed with %d local objects"
8737 + msgstr[0] "voltooi met %d plaaslike objek"
8738 + msgstr[1] "voltooi met %d plaaslike objekte"
8739 +
8740 + #, c-format
8741 + msgid "Unexpected tail checksum for %s (disk corruption?)"
8742 + msgstr "Onverwagte stert-kontrolesom vir %s (skyfkorrupsie?)"
8743 +
8744 + #, c-format
8745 + msgid "pack has %d unresolved delta"
8746 + msgid_plural "pack has %d unresolved deltas"
8747 + msgstr[0] "pak het %d onopgeloste delta"
8748 + msgstr[1] "pak het %d onopgeloste deltas"
8749 +
8750 + #, c-format
8751 + msgid "unable to deflate appended object (%d)"
8752 + msgstr "kan nie aangehegte objek ontspan nie (%d)"
8753 +
8754 + #, c-format
8755 + msgid "local object %s is corrupt"
8756 + msgstr "plaaslike objek %s is korrup"
8757 +
8758 + #, c-format
8759 + msgid "packfile name '%s' does not end with '.%s'"
8760 + msgstr "paklêernaam '%s' eindig nie met '.%s' nie"
8761 +
8762 + #, c-format
8763 + msgid "cannot write %s file '%s'"
8764 + msgstr "kan nie %s-lêer '%s' skryf nie"
8765 +
8766 + #, c-format
8767 + msgid "cannot close written %s file '%s'"
8768 + msgstr "kan nie geskrewe %s-lêer '%s' toemaak nie"
8769 +
8770 + #, c-format
8771 + msgid "unable to rename temporary '*.%s' file to '%s'"
8772 + msgstr "kan nie tydelike '*.%s'-lêer na '%s' hernoem nie"
8773 +
8774 + msgid "error while closing pack file"
8775 + msgstr "fout terwyl paklêer toegemaak word"
8776 +
8777 + #, c-format
8778 + msgid "bad pack.indexVersion=%<PRIu32>"
8779 + msgstr "slegte pack.indexVersion=%<PRIu32>"
8780 +
8781 + #, c-format
8782 + msgid "Cannot open existing pack file '%s'"
8783 + msgstr "Kan nie bestaande paklêer '%s' oopmaak nie"
8784 +
8785 + #, c-format
8786 + msgid "Cannot open existing pack idx file for '%s'"
8787 + msgstr "Kan nie bestaande pak-idx-lêer vir '%s' oopmaak nie"
8788 +
8789 + #, c-format
8790 + msgid "non delta: %d object"
8791 + msgid_plural "non delta: %d objects"
8792 + msgstr[0] "nie-delta: %d objek"
8793 + msgstr[1] "nie-delta: %d objekte"
8794 +
8795 + #, c-format
8796 + msgid "chain length = %d: %lu object"
8797 + msgid_plural "chain length = %d: %lu objects"
8798 + msgstr[0] "kettinglengte = %d: %lu objek"
8799 + msgstr[1] "kettinglengte = %d: %lu objekte"
8800 +
8801 + msgid "could not start pack-objects to repack local links"
8802 + msgstr "kon nie pack-objects begin om plaaslike skakels te herpak nie"
8803 +
8804 + msgid "failed to feed local object to pack-objects"
8805 + msgstr "kon nie plaaslike objek aan pack-objects voer nie"
8806 +
8807 + msgid "index-pack: Expecting full hex object ID lines only from pack-objects."
8808 + msgstr ""
8809 + "index-pack: Verwag slegs volledige heksadesimale objek-ID-reëls van pack-"
8810 + "objects."
8811 +
8812 + msgid "could not finish pack-objects to repack local links"
8813 + msgstr "kon nie pack-objects voltooi om plaaslike skakels te herpak nie"
8814 +
8815 + msgid "Cannot come back to cwd"
8816 + msgstr "Kan nie na die huidige werkgids terugkeer nie"
8817 +
8818 + #, c-format
8819 + msgid "bad --pack_header: %s"
8820 + msgstr "slegte --pack_header: %s"
8821 +
8822 + #, c-format
8823 + msgid "bad %s"
8824 + msgstr "slegte %s"
8825 +
8826 + #, c-format
8827 + msgid "unknown hash algorithm '%s'"
8828 + msgstr "onbekende hash-algoritme '%s'"
8829 +
8830 + msgid "--promisor cannot be used with a pack name"
8831 + msgstr "--promisor kan nie saam met 'n paknaam gebruik word nie"
8832 +
8833 + msgid "--stdin requires a git repository"
8834 + msgstr "--stdin vereis 'n Git-bewaarplek"
8835 +
8836 + msgid "--verify with no packfile name given"
8837 + msgstr "--verify sonder 'n paklêernaam gegee"
8838 +
8839 + msgid "cannot perform queued object checks outside of a repository"
8840 + msgstr ""
8841 + "kan nie in die tou geplaasde objekkontroles buite 'n bewaarplek doen nie"
8842 +
8843 + msgid "fsck error in pack objects"
8844 + msgstr "fsck-fout in pakobjekte"
8845 +
8846 + msgid ""
8847 + "git init [-q | --quiet] [--bare] [--template=<template-directory>]\n"
8848 + " [--separate-git-dir <git-dir>] [--object-format=<format>]\n"
8849 + " [--ref-format=<format>]\n"
8850 + " [-b <branch-name> | --initial-branch=<branch-name>]\n"
8851 + " [--shared[=<permissions>]] [<directory>]"
8852 + msgstr ""
8853 + "git init [-q | --quiet] [--bare] [--template=<sjabloongids>]\n"
8854 + " [--separate-git-dir <Git-gids>] [--object-format=<formaat>]\n"
8855 + " [--ref-format=<formaat>]\n"
8856 + " [-b <taknaam> | --initial-branch=<taknaam>]\n"
8857 + " [--shared[=<toestemmings>]] [<gids>]"
8858 +
8859 + msgid "permissions"
8860 + msgstr "toestemmings"
8861 +
8862 + msgid "specify that the git repository is to be shared amongst several users"
8863 + msgstr ""
8864 + "spesifiseer dat die Git-bewaarplek tussen verskeie gebruikers gedeel word"
8865 +
8866 + msgid "override the name of the initial branch"
8867 + msgstr "oorskryf die naam van die aanvanklike tak"
8868 +
8869 + msgid "hash"
8870 + msgstr "hutsing"
8871 +
8872 + msgid "specify the hash algorithm to use"
8873 + msgstr "spesifiseer die hutsalgoritme om te gebruik"
8874 +
8875 + #, c-format
8876 + msgid "cannot mkdir %s"
8877 + msgstr "kan nie gids %s skep nie"
8878 +
8879 + #, c-format
8880 + msgid "cannot chdir to %s"
8881 + msgstr "kan nie na %s verander nie"
8882 +
8883 + #, c-format
8884 + msgid ""
8885 + "%s (or --work-tree=<directory>) not allowed without specifying %s (or --git-"
8886 + "dir=<directory>)"
8887 + msgstr ""
8888 + "%s (of --work-tree=<gids>) word nie toegelaat sonder om %s (of --git-"
8889 + "dir=<gids>) te spesifiseer nie"
8890 +
8891 + #, c-format
8892 + msgid "Cannot access work tree '%s'"
8893 + msgstr "Kan nie werkboom '%s' bereik nie"
8894 +
8895 + msgid "--separate-git-dir incompatible with bare repository"
8896 + msgstr "--separate-git-dir is onversoenbaar met kaal bewaarplek"
8897 +
8898 + msgid ""
8899 + "git interpret-trailers [--in-place] [--trim-empty]\n"
8900 + " [(--trailer (<key>|<key-alias>)[(=|:)<value>])...]\n"
8901 + " [--parse] [<file>...]"
8902 + msgstr ""
8903 + "git interpret-trailers [--in-place] [--trim-empty]\n"
8904 + " [(--trailer (<sleutel>|<sleutelalias>)"
8905 + "[(=|:)<waarde>])...]\n"
8906 + " [--parse] [<lêer>...]"
8907 +
8908 + #, c-format
8909 + msgid "could not read input file '%s'"
8910 + msgstr "kon nie invoerlêer '%s' lees nie"
8911 +
8912 + msgid "could not read from stdin"
8913 + msgstr "kon nie van standaardinvoer lees nie"
8914 +
8915 + #, c-format
8916 + msgid "could not write to temporary file '%s'"
8917 + msgstr "kon nie na tydelike lêer '%s' skryf nie"
8918 +
8919 + #, c-format
8920 + msgid "could not rename temporary file to %s"
8921 + msgstr "kon nie tydelike lêer na %s hernoem nie"
8922 +
8923 + msgid "edit files in place"
8924 + msgstr "wysig lêers ter plaatse"
8925 +
8926 + msgid "trim empty trailers"
8927 + msgstr "snoei leë aanhangsels"
8928 +
8929 + msgid "placement"
8930 + msgstr "plasing"
8931 +
8932 + msgid "where to place the new trailer"
8933 + msgstr "waar om die nuwe aanhangsel te plaas"
8934 +
8935 + msgid "action if trailer already exists"
8936 + msgstr "aksie as aanhangsel reeds bestaan"
8937 +
8938 + msgid "action if trailer is missing"
8939 + msgstr "aksie as aanhangsel ontbreek"
8940 +
8941 + msgid "output only the trailers"
8942 + msgstr "voer slegs die aanhangsels uit"
8943 +
8944 + msgid "do not apply trailer.<key-alias> configuration variables"
8945 + msgstr "moenie trailer.<key-alias>-konfigurasieveranderlikes toepas nie"
8946 +
8947 + msgid "reformat multiline trailer values as single-line values"
8948 + msgstr "herformateer meerreël-aanhangselwaardes as enkelreëlwaardes"
8949 +
8950 + msgid "alias for --only-trailers --only-input --unfold"
8951 + msgstr "alias vir --only-trailers --only-input --unfold"
8952 +
8953 + msgid "do not treat \"---\" as the end of input"
8954 + msgstr "moenie \"---\" as die einde van invoer beskou nie"
8955 +
8956 + msgid "trailer(s) to add"
8957 + msgstr "aanhangsel(s) om by te voeg"
8958 +
8959 + msgid "--trailer with --only-input does not make sense"
8960 + msgstr "--trailer met --only-input maak nie sin nie"
8961 +
8962 + msgid "no input file given for in-place editing"
8963 + msgstr "geen invoerlêer vir ter plaatse-redigering gegee nie"
8964 +
8965 + msgid "last-modified can only operate on one commit at a time"
8966 + msgstr "last-modified kan slegs op een vaslegging op 'n slag werk"
8967 +
8968 + #, c-format
8969 + msgid "revision argument '%s' is a %s, not a commit-ish"
8970 + msgstr "hersieningsargument '%s' is 'n %s, nie 'n vasleggingagtige nie"
8971 +
8972 + #, c-format
8973 + msgid "unknown last-modified argument: %s"
8974 + msgstr "onbekende last-modified-argument: %s"
8975 +
8976 + msgid ""
8977 + "git last-modified [--recursive] [--show-trees] [--max-depth=<depth>] [-z]\n"
8978 + " [<revision-range>] [[--] <pathspec>...]"
8979 + msgstr ""
8980 + "git last-modified [--recursive] [--show-trees] [--max-depth=<diepte>] [-z]\n"
8981 + " [<hersieningsreeks>] [[--] <padspesifikasie>...]"
8982 +
8983 + msgid "recurse into subtrees"
8984 + msgstr "gaan rekursief in subbome in"
8985 +
8986 + msgid "show tree entries when recursing into subtrees"
8987 + msgstr "wys boominskrywings wanneer rekursief in subbome ingegaan word"
8988 +
8989 + msgid "maximum tree depth to recurse"
8990 + msgstr "maksimum boomdiepte vir rekursie"
8991 +
8992 + msgid "lines are separated with NUL character"
8993 + msgstr "reëls word met NUL-karakter geskei"
8994 +
8995 + msgid "git log [<options>] [<revision-range>] [[--] <path>...]"
8996 + msgstr "git log [<opsies>] [<hersieningsreeks>] [[--] <pad>...]"
8997 +
8998 + msgid "git show [<options>] <object>..."
8999 + msgstr "git show [<opsies>] <objek>..."
9000 +
9001 + #, c-format
9002 + msgid "invalid --decorate option: %s"
9003 + msgstr "ongeldige opsie --decorate: %s"
9004 +
9005 + msgid "suppress diff output"
9006 + msgstr "onderdruk verskilafvoer"
9007 +
9008 + msgid "show source"
9009 + msgstr "wys bron"
9010 +
9011 + msgid "clear all previously-defined decoration filters"
9012 + msgstr "verwyder alle voorheen gedefinieerde versieringsfilters"
9013 +
9014 + msgid "only decorate refs that match <pattern>"
9015 + msgstr "versier slegs verwysings wat by <patroon> pas"
9016 +
9017 + msgid "do not decorate refs that match <pattern>"
9018 + msgstr "moenie verwysings versier wat by <patroon> pas nie"
9019 +
9020 + msgid "decorate options"
9021 + msgstr "versieringsopsies"
9022 +
9023 + msgid ""
9024 + "trace the evolution of line range <start>,<end> or function :<funcname> in "
9025 + "<file>"
9026 + msgstr ""
9027 + "volg die ontwikkeling van reëlreeks <begin>,<einde> of funksie :"
9028 + "<funksienaam> in <lêer>"
9029 +
9030 + msgid "-L<range>:<file> cannot be used with pathspec"
9031 + msgstr "-L<reeks>:<lêer> kan nie met padspesifikasie gebruik word nie"
9032 +
9033 + msgid ""
9034 + "\n"
9035 + "hint: You can replace 'git whatchanged <opts>' with:\n"
9036 + "hint:\tgit log <opts> --raw --no-merges\n"
9037 + "hint: Or make an alias:\n"
9038 + "hint:\tgit config set --global alias.whatchanged 'log --raw --no-merges'\n"
9039 + "\n"
9040 + msgstr ""
9041 + "\n"
9042 + "wenk: Jy kan 'git whatchanged <opsies>' vervang met:\n"
9043 + "wenk:\tgit log <opsies> --raw --no-merges\n"
9044 + "wenk: Of maak 'n alias:\n"
9045 + "wenk:\tgit config set --global alias.whatchanged 'log --raw --no-merges'\n"
9046 + "\n"
9047 +
9048 + #, c-format
9049 + msgid "git show %s: bad file"
9050 + msgstr "git show %s: slegte lêer"
9051 +
9052 + #, c-format
9053 + msgid "could not read object %s"
9054 + msgstr "kon nie objek %s lees nie"
9055 +
9056 + #, c-format
9057 + msgid "unknown type: %d"
9058 + msgstr "onbekende tipe: %d"
9059 +
9060 + #, c-format
9061 + msgid "%s: invalid cover from description mode"
9062 + msgstr "%s: ongeldige modus vir dekbrief uit beskrywing"
9063 +
9064 + msgid "format.headers without value"
9065 + msgstr "format.headers sonder waarde"
9066 +
9067 + #, c-format
9068 + msgid "bad boolean config value '%s' for '%s'"
9069 + msgstr "slegte Boolese konfigurasiewaarde '%s' vir '%s'"
9070 +
9071 + #, c-format
9072 + msgid ""
9073 + "'%s' used to accept any value and treat that as 'true'.\n"
9074 + "Now it only accepts boolean values, like what '%s' does.\n"
9075 + msgstr ""
9076 + "'%s' het vroeër enige waarde aanvaar en dit as 'true' behandel.\n"
9077 + "Nou aanvaar dit slegs Boolese waardes, net soos '%s'.\n"
9078 +
9079 + #, c-format
9080 + msgid "cannot open patch file %s"
9081 + msgstr "kan nie laplêer %s oopmaak nie"
9082 +
9083 + msgid "need exactly one range"
9084 + msgstr "benodig presies een reeks"
9085 +
9086 + msgid "not a range"
9087 + msgstr "nie 'n reeks nie"
9088 +
9089 + #, c-format
9090 + msgid "unable to read branch description file '%s'"
9091 + msgstr "kan nie takbeskrywingslêer '%s' lees nie"
9092 +
9093 + msgid "cover letter needs email format"
9094 + msgstr "dekbrief benodig e-posformaat"
9095 +
9096 + msgid "failed to create cover-letter file"
9097 + msgstr "kon nie dekbrieflêer skep nie"
9098 +
9099 + #, c-format
9100 + msgid "'%s' is not a valid format string"
9101 + msgstr "'%s' is nie 'n geldige formaatstring nie"
9102 +
9103 + #, c-format
9104 + msgid "insane in-reply-to: %s"
9105 + msgstr "onsinnige in-reply-to: %s"
9106 +
9107 + msgid "git format-patch [<options>] [<since> | <revision-range>]"
9108 + msgstr "git format-patch [<opsies>] [<sedert> | <hersieningsreeks>]"
9109 +
9110 + msgid "two output directories?"
9111 + msgstr "twee afvoergidse?"
9112 +
9113 + #, c-format
9114 + msgid "unknown commit %s"
9115 + msgstr "onbekende vaslegging %s"
9116 +
9117 + #, c-format
9118 + msgid "failed to resolve '%s' as a valid ref"
9119 + msgstr "kon nie '%s' as 'n geldige verwysing oplos nie"
9120 +
9121 + msgid "could not find exact merge base"
9122 + msgstr "kon nie presiese saamsmeltbasis vind nie"
9123 +
9124 + msgid ""
9125 + "failed to get upstream, if you want to record base commit automatically,\n"
9126 + "please use git branch --set-upstream-to to track a remote branch.\n"
9127 + "Or you could specify base commit by --base=<base-commit-id> manually"
9128 + msgstr ""
9129 + "kon nie stroomop kry nie; as jy die basisvaslegging outomaties wil opteken,\n"
9130 + "gebruik asseblief git branch --set-upstream-to om 'n afgeleë tak te volg.\n"
9131 + "Of jy kan die basisvaslegging handmatig met --base=<basisvaslegging-id> "
9132 + "spesifiseer"
9133 +
9134 + msgid "failed to find exact merge base"
9135 + msgstr "kon nie presiese saamsmeltbasis vind nie"
9136 +
9137 + msgid "base commit should be the ancestor of revision list"
9138 + msgstr "basisvaslegging moet die voorouer van die hersieningslys wees"
9139 +
9140 + msgid "base commit shouldn't be in revision list"
9141 + msgstr "basisvaslegging behoort nie in die hersieningslys te wees nie"
9142 +
9143 + msgid "cannot get patch id"
9144 + msgstr "kan nie lap-id kry nie"
9145 +
9146 + msgid "failed to infer range-diff origin of current series"
9147 + msgstr "kon nie range-diff-oorsprong van huidige reeks aflei nie"
9148 +
9149 + #, c-format
9150 + msgid "using '%s' as range-diff origin of current series"
9151 + msgstr "gebruik '%s' as range-diff-oorsprong van huidige reeks"
9152 +
9153 + msgid "use [PATCH n/m] even with a single patch"
9154 + msgstr "gebruik [PATCH n/m] selfs met 'n enkele lap"
9155 +
9156 + msgid "use [PATCH] even with multiple patches"
9157 + msgstr "gebruik [PATCH] selfs met veelvuldige lappe"
9158 +
9159 + msgid "print patches to standard out"
9160 + msgstr "druk lappe na standaardafvoer"
9161 +
9162 + msgid "generate a cover letter"
9163 + msgstr "genereer 'n dekbrief"
9164 +
9165 + msgid "format-spec"
9166 + msgstr "formaatspesifikasie"
9167 +
9168 + msgid "format spec used for the commit list in the cover letter"
9169 + msgstr "formaatspesifikasie gebruik vir die vasleggingslys in die dekbrief"
9170 +
9171 + msgid "use simple number sequence for output file names"
9172 + msgstr "gebruik eenvoudige nommerreeks vir afvoerlêername"
9173 +
9174 + msgid "sfx"
9175 + msgstr "agtervoegsel"
9176 +
9177 + msgid "use <sfx> instead of '.patch'"
9178 + msgstr "gebruik <agtervoegsel> in plaas van '.patch'"
9179 +
9180 + msgid "start numbering patches at <n> instead of 1"
9181 + msgstr "begin lappe by <n> nommer in plaas van 1"
9182 +
9183 + msgid "reroll-count"
9184 + msgstr "herrol-telling"
9185 +
9186 + msgid "mark the series as Nth re-roll"
9187 + msgstr "merk die reeks as die N-de herrol"
9188 +
9189 + msgid "max length of output filename"
9190 + msgstr "maksimum lengte van afvoerlêernaam"
9191 +
9192 + msgid "rfc"
9193 + msgstr "rfc"
9194 +
9195 + msgid "add <rfc> (default 'RFC') before 'PATCH'"
9196 + msgstr "voeg <rfc> (verstek 'RFC') voor 'PATCH' by"
9197 +
9198 + msgid "cover-from-description-mode"
9199 + msgstr "dekbrief-uit-beskrywing-modus"
9200 +
9201 + msgid "generate parts of a cover letter based on a branch's description"
9202 + msgstr "genereer dele van 'n dekbrief gebaseer op 'n tak se beskrywing"
9203 +
9204 + msgid "use branch description from file"
9205 + msgstr "gebruik takbeskrywing uit lêer"
9206 +
9207 + msgid "use [<prefix>] instead of [PATCH]"
9208 + msgstr "gebruik [<voorvoegsel>] in plaas van [PATCH]"
9209 +
9210 + msgid "store resulting files in <dir>"
9211 + msgstr "stoor resulterende lêers in <gids>"
9212 +
9213 + msgid "don't strip/add [PATCH]"
9214 + msgstr "moenie [PATCH] verwyder/byvoeg nie"
9215 +
9216 + msgid "don't output binary diffs"
9217 + msgstr "moenie binêre verskille uitvoer nie"
9218 +
9219 + msgid "output all-zero hash in From header"
9220 + msgstr "voer 'n hutswaarde van slegs nulle in die From-kopreël uit"
9221 +
9222 + msgid "don't include a patch matching a commit upstream"
9223 + msgstr "moenie 'n lap insluit wat by 'n vaslegging stroomop pas nie"
9224 +
9225 + msgid "show patch format instead of default (patch + stat)"
9226 + msgstr "wys lapformaat in plaas van verstek (lap + statistiek)"
9227 +
9228 + msgid "Messaging"
9229 + msgstr "Boodskappe"
9230 +
9231 + msgid "header"
9232 + msgstr "kopreël"
9233 +
9234 + msgid "add email header"
9235 + msgstr "voeg e-poskopreël by"
9236 +
9237 + msgid "email"
9238 + msgstr "e-pos"
9239 +
9240 + msgid "add To: header"
9241 + msgstr "voeg To:-kopreël by"
9242 +
9243 + msgid "add Cc: header"
9244 + msgstr "voeg Cc:-kopreël by"
9245 +
9246 + msgid "ident"
9247 + msgstr "identiteit"
9248 +
9249 + msgid "set From address to <ident> (or committer ident if absent)"
9250 + msgstr ""
9251 + "stel From-adres op <identiteit> (of vaslegger-identiteit indien afwesig)"
9252 +
9253 + msgid "message-id"
9254 + msgstr "boodskap-id"
9255 +
9256 + msgid "make first mail a reply to <message-id>"
9257 + msgstr "maak eerste e-pos 'n antwoord op <boodskap-id>"
9258 +
9259 + msgid "boundary"
9260 + msgstr "grens"
9261 +
9262 + msgid "attach the patch"
9263 + msgstr "heg die lap aan"
9264 +
9265 + msgid "inline the patch"
9266 + msgstr "sluit die lap in die teks in"
9267 +
9268 + msgid "enable message threading, styles: shallow, deep"
9269 + msgstr "aktiveer boodskapdrade, style: shallow, deep"
9270 +
9271 + msgid "signature"
9272 + msgstr "handtekening"
9273 +
9274 + msgid "add a signature"
9275 + msgstr "voeg 'n handtekening by"
9276 +
9277 + msgid "base-commit"
9278 + msgstr "basisvaslegging"
9279 +
9280 + msgid "add prerequisite tree info to the patch series"
9281 + msgstr "voeg voorvereiste boominligting by die lapreeks"
9282 +
9283 + msgid "add a signature from a file"
9284 + msgstr "voeg 'n handtekening uit 'n lêer by"
9285 +
9286 + msgid "don't print the patch filenames"
9287 + msgstr "moenie die laplêername druk nie"
9288 +
9289 + msgid "show progress while generating patches"
9290 + msgstr "wys vordering terwyl lappe gegenereer word"
9291 +
9292 + msgid "show changes against <rev> in cover letter or single patch"
9293 + msgstr "wys veranderinge teenoor <hersiening> in dekbrief of enkele lap"
9294 +
9295 + msgid "show changes against <refspec> in cover letter or single patch"
9296 + msgstr ""
9297 + "wys veranderinge teenoor <verwysingspesifikasie> in dekbrief of enkele lap"
9298 +
9299 + msgid "percentage by which creation is weighted"
9300 + msgstr "persentasie waarmee skepping geweeg word"
9301 +
9302 + msgid "show in-body From: even if identical to the e-mail header"
9303 + msgstr "wys From: in die liggaam selfs as dit identies aan die e-poskopreël is"
9304 +
9305 + #, c-format
9306 + msgid "invalid ident line: %s"
9307 + msgstr "ongeldige identiteitsreël: %s"
9308 +
9309 + msgid "--name-only does not make sense"
9310 + msgstr "--name-only maak nie sin nie"
9311 +
9312 + msgid "--name-status does not make sense"
9313 + msgstr "--name-status maak nie sin nie"
9314 +
9315 + msgid "--check does not make sense"
9316 + msgstr "--check maak nie sin nie"
9317 +
9318 + msgid "--remerge-diff does not make sense"
9319 + msgstr "--remerge-diff maak nie sin nie"
9320 +
9321 + #, c-format
9322 + msgid "could not create directory '%s'"
9323 + msgstr "kon nie gids '%s' skep nie"
9324 +
9325 + msgid "--interdiff requires --cover-letter or single patch"
9326 + msgstr "--interdiff vereis --cover-letter of enkele lap"
9327 +
9328 + msgid "Interdiff:"
9329 + msgstr "Tussenverskil:"
9330 +
9331 + #, c-format
9332 + msgid "Interdiff against v%d:"
9333 + msgstr "Tussenverskil teenoor v%d:"
9334 +
9335 + msgid "--range-diff requires --cover-letter or single patch"
9336 + msgstr "--range-diff vereis --cover-letter of enkele lap"
9337 +
9338 + msgid "Range-diff:"
9339 + msgstr "Reeksverskil:"
9340 +
9341 + #, c-format
9342 + msgid "Range-diff against v%d:"
9343 + msgstr "Reeksverskil teenoor v%d:"
9344 +
9345 + #, c-format
9346 + msgid "unable to read signature file '%s'"
9347 + msgstr "kan nie handtekeninglêer '%s' lees nie"
9348 +
9349 + msgid "Generating patches"
9350 + msgstr "Genereer lappe"
9351 +
9352 + msgid "failed to create output files"
9353 + msgstr "kon nie afvoerlêers skep nie"
9354 +
9355 + msgid "git cherry [-v] [<upstream> [<head> [<limit>]]]"
9356 + msgstr "git cherry [-v] [<stroomop> [<kop> [<limiet>]]]"
9357 +
9358 + #, c-format
9359 + msgid ""
9360 + "Could not find a tracked remote branch, please specify <upstream> manually.\n"
9361 + msgstr ""
9362 + "Kon nie 'n nagespoorde afgeleë tak vind nie; spesifiseer asseblief "
9363 + "<stroomop> handmatig.\n"
9364 +
9365 + #, c-format
9366 + msgid "could not get object info about '%s'"
9367 + msgstr "kon nie objekinligting oor '%s' kry nie"
9368 +
9369 + msgid "git ls-files [<options>] [<file>...]"
9370 + msgstr "git ls-files [<opsies>] [<lêer>...]"
9371 +
9372 + msgid "separate paths with the NUL character"
9373 + msgstr "skei paaie met die NUL-karakter"
9374 +
9375 + msgid "identify the file status with tags"
9376 + msgstr "identifiseer die lêerstatus met merkers"
9377 +
9378 + msgid "use lowercase letters for 'assume unchanged' files"
9379 + msgstr "gebruik kleinletters vir 'assume unchanged'-lêers"
9380 +
9381 + msgid "use lowercase letters for 'fsmonitor clean' files"
9382 + msgstr "gebruik kleinletters vir 'fsmonitor clean'-lêers"
9383 +
9384 + msgid "show cached files in the output (default)"
9385 + msgstr "wys gekasde lêers in die afvoer (verstek)"
9386 +
9387 + msgid "show deleted files in the output"
9388 + msgstr "wys geskrapte lêers in die afvoer"
9389 +
9390 + msgid "show modified files in the output"
9391 + msgstr "wys gewysigde lêers in die afvoer"
9392 +
9393 + msgid "show other files in the output"
9394 + msgstr "wys ander lêers in die afvoer"
9395 +
9396 + msgid "show ignored files in the output"
9397 + msgstr "wys geïgnoreerde lêers in die afvoer"
9398 +
9399 + msgid "show staged contents' object name in the output"
9400 + msgstr "wys die objeknaam van geplaasde inhoud in die afvoer"
9401 +
9402 + msgid "show files on the filesystem that need to be removed"
9403 + msgstr "wys lêers op die lêerstelsel wat verwyder moet word"
9404 +
9405 + msgid "show 'other' directories' names only"
9406 + msgstr "wys slegs die name van 'ander' gidse"
9407 +
9408 + msgid "show line endings of files"
9409 + msgstr "wys reëleindes van lêers"
9410 +
9411 + msgid "don't show empty directories"
9412 + msgstr "moenie leë gidse wys nie"
9413 +
9414 + msgid "show unmerged files in the output"
9415 + msgstr "wys lêers wat nie saamgesmelt is nie in die afvoer"
9416 +
9417 + msgid "show resolve-undo information"
9418 + msgstr "wys resolve-undo-inligting"
9419 +
9420 + msgid "skip files matching pattern"
9421 + msgstr "slaan lêers oor wat by patroon pas"
9422 +
9423 + msgid "read exclude patterns from <file>"
9424 + msgstr "lees uitsluitingspatrone uit <lêer>"
9425 +
9426 + msgid "read additional per-directory exclude patterns in <file>"
9427 + msgstr "lees bykomende per-gids-uitsluitingspatrone in <lêer>"
9428 +
9429 + msgid "add the standard git exclusions"
9430 + msgstr "voeg die standaard Git-uitsluitings by"
9431 +
9432 + msgid "make the output relative to the project top directory"
9433 + msgstr "maak die afvoer relatief tot die projek se topgids"
9434 +
9435 + msgid "if any <file> is not in the index, treat this as an error"
9436 + msgstr "as enige <lêer> nie in die indeks is nie, behandel dit as 'n fout"
9437 +
9438 + msgid "tree-ish"
9439 + msgstr "boomagtige"
9440 +
9441 + msgid "pretend that paths removed since <tree-ish> are still present"
9442 + msgstr ""
9443 + "maak asof paaie wat sedert <boomagtige> verwyder is, steeds teenwoordig is"
9444 +
9445 + msgid "show debugging data"
9446 + msgstr "wys ontfoutingsdata"
9447 +
9448 + msgid "suppress duplicate entries"
9449 + msgstr "onderdruk duplikaatinskrywings"
9450 +
9451 + msgid "show sparse directories in the presence of a sparse index"
9452 + msgstr "wys yl gidse wanneer 'n yl indeks teenwoordig is"
9453 +
9454 + msgid ""
9455 + "--format cannot be used with -s, -o, -k, -t, --resolve-undo, --deduplicate, "
9456 + "--eol"
9457 + msgstr ""
9458 + "--format kan nie saam met -s, -o, -k, -t, --resolve-undo, --deduplicate, --"
9459 + "eol gebruik word nie"
9460 +
9461 + msgid ""
9462 + "git ls-remote [--branches] [--tags] [--refs] [--upload-pack=<exec>]\n"
9463 + " [-q | --quiet] [--exit-code] [--get-url] [--sort=<key>]\n"
9464 + " [--symref] [<repository> [<patterns>...]]"
9465 + msgstr ""
9466 + "git ls-remote [--branches] [--tags] [--refs] [--upload-pack=<uitvoerbare>]\n"
9467 + " [-q | --quiet] [--exit-code] [--get-url] [--sort=<sleutel>]\n"
9468 + " [--symref] [<bewaarplek> [<patrone>...]]"
9469 +
9470 + msgid "do not print remote URL"
9471 + msgstr "moenie afgeleë URL druk nie"
9472 +
9473 + msgid "exec"
9474 + msgstr "uitvoerbare"
9475 +
9476 + msgid "path of git-upload-pack on the remote host"
9477 + msgstr "pad van git-upload-pack op die afgeleë gasheer"
9478 +
9479 + msgid "limit to tags"
9480 + msgstr "beperk tot etikette"
9481 +
9482 + msgid "limit to branches"
9483 + msgstr "beperk tot takke"
9484 +
9485 + msgid "deprecated synonym for --branches"
9486 + msgstr "verouderde sinoniem vir --branches"
9487 +
9488 + msgid "do not show peeled tags"
9489 + msgstr "moenie afgeskilde etikette wys nie"
9490 +
9491 + msgid "take url.<base>.insteadOf into account"
9492 + msgstr "neem url.<base>.insteadOf in ag"
9493 +
9494 + msgid "exit with exit code 2 if no matching refs are found"
9495 + msgstr "verlaat met uittreekode 2 as geen passende verwysings gevind word nie"
9496 +
9497 + msgid "show underlying ref in addition to the object pointed by it"
9498 + msgstr "wys onderliggende verwysing benewens die objek waarna dit wys"
9499 +
9500 + msgid "git ls-tree [<options>] <tree-ish> [<path>...]"
9501 + msgstr "git ls-tree [<opsies>] <boomagtige> [<pad>...]"
9502 +
9503 + msgid "only show trees"
9504 + msgstr "wys slegs bome"
9505 +
9506 + msgid "show trees when recursing"
9507 + msgstr "wys bome tydens rekursie"
9508 +
9509 + msgid "terminate entries with NUL byte"
9510 + msgstr "sluit inskrywings met NUL-greep af"
9511 +
9512 + msgid "include object size"
9513 + msgstr "sluit objekgrootte in"
9514 +
9515 + msgid "list only filenames"
9516 + msgstr "lys slegs lêername"
9517 +
9518 + msgid "list only objects"
9519 + msgstr "lys slegs objekte"
9520 +
9521 + msgid "use full path names"
9522 + msgstr "gebruik volledige padname"
9523 +
9524 + msgid "list entire tree; not just current directory (implies --full-name)"
9525 + msgstr "lys hele boom; nie net huidige gids nie (impliseer --full-name)"
9526 +
9527 + msgid "--format can't be combined with other format-altering options"
9528 + msgstr ""
9529 + "--format kan nie met ander formaatveranderende opsies gekombineer word nie"
9530 +
9531 + #. TRANSLATORS: keep <> in "<" mail ">" info.
9532 + msgid "git mailinfo [<options>] <msg> <patch> < mail >info"
9533 + msgstr "git mailinfo [<opsies>] <boodskap> <lap> < mail >info"
9534 +
9535 + msgid "keep subject"
9536 + msgstr "behou onderwerp"
9537 +
9538 + msgid "keep non patch brackets in subject"
9539 + msgstr "behou nie-lap-hakies in onderwerp"
9540 +
9541 + msgid "copy Message-ID to the end of commit message"
9542 + msgstr "kopieer Message-ID na die einde van die vasleggingsboodskap"
9543 +
9544 + msgid "re-code metadata to i18n.commitEncoding"
9545 + msgstr "herkodeer metadata na i18n.commitEncoding"
9546 +
9547 + msgid "disable charset re-coding of metadata"
9548 + msgstr "deaktiveer karakterstel-herkodering van metadata"
9549 +
9550 + msgid "encoding"
9551 + msgstr "kodering"
9552 +
9553 + msgid "re-code metadata to this encoding"
9554 + msgstr "herkodeer metadata na hierdie kodering"
9555 +
9556 + msgid "use scissors"
9557 + msgstr "gebruik skêr"
9558 +
9559 + msgid "<action>"
9560 + msgstr "<aksie>"
9561 +
9562 + msgid "action when quoted CR is found"
9563 + msgstr "aksie wanneer aangehaalde CR gevind word"
9564 +
9565 + msgid "use headers in message's body"
9566 + msgstr "gebruik kopreëls in die boodskap se liggaam"
9567 +
9568 + msgid "reading patches from stdin/tty..."
9569 + msgstr "lees lappe van stdin/tty..."
9570 +
9571 + #, c-format
9572 + msgid "empty mbox: '%s'"
9573 + msgstr "leë mbox: '%s'"
9574 +
9575 + msgid "git merge-base [-a | --all] <commit> <commit>..."
9576 + msgstr "git merge-base [-a | --all] <vaslegging> <vaslegging>..."
9577 +
9578 + msgid "git merge-base [-a | --all] --octopus <commit>..."
9579 + msgstr "git merge-base [-a | --all] --octopus <vaslegging>..."
9580 +
9581 + msgid "git merge-base --is-ancestor <commit> <commit>"
9582 + msgstr "git merge-base --is-ancestor <vaslegging> <vaslegging>"
9583 +
9584 + msgid "git merge-base --independent <commit>..."
9585 + msgstr "git merge-base --independent <vaslegging>..."
9586 +
9587 + msgid "git merge-base --fork-point <ref> [<commit>]"
9588 + msgstr "git merge-base --fork-point <verwysing> [<vaslegging>]"
9589 +
9590 + msgid "output all common ancestors"
9591 + msgstr "voer alle gemeenskaplike voorouers uit"
9592 +
9593 + msgid "find ancestors for a single n-way merge"
9594 + msgstr "vind voorouers vir 'n enkele n-rigting-saamsmelting"
9595 +
9596 + msgid "list revs not reachable from others"
9597 + msgstr "lys hersienings wat nie vanaf ander bereikbaar is nie"
9598 +
9599 + msgid "is the first one ancestor of the other?"
9600 + msgstr "is die eerste een 'n voorouer van die ander?"
9601 +
9602 + msgid "find where <commit> forked from reflog of <ref>"
9603 + msgstr "vind waar <vaslegging> van die reflog van <verwysing> afgetak het"
9604 +
9605 + msgid ""
9606 + "git merge-file [<options>] [-L <name1> [-L <orig> [-L <name2>]]] <file1> "
9607 + "<orig-file> <file2>"
9608 + msgstr ""
9609 + "git merge-file [<opsies>] [-L <naam1> [-L <oorspr> [-L <naam2>]]] <lêer1> "
9610 + "<oorspr-lêer> <lêer2>"
9611 +
9612 + msgid "send results to standard output"
9613 + msgstr "stuur resultate na standaardafvoer"
9614 +
9615 + msgid "use object IDs instead of filenames"
9616 + msgstr "gebruik objek-ID's in plaas van lêername"
9617 +
9618 + msgid "use a diff3 based merge"
9619 + msgstr "gebruik 'n diff3-gebaseerde saamsmelting"
9620 +
9621 + msgid "use a zealous diff3 based merge"
9622 + msgstr "gebruik 'n ywerige diff3-gebaseerde saamsmelting"
9623 +
9624 + msgid "for conflicts, use this marker size"
9625 + msgstr "gebruik hierdie merkergrootte vir konflikte"
9626 +
9627 + msgid "do not warn about conflicts"
9628 + msgstr "moenie oor konflikte waarsku nie"
9629 +
9630 + msgid "set labels for file1/orig-file/file2"
9631 + msgstr "stel etiketname vir lêer1/oorspr-lêer/lêer2"
9632 +
9633 + #, c-format
9634 + msgid "object '%s' does not exist"
9635 + msgstr "objek '%s' bestaan nie"
9636 +
9637 + msgid "Could not write object file"
9638 + msgstr "Kon nie objeklêer skryf nie"
9639 +
9640 + #, c-format
9641 + msgid "unknown option %s"
9642 + msgstr "onbekende opsie %s"
9643 +
9644 + #, c-format
9645 + msgid "could not parse object '%s'"
9646 + msgstr "kon nie objek '%s' ontleed nie"
9647 +
9648 + #, c-format
9649 + msgid "cannot handle more than %d base. Ignoring %s."
9650 + msgid_plural "cannot handle more than %d bases. Ignoring %s."
9651 + msgstr[0] "kan nie meer as %d basis hanteer nie. %s word geïgnoreer."
9652 + msgstr[1] "kan nie meer as %d basisse hanteer nie. %s word geïgnoreer."
9653 +
9654 + msgid "not handling anything other than two heads merge."
9655 + msgstr "hanteer niks anders as 'n saamsmelting van twee koppe nie."
9656 +
9657 + #, c-format
9658 + msgid "could not resolve ref '%s'"
9659 + msgstr "kon nie verwysing '%s' oplos nie"
9660 +
9661 + #, c-format
9662 + msgid "Merging %s with %s\n"
9663 + msgstr "Smelt %s met %s saam\n"
9664 +
9665 + #, c-format
9666 + msgid "could not parse as tree '%s'"
9667 + msgstr "kon nie '%s' as boom ontleed nie"
9668 +
9669 + msgid "not something we can merge"
9670 + msgstr "nie iets wat ons kan saamsmelt nie"
9671 +
9672 + msgid "refusing to merge unrelated histories"
9673 + msgstr "weier om onverwante geskiedenisse saam te smelt"
9674 +
9675 + msgid "failure to merge"
9676 + msgstr "saamsmelting het misluk"
9677 +
9678 + msgid "git merge-tree [--write-tree] [<options>] <branch1> <branch2>"
9679 + msgstr "git merge-tree [--write-tree] [<opsies>] <tak1> <tak2>"
9680 +
9681 + msgid "git merge-tree [--trivial-merge] <base-tree> <branch1> <branch2>"
9682 + msgstr "git merge-tree [--trivial-merge] <basisboom> <tak1> <tak2>"
9683 +
9684 + msgid "do a real merge instead of a trivial merge"
9685 + msgstr "doen 'n regte saamsmelting in plaas van 'n triviale saamsmelting"
9686 +
9687 + msgid "do a trivial merge only"
9688 + msgstr "doen slegs 'n triviale saamsmelting"
9689 +
9690 + msgid "also show informational/conflict messages"
9691 + msgstr "wys ook inligting-/konflikboodskappe"
9692 +
9693 + msgid "suppress all output; only exit status wanted"
9694 + msgstr "onderdruk alle afvoer; slegs uittreestatus word verlang"
9695 +
9696 + msgid "list filenames without modes/oids/stages"
9697 + msgstr "lys lêername sonder modusse/oid's/stadiums"
9698 +
9699 + msgid "allow merging unrelated histories"
9700 + msgstr "laat saamsmelting van onverwante geskiedenisse toe"
9701 +
9702 + msgid "perform multiple merges, one per line of input"
9703 + msgstr "voer veelvuldige saamsmeltings uit, een per invoerreël"
9704 +
9705 + msgid "specify a merge-base for the merge"
9706 + msgstr "spesifiseer 'n saamsmeltbasis vir die saamsmelting"
9707 +
9708 + msgid "option=value"
9709 + msgstr "opsie=waarde"
9710 +
9711 + msgid "option for selected merge strategy"
9712 + msgstr "opsie vir gekose saamsmeltstrategie"
9713 +
9714 + msgid "--trivial-merge is incompatible with all other options"
9715 + msgstr "--trivial-merge is onversoenbaar met alle ander opsies"
9716 +
9717 + #, c-format
9718 + msgid "unknown strategy option: -X%s"
9719 + msgstr "onbekende strategie-opsie: -X%s"
9720 +
9721 + #, c-format
9722 + msgid "malformed input line: '%s'."
9723 + msgstr "misvormde invoerreël: '%s'."
9724 +
9725 + msgid "git merge [<options>] [<commit>...]"
9726 + msgstr "git merge [<opsies>] [<vaslegging>...]"
9727 +
9728 + msgid "switch `m' requires a value"
9729 + msgstr "skakelaar `m' vereis 'n waarde"
9730 +
9731 + #, c-format
9732 + msgid "option `%s' requires a value"
9733 + msgstr "opsie `%s' vereis 'n waarde"
9734 +
9735 + #, c-format
9736 + msgid "Could not find merge strategy '%s'.\n"
9737 + msgstr "Kon nie saamsmeltstrategie '%s' vind nie.\n"
9738 +
9739 + #, c-format
9740 + msgid "Available strategies are:"
9741 + msgstr "Beskikbare strategieë is:"
9742 +
9743 + #, c-format
9744 + msgid "Available custom strategies are:"
9745 + msgstr "Beskikbare pasgemaakte strategieë is:"
9746 +
9747 + msgid "do not show a diffstat at the end of the merge"
9748 + msgstr "moenie 'n verskilstatistiek aan die einde van die saamsmelting wys nie"
9749 +
9750 + msgid "show a diffstat at the end of the merge"
9751 + msgstr "wys 'n verskilstatistiek aan die einde van die saamsmelting"
9752 +
9753 + msgid "(synonym to --stat)"
9754 + msgstr "(sinoniem vir --stat)"
9755 +
9756 + msgid "show a compact-summary at the end of the merge"
9757 + msgstr "wys 'n kompakte opsomming aan die einde van die saamsmelting"
9758 +
9759 + msgid "add (at most <n>) entries from shortlog to merge commit message"
9760 + msgstr ""
9761 + "voeg (hoogstens <n>) inskrywings uit shortlog by die "
9762 + "saamsmeltvasleggingsboodskap"
9763 +
9764 + msgid "create a single commit instead of doing a merge"
9765 + msgstr "skep 'n enkele vaslegging in plaas daarvan om saam te smelt"
9766 +
9767 + msgid "perform a commit if the merge succeeds (default)"
9768 + msgstr "lê vas as die saamsmelting slaag (verstek)"
9769 +
9770 + msgid "edit message before committing"
9771 + msgstr "wysig boodskap voor vaslegging"
9772 +
9773 + msgid "allow fast-forward (default)"
9774 + msgstr "laat vooruitspoel toe (verstek)"
9775 +
9776 + msgid "abort if fast-forward is not possible"
9777 + msgstr "staak as vooruitspoel nie moontlik is nie"
9778 +
9779 + msgid "verify that the named commit has a valid GPG signature"
9780 + msgstr "verifieer dat die genoemde vaslegging 'n geldige GPG-handtekening het"
9781 +
9782 + msgid "strategy"
9783 + msgstr "strategie"
9784 +
9785 + msgid "merge strategy to use"
9786 + msgstr "saamsmeltstrategie om te gebruik"
9787 +
9788 + msgid "merge commit message (for a non-fast-forward merge)"
9789 + msgstr "saamsmeltvasleggingsboodskap (vir 'n nie-vooruitspoel-saamsmelting)"
9790 +
9791 + msgid "use <name> instead of the real target"
9792 + msgstr "gebruik <naam> in plaas van die werklike teiken"
9793 +
9794 + msgid "abort the current in-progress merge"
9795 + msgstr "staak die huidige saamsmelting wat aan die gang is"
9796 +
9797 + msgid "--abort but leave index and working tree alone"
9798 + msgstr "--abort, maar laat indeks en werkboom onaangeraak"
9799 +
9800 + msgid "continue the current in-progress merge"
9801 + msgstr "gaan voort met die huidige saamsmelting wat aan die gang is"
9802 +
9803 + msgid "bypass pre-merge-commit and commit-msg hooks"
9804 + msgstr "omseil pre-merge-commit- en commit-msg-hake"
9805 +
9806 + msgid "could not run stash."
9807 + msgstr "kon nie wegbêre uitvoer nie."
9808 +
9809 + msgid "stash failed"
9810 + msgstr "wegbêre het misluk"
9811 +
9812 + msgid "read-tree failed"
9813 + msgstr "read-tree het misluk"
9814 +
9815 + msgid "Already up to date. (nothing to squash)"
9816 + msgstr "Reeds op datum. (niks om saam te pers nie)"
9817 +
9818 + msgid "Already up to date."
9819 + msgstr "Reeds op datum."
9820 +
9821 + #, c-format
9822 + msgid "Squash commit -- not updating HEAD\n"
9823 + msgstr "Saamgeperste vaslegging -- HEAD word nie bygewerk nie\n"
9824 +
9825 + #, c-format
9826 + msgid "No merge message -- not updating HEAD\n"
9827 + msgstr "Geen saamsmeltboodskap nie -- HEAD word nie bygewerk nie\n"
9828 +
9829 + #, c-format
9830 + msgid "'%s' does not point to a commit"
9831 + msgstr "'%s' wys nie na 'n vaslegging nie"
9832 +
9833 + #, c-format
9834 + msgid "Bad branch.%s.mergeoptions string: %s"
9835 + msgstr "Slegte branch.%s.mergeoptions-string: %s"
9836 +
9837 + msgid "Unable to write index."
9838 + msgstr "Kan nie indeks skryf nie."
9839 +
9840 + msgid "Not handling anything other than two heads merge."
9841 + msgstr "Hanteer niks anders as 'n saamsmelting van twee koppe nie."
9842 +
9843 + #, c-format
9844 + msgid "unable to write %s"
9845 + msgstr "kan nie %s skryf nie"
9846 +
9847 + #, c-format
9848 + msgid "Could not read from '%s'"
9849 + msgstr "Kon nie van '%s' lees nie"
9850 +
9851 + #, c-format
9852 + msgid "Not committing merge; use 'git commit' to complete the merge.\n"
9853 + msgstr ""
9854 + "Saamsmelting word nie vasgelê nie; gebruik 'git commit' om die saamsmelting "
9855 + "te voltooi.\n"
9856 +
9857 + msgid ""
9858 + "Please enter a commit message to explain why this merge is necessary,\n"
9859 + "especially if it merges an updated upstream into a topic branch.\n"
9860 + "\n"
9861 + msgstr ""
9862 + "Voer asseblief 'n vasleggingsboodskap in om te verduidelik waarom hierdie\n"
9863 + "saamsmelting nodig is, veral as dit 'n bygewerkte stroomop in 'n "
9864 + "onderwerptak\n"
9865 + "saamsmelt.\n"
9866 + "\n"
9867 +
9868 + msgid "An empty message aborts the commit.\n"
9869 + msgstr "'n Leë boodskap staak die vaslegging.\n"
9870 +
9871 + #, c-format
9872 + msgid ""
9873 + "Lines starting with '%s' will be ignored, and an empty message aborts\n"
9874 + "the commit.\n"
9875 + msgstr ""
9876 + "Reëls wat met '%s' begin, sal geïgnoreer word, en 'n leë boodskap staak\n"
9877 + "die vaslegging.\n"
9878 +
9879 + msgid "Empty commit message."
9880 + msgstr "Leë vasleggingsboodskap."
9881 +
9882 + #, c-format
9883 + msgid "Wonderful.\n"
9884 + msgstr "Wonderlik.\n"
9885 +
9886 + #, c-format
9887 + msgid "Automatic merge failed; fix conflicts and then commit the result.\n"
9888 + msgstr ""
9889 + "Outomatiese saamsmelting het misluk; los konflikte op en lê dan die "
9890 + "resultaat vas.\n"
9891 +
9892 + msgid "No current branch."
9893 + msgstr "Geen huidige tak nie."
9894 +
9895 + msgid "No remote for the current branch."
9896 + msgstr "Geen afgeleë vir die huidige tak nie."
9897 +
9898 + msgid "No default upstream defined for the current branch."
9899 + msgstr "Geen verstek-stroomop vir die huidige tak gedefinieer nie."
9900 +
9901 + #, c-format
9902 + msgid "No remote-tracking branch for %s from %s"
9903 + msgstr "Geen afgeleë volgtak vir %s vanaf %s nie"
9904 +
9905 + #, c-format
9906 + msgid "Bad value '%s' in environment '%s'"
9907 + msgstr "Slegte waarde '%s' in omgewing '%s'"
9908 +
9909 + #, c-format
9910 + msgid "could not close '%s'"
9911 + msgstr "kon nie '%s' sluit nie"
9912 +
9913 + #, c-format
9914 + msgid "not something we can merge in %s: %s"
9915 + msgstr "nie iets wat ons in %s kan saamsmelt nie: %s"
9916 +
9917 + msgid "--abort expects no arguments"
9918 + msgstr "--abort verwag geen argumente nie"
9919 +
9920 + msgid "There is no merge to abort (MERGE_HEAD missing)."
9921 + msgstr "Daar is geen saamsmelting om te staak nie (MERGE_HEAD ontbreek)."
9922 +
9923 + msgid "--quit expects no arguments"
9924 + msgstr "--quit verwag geen argumente nie"
9925 +
9926 + msgid "--continue expects no arguments"
9927 + msgstr "--continue verwag geen argumente nie"
9928 +
9929 + msgid "There is no merge in progress (MERGE_HEAD missing)."
9930 + msgstr "Daar is geen saamsmelting aan die gang nie (MERGE_HEAD ontbreek)."
9931 +
9932 + msgid ""
9933 + "You have not concluded your merge (MERGE_HEAD exists).\n"
9934 + "Please, commit your changes before you merge."
9935 + msgstr ""
9936 + "Jy het nie jou saamsmelting voltooi nie (MERGE_HEAD bestaan).\n"
9937 + "Lê asseblief jou veranderinge vas voordat jy saamsmelt."
9938 +
9939 + msgid ""
9940 + "You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).\n"
9941 + "Please, commit your changes before you merge."
9942 + msgstr ""
9943 + "Jy het nie jou kersiepluk voltooi nie (CHERRY_PICK_HEAD bestaan).\n"
9944 + "Lê asseblief jou veranderinge vas voordat jy saamsmelt."
9945 +
9946 + msgid "You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists)."
9947 + msgstr "Jy het nie jou kersiepluk voltooi nie (CHERRY_PICK_HEAD bestaan)."
9948 +
9949 + msgid "No commit specified and merge.defaultToUpstream not set."
9950 + msgstr ""
9951 + "Geen vaslegging gespesifiseer nie en merge.defaultToUpstream is nie gestel "
9952 + "nie."
9953 +
9954 + msgid "Squash commit into empty head not supported yet"
9955 + msgstr "Saampers van vaslegging in leë kop word nog nie ondersteun nie"
9956 +
9957 + msgid "Non-fast-forward commit does not make sense into an empty head"
9958 + msgstr "Nie-vooruitspoel-vaslegging in 'n leë kop maak nie sin nie"
9959 +
9960 + #, c-format
9961 + msgid "%s - not something we can merge"
9962 + msgstr "%s - nie iets wat ons kan saamsmelt nie"
9963 +
9964 + msgid "Can merge only exactly one commit into empty head"
9965 + msgstr "Kan slegs presies een vaslegging in 'n leë kop saamsmelt"
9966 +
9967 + #, c-format
9968 + msgid "Updating %s..%s\n"
9969 + msgstr "Werk %s..%s by\n"
9970 +
9971 + #, c-format
9972 + msgid ""
9973 + "Your local changes to the following files would be overwritten by merge:\n"
9974 + " %s"
9975 + msgstr ""
9976 + "Jou plaaslike veranderinge aan die volgende lêers sou deur saamsmelting "
9977 + "oorskryf word:\n"
9978 + " %s"
9979 +
9980 + #, c-format
9981 + msgid "Trying really trivial in-index merge...\n"
9982 + msgstr "Probeer 'n baie eenvoudige saamsmelting binne die indeks...\n"
9983 +
9984 + #, c-format
9985 + msgid "Nope.\n"
9986 + msgstr "Nee.\n"
9987 +
9988 + #, c-format
9989 + msgid "Rewinding the tree to pristine...\n"
9990 + msgstr "Spoel die boom terug na die oorspronklike toestand...\n"
9991 +
9992 + #, c-format
9993 + msgid "Trying merge strategy %s...\n"
9994 + msgstr "Probeer saamsmeltstrategie %s...\n"
9995 +
9996 + #, c-format
9997 + msgid "No merge strategy handled the merge.\n"
9998 + msgstr "Geen saamsmeltstrategie het die saamsmelting hanteer nie.\n"
9999 +
10000 + #, c-format
10001 + msgid "Merge with strategy %s failed.\n"
10002 + msgstr "Saamsmelting met strategie %s het misluk.\n"
10003 +
10004 + #, c-format
10005 + msgid "Using the %s strategy to prepare resolving by hand.\n"
10006 + msgstr "Gebruik die %s-strategie om oplossing met die hand voor te berei.\n"
10007 +
10008 + #, c-format
10009 + msgid "Automatic merge went well; stopped before committing as requested\n"
10010 + msgstr ""
10011 + "Outomatiese saamsmelting het goed verloop; gestop voor vaslegging soos "
10012 + "versoek\n"
10013 +
10014 + #, c-format
10015 + msgid "When finished, apply stashed changes with `git stash pop`\n"
10016 + msgstr "Wanneer klaar, pas weggebêrde veranderinge toe met `git stash pop`\n"
10017 +
10018 + #, c-format
10019 + msgid "warning: tag input does not pass fsck: %s"
10020 + msgstr "waarskuwing: etiketinvoer slaag nie vir fsck nie: %s"
10021 +
10022 + #, c-format
10023 + msgid "error: tag input does not pass fsck: %s"
10024 + msgstr "fout: etiketinvoer slaag nie vir fsck nie: %s"
10025 +
10026 + #, c-format
10027 + msgid "could not read tagged object '%s'"
10028 + msgstr "kon nie geëtiketteerde objek '%s' lees nie"
10029 +
10030 + #, c-format
10031 + msgid "object '%s' tagged as '%s', but is a '%s' type"
10032 + msgstr "objek '%s' is as '%s' geëtiketteer, maar is van tipe '%s'"
10033 +
10034 + msgid "tag on stdin did not pass our strict fsck check"
10035 + msgstr "etiket op stdin het nie ons streng fsck-toets geslaag nie"
10036 +
10037 + msgid "tag on stdin did not refer to a valid object"
10038 + msgstr "etiket op stdin het nie na 'n geldige objek verwys nie"
10039 +
10040 + msgid "unable to write tag file"
10041 + msgstr "kan nie etiketlêer skryf nie"
10042 +
10043 + msgid "input is NUL terminated"
10044 + msgstr "invoer is NUL-beëindig"
10045 +
10046 + msgid "allow missing objects"
10047 + msgstr "laat ontbrekende objekte toe"
10048 +
10049 + msgid "allow creation of more than one tree"
10050 + msgstr "laat die skep van meer as een boom toe"
10051 +
10052 + msgid ""
10053 + "git multi-pack-index [<options>] write [--preferred-pack=<pack>]\n"
10054 + " [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]\n"
10055 + " [--refs-snapshot=<path>] [--[no-]write-chain-file]\n"
10056 + " [--base=<checksum>]"
10057 + msgstr ""
10058 + "git multi-pack-index [<opsies>] write [--preferred-pack=<pak>]\n"
10059 + " [--[no-]bitmap] [--[no-]incremental] [--[no-]stdin-packs]\n"
10060 + " [--refs-snapshot=<pad>] [--[no-]write-chain-file]\n"
10061 + " [--base=<kontrolesom>]"
10062 +
10063 + msgid ""
10064 + "git multi-pack-index [<options>] compact [--[no-]incremental]\n"
10065 + " [--[no-]bitmap] [--base=<checksum>] [--[no-]write-chain-file]\n"
10066 + " <from> <to>"
10067 + msgstr ""
10068 + "git multi-pack-index [<opsies>] compact [--[no-]incremental]\n"
10069 + " [--[no-]bitmap] [--base=<kontrolesom>] [--[no-]write-chain-file]\n"
10070 + " <van> <na>"
10071 +
10072 + msgid "git multi-pack-index [<options>] verify"
10073 + msgstr "git multi-pack-index [<opsies>] verify"
10074 +
10075 + msgid "git multi-pack-index [<options>] expire"
10076 + msgstr "git multi-pack-index [<opsies>] expire"
10077 +
10078 + msgid "git multi-pack-index [<options>] repack [--batch-size=<size>]"
10079 + msgstr "git multi-pack-index [<opsies>] repack [--batch-size=<grootte>]"
10080 +
10081 + #, c-format
10082 + msgid "object directory is not an alternate of the current repository: '%s'"
10083 + msgstr "objekgids is nie 'n alternatief van die huidige bewaarplek nie: '%s'"
10084 +
10085 + msgid "directory"
10086 + msgstr "gids"
10087 +
10088 + msgid "object directory containing set of packfile and pack-index pairs"
10089 + msgstr "objekgids wat 'n stel paklêer- en pakindekspare bevat"
10090 +
10091 + msgid "preferred-pack"
10092 + msgstr "voorkeurpak"
10093 +
10094 + msgid "pack for reuse when computing a multi-pack bitmap"
10095 + msgstr "pak vir hergebruik wanneer 'n multipak-bitmap bereken word"
10096 +
10097 + msgid "write multi-pack bitmap"
10098 + msgstr "skryf multipak-bitmap"
10099 +
10100 + msgid "checksum"
10101 + msgstr "kontrolesom"
10102 +
10103 + msgid "base MIDX for incremental writes"
10104 + msgstr "basis-MIDX vir inkrementele skryfbewerkings"
10105 +
10106 + msgid "write a new incremental MIDX"
10107 + msgstr "skryf 'n nuwe inkrementele MIDX"
10108 +
10109 + msgid "write the multi-pack-index chain file"
10110 + msgstr "skryf die multi-pack-index-kettinglêer"
10111 +
10112 + msgid "write multi-pack index containing only given indexes"
10113 + msgstr "skryf 'n multipak-indeks wat slegs die gegewe indekse bevat"
10114 +
10115 + msgid "refs snapshot for selecting bitmap commits"
10116 + msgstr "verwysingsmomentopname vir die keuse van bitmap-vasleggings"
10117 +
10118 + #, c-format
10119 + msgid "cannot use %s without %s"
10120 + msgstr "kan nie %s sonder %s gebruik nie"
10121 +
10122 + msgid "cannot use --base without --no-write-chain-file"
10123 + msgstr "kan nie --base sonder --no-write-chain-file gebruik nie"
10124 +
10125 + #, c-format
10126 + msgid "could not find MIDX: %s"
10127 + msgstr "kon nie MIDX vind nie: %s"
10128 +
10129 + msgid "MIDX compaction endpoints must be unique"
10130 + msgstr "MIDX-kompakteringseindpunte moet uniek wees"
10131 +
10132 + #, c-format
10133 + msgid "MIDX %s must be an ancestor of %s"
10134 + msgstr "MIDX %s moet 'n voorouer van %s wees"
10135 +
10136 + msgid ""
10137 + "during repack, collect pack-files of smaller size into a batch that is "
10138 + "larger than this size"
10139 + msgstr ""
10140 + "versamel tydens herverpakking kleiner paklêers in 'n bondel wat groter as "
10141 + "hierdie grootte is"
10142 +
10143 + msgid "git mv [-v] [-f] [-n] [-k] <source> <destination>"
10144 + msgstr "git mv [-v] [-f] [-n] [-k] <bron> <bestemming>"
10145 +
10146 + msgid "git mv [-v] [-f] [-n] [-k] <source>... <destination-directory>"
10147 + msgstr "git mv [-v] [-f] [-n] [-k] <bron>... <bestemmingsgids>"
10148 +
10149 + #, c-format
10150 + msgid "Directory %s is in index and no submodule?"
10151 + msgstr "Gids %s is in die indeks en is nie 'n submodule nie?"
10152 +
10153 + msgid "Please stage your changes to .gitmodules or stash them to proceed"
10154 + msgstr ""
10155 + "Plaas asseblief jou veranderinge aan .gitmodules of bêre hulle weg om voort "
10156 + "te gaan"
10157 +
10158 + #, c-format
10159 + msgid "%.*s is in index"
10160 + msgstr "%.*s is in die indeks"
10161 +
10162 + msgid "force move/rename even if target exists"
10163 + msgstr "dwing skuif/hernoem af selfs al bestaan die teiken"
10164 +
10165 + msgid "skip move/rename errors"
10166 + msgstr "slaan skuif-/hernoemfoute oor"
10167 +
10168 + #, c-format
10169 + msgid "destination '%s' is not a directory"
10170 + msgstr "bestemming '%s' is nie 'n gids nie"
10171 +
10172 + #, c-format
10173 + msgid "Checking rename of '%s' to '%s'\n"
10174 + msgstr "Kontroleer hernoeming van '%s' na '%s'\n"
10175 +
10176 + msgid "bad source"
10177 + msgstr "slegte bron"
10178 +
10179 + msgid "destination exists"
10180 + msgstr "bestemming bestaan"
10181 +
10182 + msgid "can not move directory into itself"
10183 + msgstr "kan nie gids na homself skuif nie"
10184 +
10185 + msgid "destination already exists"
10186 + msgstr "bestemming bestaan reeds"
10187 +
10188 + msgid "source directory is empty"
10189 + msgstr "brongids is leeg"
10190 +
10191 + msgid "not under version control"
10192 + msgstr "nie onder weergawebeheer nie"
10193 +
10194 + msgid "conflicted"
10195 + msgstr "in konflik"
10196 +
10197 + #, c-format
10198 + msgid "overwriting '%s'"
10199 + msgstr "oorskryf '%s'"
10200 +
10201 + msgid "Cannot overwrite"
10202 + msgstr "Kan nie oorskryf nie"
10203 +
10204 + msgid "multiple sources for the same target"
10205 + msgstr "veelvuldige bronne vir dieselfde teiken"
10206 +
10207 + msgid "destination directory does not exist"
10208 + msgstr "bestemmingsgids bestaan nie"
10209 +
10210 + msgid "destination is beyond a symbolic link"
10211 + msgstr "bestemming is agter 'n simboliese skakel"
10212 +
10213 + msgid "destination is not a directory"
10214 + msgstr "bestemming is nie 'n gids nie"
10215 +
10216 + msgid "destination exists in the index"
10217 + msgstr "bestemming bestaan in die indeks"
10218 +
10219 + #, c-format
10220 + msgid "%s, source=%s, destination=%s"
10221 + msgstr "%s, bron=%s, bestemming=%s"
10222 +
10223 + #, c-format
10224 + msgid "cannot move both '%s' and its parent directory '%s'"
10225 + msgstr "kan nie beide '%s' en sy ouergids '%s' skuif nie"
10226 +
10227 + #, c-format
10228 + msgid "Renaming %s to %s\n"
10229 + msgstr "Hernoem %s na %s\n"
10230 +
10231 + #, c-format
10232 + msgid "renaming '%s' to '%s' failed"
10233 + msgstr "hernoeming van '%s' na '%s' het misluk"
10234 +
10235 + msgid "git name-rev [<options>] <commit>..."
10236 + msgstr "git name-rev [<opsies>] <vaslegging>..."
10237 +
10238 + msgid "git name-rev [<options>] --all"
10239 + msgstr "git name-rev [<opsies>] --all"
10240 +
10241 + msgid "git name-rev [<options>] --annotate-stdin"
10242 + msgstr "git name-rev [<opsies>] --annotate-stdin"
10243 +
10244 + msgid "print only ref-based names (no object names)"
10245 + msgstr "druk slegs verwysingsgebaseerde name (geen objekname nie)"
10246 +
10247 + msgid "only use tags to name the commits"
10248 + msgstr "gebruik slegs etikette om die vasleggings te benoem"
10249 +
10250 + msgid "only use refs matching <pattern>"
10251 + msgstr "gebruik slegs verwysings wat by <patroon> pas"
10252 +
10253 + msgid "ignore refs matching <pattern>"
10254 + msgstr "ignoreer verwysings wat by <patroon> pas"
10255 +
10256 + msgid "list all commits reachable from all refs"
10257 + msgstr "lys alle vasleggings wat vanaf alle verwysings bereikbaar is"
10258 +
10259 + msgid "deprecated: use --annotate-stdin instead"
10260 + msgstr "verouderd: gebruik eerder --annotate-stdin"
10261 +
10262 + msgid "annotate text from stdin"
10263 + msgstr "annoteer teks vanaf stdin"
10264 +
10265 + msgid "allow to print `undefined` names (default)"
10266 + msgstr "laat toe dat `undefined`-name gedruk word (verstek)"
10267 +
10268 + msgid "dereference tags in the input (internal use)"
10269 + msgstr "derefereer etikette in die invoer (interne gebruik)"
10270 +
10271 + #, c-format
10272 + msgid "'%s' needs to be either text, revs, or rev"
10273 + msgstr "'%s' moet een van text, revs of rev wees"
10274 +
10275 + msgid ""
10276 + "(EXPERIMENTAL!) git format-rev --stdin-mode=<mode> --format=<pretty> [--"
10277 + "[no-]notes=<ref>] [-z] [--[no-]null-output] [--[no-]null-input]"
10278 + msgstr ""
10279 + "(EKSPERIMENTEEL!) git format-rev --stdin-mode=<modus> --format=<formaat> [--"
10280 + "[no-]notes=<verwysing>] [-z] [--[no-]null-output] [--[no-]null-input]"
10281 +
10282 + msgid "pretty format to use"
10283 + msgstr "mooi-formaat om te gebruik"
10284 +
10285 + msgid "stdin-mode"
10286 + msgstr "stdin-modus"
10287 +
10288 + msgid "how revs are processed"
10289 + msgstr "hoe revisies verwerk word"
10290 +
10291 + msgid "notes"
10292 + msgstr "notas"
10293 +
10294 + msgid "display notes for pretty format"
10295 + msgstr "vertoon notas vir mooi-formaat"
10296 +
10297 + msgid "z"
10298 + msgstr "z"
10299 +
10300 + msgid "Use NUL for input and output termination"
10301 + msgstr "Gebruik NUL vir invoer- en uitvoerbeëindiging"
10302 +
10303 + msgid "Use NUL for input termination"
10304 + msgstr "Gebruik NUL vir invoerbeëindiging"
10305 +
10306 + msgid "Use NUL for output termination"
10307 + msgstr "Gebruik NUL vir uitvoerbeëindiging"
10308 +
10309 + #, c-format
10310 + msgid "'%s' is required"
10311 + msgstr "'%s' is verpligtend"
10312 +
10313 + msgid "git notes [--ref <notes-ref>] [list [<object>]]"
10314 + msgstr "git notes [--ref <notasverwysing>] [list [<objek>]]"
10315 +
10316 + msgid ""
10317 + "git notes [--ref <notes-ref>] add [-f] [--allow-empty] [--[no-]separator|--"
10318 + "separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c "
10319 + "| -C) <object>] [<object>] [-e]"
10320 + msgstr ""
10321 + "git notes [--ref <notasverwysing>] add [-f] [--allow-empty] [--"
10322 + "[no-]separator|--separator=<paragraafbreuk>] [--[no-]stripspace] [-m "
10323 + "<boodskap> | -F <lêer> | (-c | -C) <objek>] [<objek>] [-e]"
10324 +
10325 + msgid "git notes [--ref <notes-ref>] copy [-f] <from-object> <to-object>"
10326 + msgstr "git notes [--ref <notasverwysing>] copy [-f] <van-objek> <na-objek>"
10327 +
10328 + msgid ""
10329 + "git notes [--ref <notes-ref>] append [--allow-empty] [--[no-]separator|--"
10330 + "separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c "
10331 + "| -C) <object>] [<object>] [-e]"
10332 + msgstr ""
10333 + "git notes [--ref <notasverwysing>] append [--allow-empty] [--"
10334 + "[no-]separator|--separator=<paragraafbreuk>] [--[no-]stripspace] [-m "
10335 + "<boodskap> | -F <lêer> | (-c | -C) <objek>] [<objek>] [-e]"
10336 +
10337 + msgid "git notes [--ref <notes-ref>] edit [--allow-empty] [<object>]"
10338 + msgstr "git notes [--ref <notasverwysing>] edit [--allow-empty] [<objek>]"
10339 +
10340 + msgid "git notes [--ref <notes-ref>] show [<object>]"
10341 + msgstr "git notes [--ref <notasverwysing>] show [<objek>]"
10342 +
10343 + msgid ""
10344 + "git notes [--ref <notes-ref>] merge [-v | -q] [-s <strategy>] <notes-ref>"
10345 + msgstr ""
10346 + "git notes [--ref <notasverwysing>] merge [-v | -q] [-s <strategie>] "
10347 + "<notasverwysing>"
10348 +
10349 + msgid "git notes [--ref <notes-ref>] remove [<object>...]"
10350 + msgstr "git notes [--ref <notasverwysing>] remove [<objek>...]"
10351 +
10352 + msgid "git notes [--ref <notes-ref>] prune [-n] [-v]"
10353 + msgstr "git notes [--ref <notasverwysing>] prune [-n] [-v]"
10354 +
10355 + msgid "git notes [--ref <notes-ref>] get-ref"
10356 + msgstr "git notes [--ref <notasverwysing>] get-ref"
10357 +
10358 + msgid "git notes [list [<object>]]"
10359 + msgstr "git notes [list [<objek>]]"
10360 +
10361 + msgid "git notes add [<options>] [<object>]"
10362 + msgstr "git notes add [<opsies>] [<objek>]"
10363 +
10364 + msgid "git notes copy [<options>] <from-object> <to-object>"
10365 + msgstr "git notes copy [<opsies>] <van-objek> <na-objek>"
10366 +
10367 + msgid "git notes copy --stdin [<from-object> <to-object>]..."
10368 + msgstr "git notes copy --stdin [<van-objek> <na-objek>]..."
10369 +
10370 + msgid "git notes append [<options>] [<object>]"
10371 + msgstr "git notes append [<opsies>] [<objek>]"
10372 +
10373 + msgid "git notes edit [<object>]"
10374 + msgstr "git notes edit [<objek>]"
10375 +
10376 + msgid "git notes show [<object>]"
10377 + msgstr "git notes show [<objek>]"
10378 +
10379 + msgid "git notes merge [<options>] <notes-ref>"
10380 + msgstr "git notes merge [<opsies>] <notasverwysing>"
10381 +
10382 + msgid "git notes merge --commit [<options>]"
10383 + msgstr "git notes merge --commit [<opsies>]"
10384 +
10385 + msgid "git notes merge --abort [<options>]"
10386 + msgstr "git notes merge --abort [<opsies>]"
10387 +
10388 + msgid "git notes remove [<object>]"
10389 + msgstr "git notes remove [<objek>]"
10390 +
10391 + msgid "git notes prune [<options>]"
10392 + msgstr "git notes prune [<opsies>]"
10393 +
10394 + msgid "Write/edit the notes for the following object:"
10395 + msgstr "Skryf/redigeer die notas vir die volgende objek:"
10396 +
10397 + msgid "could not read 'show' output"
10398 + msgstr "kon nie 'show'-uitvoer lees nie"
10399 +
10400 + #, c-format
10401 + msgid "failed to finish 'show' for object '%s'"
10402 + msgstr "kon nie 'show' vir objek '%s' voltooi nie"
10403 +
10404 + msgid "please supply the note contents using either -m or -F option"
10405 + msgstr "verskaf asseblief die notainhoud met óf die -m- óf die -F-opsie"
10406 +
10407 + msgid "unable to write note object"
10408 + msgstr "kan nie nota-objek skryf nie"
10409 +
10410 + #, c-format
10411 + msgid "the note contents have been left in %s"
10412 + msgstr "die notainhoud is in %s gelaat"
10413 +
10414 + #, c-format
10415 + msgid "could not open or read '%s'"
10416 + msgstr "kon nie '%s' oopmaak of lees nie"
10417 +
10418 + #, c-format
10419 + msgid "failed to resolve '%s' as a valid ref."
10420 + msgstr "kon nie '%s' as 'n geldige verwysing oplos nie."
10421 +
10422 + #, c-format
10423 + msgid "failed to read object '%s'."
10424 + msgstr "kon nie objek '%s' lees nie."
10425 +
10426 + #, c-format
10427 + msgid "cannot read note data from non-blob object '%s'."
10428 + msgstr "kan nie notadata van nie-blob-objek '%s' lees nie."
10429 +
10430 + #, c-format
10431 + msgid "failed to copy notes from '%s' to '%s'"
10432 + msgstr "kon nie notas van '%s' na '%s' kopieer nie"
10433 +
10434 + #. TRANSLATORS: the first %s will be replaced by a git
10435 + #. notes command: 'add', 'merge', 'remove', etc.
10436 + #.
10437 + #, c-format
10438 + msgid "refusing to %s notes in %s (outside of refs/notes/)"
10439 + msgstr "weier om %s op notas in %s uit te voer (buite refs/notes/)"
10440 +
10441 + #, c-format
10442 + msgid "no note found for object %s."
10443 + msgstr "geen nota vir objek %s gevind nie."
10444 +
10445 + msgid "note contents as a string"
10446 + msgstr "notainhoud as 'n string"
10447 +
10448 + msgid "note contents in a file"
10449 + msgstr "notainhoud in 'n lêer"
10450 +
10451 + msgid "reuse and edit specified note object"
10452 + msgstr "hergebruik en redigeer die gespesifiseerde nota-objek"
10453 +
10454 + msgid "edit note message in editor"
10455 + msgstr "redigeer notaboodskap in die redigeerder"
10456 +
10457 + msgid "reuse specified note object"
10458 + msgstr "hergebruik die gespesifiseerde nota-objek"
10459 +
10460 + msgid "allow storing empty note"
10461 + msgstr "laat die stoor van 'n leë nota toe"
10462 +
10463 + msgid "replace existing notes"
10464 + msgstr "vervang bestaande notas"
10465 +
10466 + msgid "<paragraph-break>"
10467 + msgstr "<paragraafbreuk>"
10468 +
10469 + msgid "insert <paragraph-break> between paragraphs"
10470 + msgstr "voeg <paragraafbreuk> tussen paragrawe in"
10471 +
10472 + msgid "remove unnecessary whitespace"
10473 + msgstr "verwyder onnodige witspasie"
10474 +
10475 + #, c-format
10476 + msgid ""
10477 + "Cannot add notes. Found existing notes for object %s. Use '-f' to overwrite "
10478 + "existing notes"
10479 + msgstr ""
10480 + "Kan nie notas byvoeg nie. Bestaande notas vir objek %s gevind. Gebruik '-f' "
10481 + "om bestaande notas te oorskryf"
10482 +
10483 + #, c-format
10484 + msgid "Overwriting existing notes for object %s\n"
10485 + msgstr "Oorskryf bestaande notas vir objek %s\n"
10486 +
10487 + #, c-format
10488 + msgid "Removing note for object %s\n"
10489 + msgstr "Verwyder nota vir objek %s\n"
10490 +
10491 + msgid "read objects from stdin"
10492 + msgstr "lees objekte vanaf stdin"
10493 +
10494 + msgid "load rewriting config for <command> (implies --stdin)"
10495 + msgstr "laai herskryfkonfigurasie vir <opdrag> (impliseer --stdin)"
10496 +
10497 + msgid "too few arguments"
10498 + msgstr "te min argumente"
10499 +
10500 + #, c-format
10501 + msgid ""
10502 + "Cannot copy notes. Found existing notes for object %s. Use '-f' to overwrite "
10503 + "existing notes"
10504 + msgstr ""
10505 + "Kan nie notas kopieer nie. Bestaande notas vir objek %s gevind. Gebruik '-f' "
10506 + "om bestaande notas te oorskryf"
10507 +
10508 + #, c-format
10509 + msgid "missing notes on source object %s. Cannot copy."
10510 + msgstr "notas ontbreek op bronobjek %s. Kan nie kopieer nie."
10511 +
10512 + #, c-format
10513 + msgid ""
10514 + "The -m/-F/-c/-C options have been deprecated for the 'edit' subcommand.\n"
10515 + "Please use 'git notes add -f -m/-F/-c/-C' instead.\n"
10516 + msgstr ""
10517 + "Die -m/-F/-c/-C-opsies is verouderd vir die 'edit'-subopdrag.\n"
10518 + "Gebruik asseblief eerder 'git notes add -f -m/-F/-c/-C'.\n"
10519 +
10520 + msgid "failed to delete ref NOTES_MERGE_PARTIAL"
10521 + msgstr "kon nie verwysing NOTES_MERGE_PARTIAL skrap nie"
10522 +
10523 + msgid "failed to delete ref NOTES_MERGE_REF"
10524 + msgstr "kon nie verwysing NOTES_MERGE_REF skrap nie"
10525 +
10526 + msgid "failed to remove 'git notes merge' worktree"
10527 + msgstr "kon nie die 'git notes merge'-werkboom verwyder nie"
10528 +
10529 + msgid "failed to read ref NOTES_MERGE_PARTIAL"
10530 + msgstr "kon nie verwysing NOTES_MERGE_PARTIAL lees nie"
10531 +
10532 + msgid "could not find commit from NOTES_MERGE_PARTIAL."
10533 + msgstr "kon nie vaslegging vanaf NOTES_MERGE_PARTIAL vind nie."
10534 +
10535 + msgid "could not parse commit from NOTES_MERGE_PARTIAL."
10536 + msgstr "kon nie vaslegging vanaf NOTES_MERGE_PARTIAL ontleed nie."
10537 +
10538 + msgid "failed to resolve NOTES_MERGE_REF"
10539 + msgstr "kon nie NOTES_MERGE_REF oplos nie"
10540 +
10541 + msgid "failed to finalize notes merge"
10542 + msgstr "kon nie notasaamsmelting afhandel nie"
10543 +
10544 + #, c-format
10545 + msgid "unknown notes merge strategy %s"
10546 + msgstr "onbekende notasaamsmeltstrategie %s"
10547 +
10548 + msgid "General options"
10549 + msgstr "Algemene opsies"
10550 +
10551 + msgid "Merge options"
10552 + msgstr "Saamsmeltopsies"
10553 +
10554 + msgid ""
10555 + "resolve notes conflicts using the given strategy (manual/ours/theirs/union/"
10556 + "cat_sort_uniq)"
10557 + msgstr ""
10558 + "los notakonflikte op met die gegewe strategie (manual/ours/theirs/union/"
10559 + "cat_sort_uniq)"
10560 +
10561 + msgid "Committing unmerged notes"
10562 + msgstr "Lê notas wat nie saamgesmelt is nie vas"
10563 +
10564 + msgid "finalize notes merge by committing unmerged notes"
10565 + msgstr ""
10566 + "handel notasaamsmelting af deur notas wat nie saamgesmelt is nie vas te lê"
10567 +
10568 + msgid "Aborting notes merge resolution"
10569 + msgstr "Staak oplossing van notasaamsmelting"
10570 +
10571 + msgid "abort notes merge"
10572 + msgstr "staak notasaamsmelting"
10573 +
10574 + msgid "cannot mix --commit, --abort or -s/--strategy"
10575 + msgstr "kan nie --commit, --abort of -s/--strategy meng nie"
10576 +
10577 + msgid "must specify a notes ref to merge"
10578 + msgstr "moet 'n notasverwysing spesifiseer om saam te smelt"
10579 +
10580 + #, c-format
10581 + msgid "unknown -s/--strategy: %s"
10582 + msgstr "onbekende -s/--strategy: %s"
10583 +
10584 + #, c-format
10585 + msgid "a notes merge into %s is already in-progress at %s"
10586 + msgstr "'n notasaamsmelting na %s is reeds aan die gang by %s"
10587 +
10588 + #, c-format
10589 + msgid "failed to store link to current notes ref (%s)"
10590 + msgstr "kon nie skakel na huidige notasverwysing (%s) stoor nie"
10591 +
10592 + #, c-format
10593 + msgid ""
10594 + "Automatic notes merge failed. Fix conflicts in %s and commit the result with "
10595 + "'git notes merge --commit', or abort the merge with 'git notes merge --"
10596 + "abort'.\n"
10597 + msgstr ""
10598 + "Outomatiese notasaamsmelting het misluk. Herstel konflikte in %s en lê die "
10599 + "resultaat vas met 'git notes merge --commit', of staak die saamsmelting met "
10600 + "'git notes merge --abort'.\n"
10601 +
10602 + #, c-format
10603 + msgid "Failed to resolve '%s' as a valid ref."
10604 + msgstr "Kon nie '%s' as 'n geldige verwysing oplos nie."
10605 +
10606 + #, c-format
10607 + msgid "Object %s has no note\n"
10608 + msgstr "Objek %s het geen nota nie\n"
10609 +
10610 + msgid "attempt to remove non-existent note is not an error"
10611 + msgstr "'n poging om 'n nie-bestaande nota te verwyder is nie 'n fout nie"
10612 +
10613 + msgid "read object names from the standard input"
10614 + msgstr "lees objekname vanaf die standaardinvoer"
10615 +
10616 + msgid "do not remove, show only"
10617 + msgstr "moenie verwyder nie, wys slegs"
10618 +
10619 + msgid "report pruned notes"
10620 + msgstr "rapporteer gesnoeide notas"
10621 +
10622 + msgid "notes-ref"
10623 + msgstr "notasverwysing"
10624 +
10625 + msgid "use notes from <notes-ref>"
10626 + msgstr "gebruik notas vanaf <notasverwysing>"
10627 +
10628 + #, c-format
10629 + msgid "unknown subcommand: `%s'"
10630 + msgstr "onbekende subopdrag: `%s'"
10631 +
10632 + msgid ""
10633 + "git pack-objects [-q | --progress | --all-progress] [--all-progress-"
10634 + "implied]\n"
10635 + " [--no-reuse-delta] [--delta-base-offset] [--non-empty]\n"
10636 + " [--local] [--incremental] [--window=<n>] [--depth=<n>]\n"
10637 + " [--revs [--unpacked | --all]] [--keep-pack=<pack-name>]\n"
10638 + " [--cruft] [--cruft-expiration=<time>]\n"
10639 + " [--stdout [--filter=<filter-spec>] | <base-name>]\n"
10640 + " [--shallow] [--keep-true-parents] [--[no-]sparse]\n"
10641 + " [--name-hash-version=<n>] [--path-walk] < <object-list>"
10642 + msgstr ""
10643 + "git pack-objects [-q | --progress | --all-progress] [--all-progress-"
10644 + "implied]\n"
10645 + " [--no-reuse-delta] [--delta-base-offset] [--non-empty]\n"
10646 + " [--local] [--incremental] [--window=<n>] [--depth=<n>]\n"
10647 + " [--revs [--unpacked | --all]] [--keep-pack=<paknaam>]\n"
10648 + " [--cruft] [--cruft-expiration=<tyd>]\n"
10649 + " [--stdout [--filter=<filterspesifikasie>] | <basisnaam>]\n"
10650 + " [--shallow] [--keep-true-parents] [--[no-]sparse]\n"
10651 + " [--name-hash-version=<n>] [--path-walk] < <objeklys>"
10652 +
10653 + #, c-format
10654 + msgid "invalid --name-hash-version option: %d"
10655 + msgstr "ongeldige opsie --name-hash-version: %d"
10656 +
10657 + msgid "currently, --write-bitmap-index requires --name-hash-version=1"
10658 + msgstr "tans vereis --write-bitmap-index --name-hash-version=1"
10659 +
10660 + #, c-format
10661 + msgid "write_reuse_object: unable to parse object header of %s"
10662 + msgstr "write_reuse_object: kan nie objekkopskrif van %s ontleed nie"
10663 +
10664 + #, c-format
10665 + msgid ""
10666 + "write_reuse_object: could not locate %s, expected at offset %<PRIuMAX> in "
10667 + "pack %s"
10668 + msgstr ""
10669 + "write_reuse_object: kon nie %s vind nie, verwag by afset %<PRIuMAX> in pak %s"
10670 +
10671 + #, c-format
10672 + msgid "bad packed object CRC for %s"
10673 + msgstr "slegte CRC van gepakte objek vir %s"
10674 +
10675 + #, c-format
10676 + msgid "corrupt packed object for %s"
10677 + msgstr "korrupte gepakte objek vir %s"
10678 +
10679 + #, c-format
10680 + msgid "recursive delta detected for object %s"
10681 + msgstr "rekursiewe delta bespeur vir objek %s"
10682 +
10683 + #, c-format
10684 + msgid "ordered %u objects, expected %<PRIu32>"
10685 + msgstr "%u objekte georden, %<PRIu32> verwag"
10686 +
10687 + #, c-format
10688 + msgid "expected object at offset %<PRIuMAX> in pack %s"
10689 + msgstr "objek verwag by afset %<PRIuMAX> in pak %s"
10690 +
10691 + msgid "disabling bitmap writing, packs are split due to pack.packSizeLimit"
10692 + msgstr "skakel bitmapskryf af, pakke word weens pack.packSizeLimit verdeel"
10693 +
10694 + msgid "Writing objects"
10695 + msgstr "Skryf objekte"
10696 +
10697 + #, c-format
10698 + msgid "failed to stat %s"
10699 + msgstr "kon nie stat op %s uitvoer nie"
10700 +
10701 + #, c-format
10702 + msgid "failed utime() on %s"
10703 + msgstr "utime() op %s het misluk"
10704 +
10705 + msgid "failed to write bitmap index"
10706 + msgstr "kon nie bitmapindeks skryf nie"
10707 +
10708 + #, c-format
10709 + msgid "wrote %<PRIu32> objects while expecting %<PRIu32>"
10710 + msgstr "het %<PRIu32> objekte geskryf terwyl %<PRIu32> verwag is"
10711 +
10712 + msgid "disabling bitmap writing, as some objects are not being packed"
10713 + msgstr "skakel bitmapskryf af, aangesien sommige objekte nie gepak word nie"
10714 +
10715 + #, c-format
10716 + msgid "delta base offset overflow in pack for %s"
10717 + msgstr "delta-basisafset loop oor in pak vir %s"
10718 +
10719 + #, c-format
10720 + msgid "delta base offset out of bound for %s"
10721 + msgstr "delta-basisafset buite grense vir %s"
10722 +
10723 + msgid "Counting objects"
10724 + msgstr "Tel objekte"
10725 +
10726 + #, c-format
10727 + msgid "unable to get size of %s"
10728 + msgstr "kan nie grootte van %s kry nie"
10729 +
10730 + #, c-format
10731 + msgid "unable to parse object header of %s"
10732 + msgstr "kan nie objekkopskrif van %s ontleed nie"
10733 +
10734 + #, c-format
10735 + msgid "object %s cannot be read"
10736 + msgstr "objek %s kan nie gelees word nie"
10737 +
10738 + #, c-format
10739 + msgid "object %s inconsistent object length (%<PRIuMAX> vs %<PRIuMAX>)"
10740 + msgstr "objek %s het inkonsekwente objeklengte (%<PRIuMAX> teenoor %<PRIuMAX>)"
10741 +
10742 + msgid "suboptimal pack - out of memory"
10743 + msgstr "suboptimale pak - geheue op"
10744 +
10745 + #, c-format
10746 + msgid "Delta compression using up to %d threads"
10747 + msgstr "Delta-kompressie gebruik tot %d drade"
10748 +
10749 + #, c-format
10750 + msgid "unable to pack objects reachable from tag %s"
10751 + msgstr "kan nie objekte wat vanaf etiket %s bereikbaar is pak nie"
10752 +
10753 + #, c-format
10754 + msgid "unable to get type of object %s"
10755 + msgstr "kan nie tipe van objek %s kry nie"
10756 +
10757 + msgid "Compressing objects by path"
10758 + msgstr "Komprimeer objekte volgens pad"
10759 +
10760 + #, c-format
10761 + msgid "Path-based delta compression using up to %d thread"
10762 + msgid_plural "Path-based delta compression using up to %d threads"
10763 + msgstr[0] "Padgebaseerde delta-kompressie gebruik tot %d draad"
10764 + msgstr[1] "Padgebaseerde delta-kompressie gebruik tot %d drade"
10765 +
10766 + msgid "Compressing objects"
10767 + msgstr "Komprimeer objekte"
10768 +
10769 + msgid "inconsistency with delta count"
10770 + msgstr "inkonsekwentheid met delta-telling"
10771 +
10772 + #, c-format
10773 + msgid "invalid pack.allowPackReuse value: '%s'"
10774 + msgstr "ongeldige pack.allowPackReuse-waarde: '%s'"
10775 +
10776 + #, c-format
10777 + msgid ""
10778 + "value of uploadpack.blobpackfileuri must be of the form '<object-hash> <pack-"
10779 + "hash> <uri>' (got '%s')"
10780 + msgstr ""
10781 + "waarde van uploadpack.blobpackfileuri moet van die vorm '<object-hash> <pack-"
10782 + "hash> <uri>' wees (het '%s' gekry)"
10783 +
10784 + #, c-format
10785 + msgid ""
10786 + "object already configured in another uploadpack.blobpackfileuri (got '%s')"
10787 + msgstr ""
10788 + "objek is reeds in 'n ander uploadpack.blobpackfileuri gekonfigureer (het "
10789 + "'%s' gekry)"
10790 +
10791 + #, c-format
10792 + msgid "could not get type of object %s in pack %s"
10793 + msgstr "kon nie tipe van objek %s in pak %s kry nie"
10794 +
10795 + #, c-format
10796 + msgid "could not find pack '%s'"
10797 + msgstr "kon nie pak '%s' vind nie"
10798 +
10799 + #, c-format
10800 + msgid "packfile %s is a promisor but --exclude-promisor-objects was given"
10801 + msgstr ""
10802 + "paklêer %s is 'n beloftegewer, maar --exclude-promisor-objects is gegee"
10803 +
10804 + #, c-format
10805 + msgid "packfile %s cannot be accessed"
10806 + msgstr "paklêer %s is nie toeganklik nie"
10807 +
10808 + msgid "Enumerating cruft objects"
10809 + msgstr "Som afvalobjekte op"
10810 +
10811 + msgid "unable to add cruft objects"
10812 + msgstr "kan nie afvalobjekte byvoeg nie"
10813 +
10814 + msgid "Traversing cruft objects"
10815 + msgstr "Deurloop afvalobjekte"
10816 +
10817 + #, c-format
10818 + msgid ""
10819 + "expected edge object ID, got garbage:\n"
10820 + " %s"
10821 + msgstr ""
10822 + "het rand-objek-ID verwag, maar gemors gekry:\n"
10823 + " %s"
10824 +
10825 + #, c-format
10826 + msgid ""
10827 + "expected object ID, got garbage:\n"
10828 + " %s"
10829 + msgstr ""
10830 + "het objek-ID verwag, maar gemors gekry:\n"
10831 + " %s"
10832 +
10833 + msgid "cannot open pack index"
10834 + msgstr "kan nie pakindeks oopmaak nie"
10835 +
10836 + #, c-format
10837 + msgid "loose object at %s could not be examined"
10838 + msgstr "los objek by %s kon nie ondersoek word nie"
10839 +
10840 + #, c-format
10841 + msgid "cannot read object for %s"
10842 + msgstr "kan nie objek vir %s lees nie"
10843 +
10844 + #, c-format
10845 + msgid "cannot map object %s to %s"
10846 + msgstr "kan nie objek %s na %s karteer nie"
10847 +
10848 + msgid "unable to force loose object"
10849 + msgstr "kan nie los objek afdwing nie"
10850 +
10851 + #, c-format
10852 + msgid "could not find commit %s"
10853 + msgstr "kon nie vaslegging %s vind nie"
10854 +
10855 + #, c-format
10856 + msgid "not a rev '%s'"
10857 + msgstr "nie 'n revisie nie: '%s'"
10858 +
10859 + #, c-format
10860 + msgid "bad revision '%s'"
10861 + msgstr "slegte revisie '%s'"
10862 +
10863 + msgid "failed to pack objects via path-walk"
10864 + msgstr "kon nie objekte via path-walk pak nie"
10865 +
10866 + msgid "unable to add recent objects"
10867 + msgstr "kan nie onlangse objekte byvoeg nie"
10868 +
10869 + #, c-format
10870 + msgid "unsupported index version %s"
10871 + msgstr "nie-ondersteunde indeksweergawe %s"
10872 +
10873 + #, c-format
10874 + msgid "bad index version '%s'"
10875 + msgstr "slegte indeksweergawe '%s'"
10876 +
10877 + msgid "show progress meter during object writing phase"
10878 + msgstr "wys vorderingsmeter tydens die objekskryffase"
10879 +
10880 + msgid "similar to --all-progress when progress meter is shown"
10881 + msgstr "soortgelyk aan --all-progress wanneer die vorderingsmeter gewys word"
10882 +
10883 + msgid "<version>[,<offset>]"
10884 + msgstr "<weergawe>[,<afset>]"
10885 +
10886 + msgid "write the pack index file in the specified idx format version"
10887 + msgstr "skryf die pakindekslêer in die gespesifiseerde idx-formaatweergawe"
10888 +
10889 + msgid "ignore borrowed objects from alternate object store"
10890 + msgstr "ignoreer geleende objekte van 'n alternatiewe objekstoor"
10891 +
10892 + msgid "ignore packed objects"
10893 + msgstr "ignoreer gepakte objekte"
10894 +
10895 + msgid "limit pack window by objects"
10896 + msgstr "beperk pakvenster volgens objekte"
10897 +
10898 + msgid "limit pack window by memory in addition to object limit"
10899 + msgstr "beperk pakvenster volgens geheue benewens die objeklimiet"
10900 +
10901 + msgid "maximum length of delta chain allowed in the resulting pack"
10902 + msgstr "maksimum lengte van deltaketting toegelaat in die resulterende pak"
10903 +
10904 + msgid "reuse existing deltas"
10905 + msgstr "hergebruik bestaande deltas"
10906 +
10907 + msgid "reuse existing objects"
10908 + msgstr "hergebruik bestaande objekte"
10909 +
10910 + msgid "use OFS_DELTA objects"
10911 + msgstr "gebruik OFS_DELTA-objekte"
10912 +
10913 + msgid "use threads when searching for best delta matches"
10914 + msgstr "gebruik drade wanneer na die beste delta-passings gesoek word"
10915 +
10916 + msgid "do not create an empty pack output"
10917 + msgstr "moenie 'n leë pakuitvoer skep nie"
10918 +
10919 + msgid "read revision arguments from standard input"
10920 + msgstr "lees revisie-argumente vanaf standaardinvoer"
10921 +
10922 + msgid "limit the objects to those that are not yet packed"
10923 + msgstr "beperk die objekte tot dié wat nog nie gepak is nie"
10924 +
10925 + msgid "include objects reachable from any reference"
10926 + msgstr "sluit objekte in wat vanaf enige verwysing bereikbaar is"
10927 +
10928 + msgid "include objects referred by reflog entries"
10929 + msgstr "sluit objekte in waarna reflog-inskrywings verwys"
10930 +
10931 + msgid "include objects referred to by the index"
10932 + msgstr "sluit objekte in waarna die indeks verwys"
10933 +
10934 + msgid "read packs from stdin"
10935 + msgstr "lees pakke vanaf stdin"
10936 +
10937 + msgid "output pack to stdout"
10938 + msgstr "voer pak uit na stdout"
10939 +
10940 + msgid "include tag objects that refer to objects to be packed"
10941 + msgstr "sluit etiketobjekte in wat verwys na objekte wat gepak gaan word"
10942 +
10943 + msgid "keep unreachable objects"
10944 + msgstr "behou onbereikbare objekte"
10945 +
10946 + msgid "pack loose unreachable objects"
10947 + msgstr "pak los onbereikbare objekte"
10948 +
10949 + msgid "unpack unreachable objects newer than <time>"
10950 + msgstr "pak onbereikbare objekte nuwer as <tyd> uit"
10951 +
10952 + msgid "create a cruft pack"
10953 + msgstr "skep 'n afvalpak"
10954 +
10955 + msgid "expire cruft objects older than <time>"
10956 + msgstr "laat afvalobjekte ouer as <tyd> verval"
10957 +
10958 + msgid "use the sparse reachability algorithm"
10959 + msgstr "gebruik die yl bereikbaarheidsalgoritme"
10960 +
10961 + msgid "create thin packs"
10962 + msgstr "skep dun pakke"
10963 +
10964 + msgid "use the path-walk API to walk objects when possible"
10965 + msgstr "gebruik die path-walk-API om objekte te deurloop waar moontlik"
10966 +
10967 + msgid "create packs suitable for shallow fetches"
10968 + msgstr "skep pakke wat geskik is vir vlak haalbewerkings"
10969 +
10970 + msgid "ignore packs that have companion .keep file"
10971 + msgstr "ignoreer pakke wat 'n gepaardgaande .keep-lêer het"
10972 +
10973 + msgid "ignore this pack"
10974 + msgstr "ignoreer hierdie pak"
10975 +
10976 + msgid "pack compression level"
10977 + msgstr "pakkompressievlak"
10978 +
10979 + msgid "do not hide commits by grafts"
10980 + msgstr "moenie vasleggings deur oorplantings verberg nie"
10981 +
10982 + msgid "use a bitmap index if available to speed up counting objects"
10983 + msgstr ""
10984 + "gebruik 'n bitmapindeks indien beskikbaar om die tel van objekte te versnel"
10985 +
10986 + msgid "write a bitmap index together with the pack index"
10987 + msgstr "skryf 'n bitmapindeks saam met die pakindeks"
10988 +
10989 + msgid "write a bitmap index if possible"
10990 + msgstr "skryf 'n bitmapindeks indien moontlik"
10991 +
10992 + msgid "handling for missing objects"
10993 + msgstr "hantering van ontbrekende objekte"
10994 +
10995 + msgid "do not pack objects in promisor packfiles"
10996 + msgstr "moenie objekte in beloftegewer-paklêers pak nie"
10997 +
10998 + msgid "implies --missing=allow-any"
10999 + msgstr "impliseer --missing=allow-any"
11000 +
11001 + msgid "respect islands during delta compression"
11002 + msgstr "respekteer eilande tydens delta-kompressie"
11003 +
11004 + msgid "protocol"
11005 + msgstr "protokol"
11006 +
11007 + msgid "exclude any configured uploadpack.blobpackfileuri with this protocol"
11008 + msgstr ""
11009 + "sluit enige gekonfigureerde uploadpack.blobpackfileuri met hierdie protokol "
11010 + "uit"
11011 +
11012 + msgid "use the specified name-hash function to group similar objects"
11013 + msgstr ""
11014 + "gebruik die gespesifiseerde naam-hash-funksie om soortgelyke objekte te "
11015 + "groepeer"
11016 +
11017 + #, c-format
11018 + msgid "delta chain depth %d is too deep, forcing %d"
11019 + msgstr "deltakettingdiepte %d is te diep, dwing %d af"
11020 +
11021 + #, c-format
11022 + msgid "pack.deltaCacheLimit is too high, forcing %d"
11023 + msgstr "pack.deltaCacheLimit is te hoog, dwing %d af"
11024 +
11025 + #, c-format
11026 + msgid "cannot use %s with %s"
11027 + msgstr "kan nie %s met %s gebruik nie"
11028 +
11029 + #, c-format
11030 + msgid "bad pack compression level %d"
11031 + msgstr "slegte pakkompressievlak %d"
11032 +
11033 + msgid "--max-pack-size cannot be used to build a pack for transfer"
11034 + msgstr "--max-pack-size kan nie gebruik word om 'n pak vir oordrag te bou nie"
11035 +
11036 + msgid "minimum pack size limit is 1 MiB"
11037 + msgstr "minimum pakgroottelimiet is 1 MiB"
11038 +
11039 + msgid "--thin cannot be used to build an indexable pack"
11040 + msgstr "--thin kan nie gebruik word om 'n indekseerbare pak te bou nie"
11041 +
11042 + msgid "cannot use internal rev list with --stdin-packs"
11043 + msgstr "kan nie interne revisielys met --stdin-packs gebruik nie"
11044 +
11045 + msgid "cannot use internal rev list with --cruft"
11046 + msgstr "kan nie interne revisielys met --cruft gebruik nie"
11047 +
11048 + msgid "Enumerating objects"
11049 + msgstr "Som objekte op"
11050 +
11051 + #, c-format
11052 + msgid ""
11053 + "Total %<PRIu32> (delta %<PRIu32>), reused %<PRIu32> (delta %<PRIu32>), pack-"
11054 + "reused %<PRIu32> (from %<PRIuMAX>)"
11055 + msgstr ""
11056 + "Totaal %<PRIu32> (delta %<PRIu32>), hergebruik %<PRIu32> (delta %<PRIu32>), "
11057 + "pak-hergebruik %<PRIu32> (van %<PRIuMAX>)"
11058 +
11059 + msgid "git pack-refs "
11060 + msgstr "git pack-refs "
11061 +
11062 + msgid "git patch-id [--stable | --unstable | --verbatim]"
11063 + msgstr "git patch-id [--stable | --unstable | --verbatim]"
11064 +
11065 + msgid "use the unstable patch ID algorithm"
11066 + msgstr "gebruik die onstabiele lap-ID-algoritme"
11067 +
11068 + msgid "use the stable patch ID algorithm"
11069 + msgstr "gebruik die stabiele lap-ID-algoritme"
11070 +
11071 + msgid "don't strip whitespace from the patch"
11072 + msgstr "moenie witspasie van die lap verwyder nie"
11073 +
11074 + msgid "git prune [-n] [-v] [--progress] [--expire <time>] [--] [<head>...]"
11075 + msgstr "git prune [-n] [-v] [--progress] [--expire <tyd>] [--] [<kop>...]"
11076 +
11077 + msgid "report pruned objects"
11078 + msgstr "rapporteer gesnoeide objekte"
11079 +
11080 + msgid "expire objects older than <time>"
11081 + msgstr "laat objekte ouer as <tyd> verval"
11082 +
11083 + msgid "limit traversal to objects outside promisor packfiles"
11084 + msgstr "beperk deurloop tot objekte buite beloftegewer-paklêers"
11085 +
11086 + msgid "cannot prune in a precious-objects repo"
11087 + msgstr "kan nie in 'n bewaarplek met kosbare objekte snoei nie"
11088 +
11089 + msgid "git pull [<options>] [<repository> [<refspec>...]]"
11090 + msgstr "git pull [<opsies>] [<bewaarplek> [<verwysingspesifikasie>...]]"
11091 +
11092 + msgid ""
11093 + "There is no candidate for rebasing against among the refs that you just "
11094 + "fetched."
11095 + msgstr ""
11096 + "Daar is geen kandidaat om teen te herbaseer onder die verwysings wat jy pas "
11097 + "gehaal het nie."
11098 +
11099 + msgid ""
11100 + "There are no candidates for merging among the refs that you just fetched."
11101 + msgstr ""
11102 + "Daar is geen kandidate om mee saam te smelt onder die verwysings wat jy pas "
11103 + "gehaal het nie."
11104 +
11105 + msgid ""
11106 + "Generally this means that you provided a wildcard refspec which had no\n"
11107 + "matches on the remote end."
11108 + msgstr ""
11109 + "Oor die algemeen beteken dit dat jy 'n verwysingspesifikasie met 'n\n"
11110 + "jokerteken verskaf het wat geen passings aan die afgeleë kant gehad het nie."
11111 +
11112 + #, c-format
11113 + msgid ""
11114 + "You asked to pull from the remote '%s', but did not specify\n"
11115 + "a branch. Because this is not the default configured remote\n"
11116 + "for your current branch, you must specify a branch on the command line."
11117 + msgstr ""
11118 + "Jy het gevra om van die afgeleë '%s' te trek, maar het nie 'n tak\n"
11119 + "gespesifiseer nie. Omdat dit nie die verstek gekonfigureerde afgeleë vir\n"
11120 + "jou huidige tak is nie, moet jy 'n tak op die opdragreël spesifiseer."
11121 +
11122 + msgid "You are not currently on a branch."
11123 + msgstr "Jy is tans nie op 'n tak nie."
11124 +
11125 + msgid "Please specify which branch you want to rebase against."
11126 + msgstr "Spesifiseer asseblief teen watter tak jy wil herbaseer."
11127 +
11128 + msgid "Please specify which branch you want to merge with."
11129 + msgstr "Spesifiseer asseblief met watter tak jy wil saamsmelt."
11130 +
11131 + msgid "See git-pull(1) for details."
11132 + msgstr "Sien git-pull(1) vir besonderhede."
11133 +
11134 + msgid "<remote>"
11135 + msgstr "<afgeleë>"
11136 +
11137 + msgid "<branch>"
11138 + msgstr "<tak>"
11139 +
11140 + msgid "There is no tracking information for the current branch."
11141 + msgstr "Daar is geen volginligting vir die huidige tak nie."
11142 +
11143 + msgid ""
11144 + "If you wish to set tracking information for this branch you can do so with:"
11145 + msgstr "As jy volginligting vir hierdie tak wil instel, kan jy dit doen met:"
11146 +
11147 + #, c-format
11148 + msgid ""
11149 + "Your configuration specifies to merge with the ref '%s'\n"
11150 + "from the remote, but no such ref was fetched."
11151 + msgstr ""
11152 + "Jou konfigurasie spesifiseer om met die verwysing '%s'\n"
11153 + "van die afgeleë saam te smelt, maar geen sodanige verwysing is gehaal nie."
11154 +
11155 + #, c-format
11156 + msgid "unable to access commit %s"
11157 + msgstr "kan nie toegang tot vaslegging %s kry nie"
11158 +
11159 + #, c-format
11160 + msgid "invalid refspec '%s'"
11161 + msgstr "ongeldige verwysingspesifikasie '%s'"
11162 +
11163 + msgid "ignoring --verify-signatures for rebase"
11164 + msgstr "ignoreer --verify-signatures vir herbasering"
11165 +
11166 + msgid ""
11167 + "You have divergent branches and need to specify how to reconcile them.\n"
11168 + "You can do so by running one of the following commands sometime before\n"
11169 + "your next pull:\n"
11170 + "\n"
11171 + " git config pull.rebase false # merge\n"
11172 + " git config pull.rebase true # rebase\n"
11173 + " git config pull.ff only # fast-forward only\n"
11174 + "\n"
11175 + "You can replace \"git config\" with \"git config --global\" to set a "
11176 + "default\n"
11177 + "preference for all repositories. You can also pass --rebase, --no-rebase,\n"
11178 + "or --ff-only on the command line to override the configured default per\n"
11179 + "invocation.\n"
11180 + msgstr ""
11181 + "Jy het uiteenlopende takke en moet spesifiseer hoe om hulle te versoen.\n"
11182 + "Jy kan dit doen deur een van die volgende opdragte voor jou volgende\n"
11183 + "trek uit te voer:\n"
11184 + "\n"
11185 + " git config pull.rebase false # saamsmelt\n"
11186 + " git config pull.rebase true # herbaseer\n"
11187 + " git config pull.ff only # slegs vooruitspoel\n"
11188 + "\n"
11189 + "Jy kan \"git config\" met \"git config --global\" vervang om 'n\n"
11190 + "verstekvoorkeur vir alle bewaarplekke in te stel. Jy kan ook --rebase,\n"
11191 + "--no-rebase of --ff-only op die opdragreël gee om die gekonfigureerde\n"
11192 + "verstek per aanroep te oorheers.\n"
11193 +
11194 + msgid "control for recursive fetching of submodules"
11195 + msgstr "beheer rekursiewe haal van submodules"
11196 +
11197 + msgid "Options related to merging"
11198 + msgstr "Opsies wat met saamsmelting verband hou"
11199 +
11200 + msgid "incorporate changes by rebasing rather than merging"
11201 + msgstr "inkorporeer veranderinge deur te herbaseer eerder as om saam te smelt"
11202 +
11203 + msgid "allow fast-forward"
11204 + msgstr "laat vooruitspoel toe"
11205 +
11206 + msgid "control use of pre-merge-commit and commit-msg hooks"
11207 + msgstr "beheer gebruik van pre-merge-commit- en commit-msg-hake"
11208 +
11209 + msgid "automatically stash/stash pop before and after"
11210 + msgstr "bêre outomaties weg en haal terug (stash/stash pop) voor en na"
11211 +
11212 + msgid "Options related to fetching"
11213 + msgstr "Opsies wat met haal verband hou"
11214 +
11215 + msgid "force overwrite of local branch"
11216 + msgstr "dwing oorskrywing van plaaslike tak af"
11217 +
11218 + msgid "number of submodules pulled in parallel"
11219 + msgstr "aantal submodules wat parallel getrek word"
11220 +
11221 + msgid "use IPv4 addresses only"
11222 + msgstr "gebruik slegs IPv4-adresse"
11223 +
11224 + msgid "use IPv6 addresses only"
11225 + msgstr "gebruik slegs IPv6-adresse"
11226 +
11227 + msgid "Updating an unborn branch with changes added to the index."
11228 + msgstr "Werk 'n ongebore tak by met veranderinge wat by die indeks gevoeg is."
11229 +
11230 + msgid "pull with rebase"
11231 + msgstr "trek met herbasering"
11232 +
11233 + msgid "Please commit or stash them."
11234 + msgstr "Lê hulle asseblief vas of bêre hulle weg."
11235 +
11236 + #, c-format
11237 + msgid ""
11238 + "fetch updated the current branch head.\n"
11239 + "fast-forwarding your working tree from\n"
11240 + "commit %s."
11241 + msgstr ""
11242 + "haal het die huidige takkop bygewerk.\n"
11243 + "spoel jou werkboom vooruit vanaf\n"
11244 + "vaslegging %s."
11245 +
11246 + #, c-format
11247 + msgid ""
11248 + "Cannot fast-forward your working tree.\n"
11249 + "After making sure that you saved anything precious from\n"
11250 + "$ git diff %s\n"
11251 + "output, run\n"
11252 + "$ git reset --hard\n"
11253 + "to recover."
11254 + msgstr ""
11255 + "Kan nie jou werkboom vooruitspoel nie.\n"
11256 + "Nadat jy seker gemaak het dat jy enigiets kosbaars uit die\n"
11257 + "$ git diff %s\n"
11258 + "uitvoer gestoor het, voer\n"
11259 + "$ git reset --hard\n"
11260 + "uit om te herstel."
11261 +
11262 + msgid "Cannot merge multiple branches into empty head."
11263 + msgstr "Kan nie veelvuldige takke in 'n leë kop saamsmelt nie."
11264 +
11265 + msgid "Cannot rebase onto multiple branches."
11266 + msgstr "Kan nie op veelvuldige takke herbaseer nie."
11267 +
11268 + msgid "Cannot fast-forward to multiple branches."
11269 + msgstr "Kan nie na veelvuldige takke vooruitspoel nie."
11270 +
11271 + msgid "Need to specify how to reconcile divergent branches."
11272 + msgstr "Moet spesifiseer hoe om uiteenlopende takke te versoen."
11273 +
11274 + msgid "cannot rebase with locally recorded submodule modifications"
11275 + msgstr "kan nie herbaseer met plaaslik aangetekende submodule-wysigings nie"
11276 +
11277 + msgid "git push [<options>] [<repository> [<refspec>...]]"
11278 + msgstr "git push [<opsies>] [<bewaarplek> [<verwysingspesifikasie>...]]"
11279 +
11280 + msgid "tag shorthand without <tag>"
11281 + msgstr "etiket-verkorting sonder <etiket>"
11282 +
11283 + msgid "--delete only accepts plain target ref names"
11284 + msgstr "--delete aanvaar slegs gewone teikenverwysingsname"
11285 +
11286 + msgid ""
11287 + "\n"
11288 + "To choose either option permanently, see push.default in 'git help config'.\n"
11289 + msgstr ""
11290 + "\n"
11291 + "Om enige opsie permanent te kies, sien push.default in 'git help config'.\n"
11292 +
11293 + msgid ""
11294 + "\n"
11295 + "To avoid automatically configuring an upstream branch when its name\n"
11296 + "won't match the local branch, see option 'simple' of branch.autoSetupMerge\n"
11297 + "in 'git help config'.\n"
11298 + msgstr ""
11299 + "\n"
11300 + "Om te voorkom dat 'n stroomop-tak outomaties opgestel word wanneer sy naam\n"
11301 + "nie by die plaaslike tak pas nie, sien opsie 'simple' van "
11302 + "branch.autoSetupMerge\n"
11303 + "in 'git help config'.\n"
11304 +
11305 + #, c-format
11306 + msgid ""
11307 + "The upstream branch of your current branch does not match\n"
11308 + "the name of your current branch. To push to the upstream branch\n"
11309 + "on the remote, use\n"
11310 + "\n"
11311 + " git push %s HEAD:%s\n"
11312 + "\n"
11313 + "To push to the branch of the same name on the remote, use\n"
11314 + "\n"
11315 + " git push %s HEAD\n"
11316 + "%s%s"
11317 + msgstr ""
11318 + "Die stroomop-tak van jou huidige tak pas nie\n"
11319 + "by die naam van jou huidige tak nie. Om na die stroomop-tak\n"
11320 + "op die afgeleë te stoot, gebruik\n"
11321 + "\n"
11322 + " git push %s HEAD:%s\n"
11323 + "\n"
11324 + "Om na die tak met dieselfde naam op die afgeleë te stoot, gebruik\n"
11325 + "\n"
11326 + " git push %s HEAD\n"
11327 + "%s%s"
11328 +
11329 + #, c-format
11330 + msgid ""
11331 + "You are not currently on a branch.\n"
11332 + "To push the history leading to the current (detached HEAD)\n"
11333 + "state now, use\n"
11334 + "\n"
11335 + " git push %s HEAD:<name-of-remote-branch>\n"
11336 + msgstr ""
11337 + "Jy is tans nie op 'n tak nie.\n"
11338 + "Om die geskiedenis wat tot die huidige (ontkoppelde HEAD)\n"
11339 + "toestand lei nou te stoot, gebruik\n"
11340 + "\n"
11341 + " git push %s HEAD:<naam-van-afgeleë-tak>\n"
11342 +
11343 + msgid ""
11344 + "\n"
11345 + "To have this happen automatically for branches without a tracking\n"
11346 + "upstream, see 'push.autoSetupRemote' in 'git help config'.\n"
11347 + msgstr ""
11348 + "\n"
11349 + "Om dit outomaties te laat gebeur vir takke sonder 'n volg-\n"
11350 + "stroomop, sien 'push.autoSetupRemote' in 'git help config'.\n"
11351 +
11352 + #, c-format
11353 + msgid ""
11354 + "The current branch %s has no upstream branch.\n"
11355 + "To push the current branch and set the remote as upstream, use\n"
11356 + "\n"
11357 + " git push --set-upstream %s %s\n"
11358 + "%s"
11359 + msgstr ""
11360 + "Die huidige tak %s het geen stroomop-tak nie.\n"
11361 + "Om die huidige tak te stoot en die afgeleë as stroomop te stel, gebruik\n"
11362 + "\n"
11363 + " git push --set-upstream %s %s\n"
11364 + "%s"
11365 +
11366 + #, c-format
11367 + msgid "The current branch %s has multiple upstream branches, refusing to push."
11368 + msgstr "Die huidige tak %s het verskeie stroomop-takke, weier om te stoot."
11369 +
11370 + msgid ""
11371 + "You didn't specify any refspecs to push, and push.default is \"nothing\"."
11372 + msgstr ""
11373 + "Jy het geen verwysingspesifikasies om te stoot gespesifiseer nie, en "
11374 + "push.default is \"nothing\"."
11375 +
11376 + #, c-format
11377 + msgid ""
11378 + "You are pushing to remote '%s', which is not the upstream of\n"
11379 + "your current branch '%s', without telling me what to push\n"
11380 + "to update which remote branch."
11381 + msgstr ""
11382 + "Jy stoot na afgeleë '%s', wat nie die stroomop van\n"
11383 + "jou huidige tak '%s' is nie, sonder om te sê wat om te stoot\n"
11384 + "om watter afgeleë tak op te dateer."
11385 +
11386 + msgid ""
11387 + "Updates were rejected because the tip of your current branch is behind\n"
11388 + "its remote counterpart. If you want to integrate the remote changes,\n"
11389 + "use 'git pull' before pushing again.\n"
11390 + "See the 'Note about fast-forwards' in 'git push --help' for details."
11391 + msgstr ""
11392 + "Opdaterings is geweier omdat die punt van jou huidige tak agter\n"
11393 + "sy afgeleë eweknie is. As jy die afgeleë wysigings wil integreer,\n"
11394 + "gebruik 'git pull' voordat jy weer stoot.\n"
11395 + "Sien die 'Note about fast-forwards' in 'git push --help' vir besonderhede."
11396 +
11397 + msgid ""
11398 + "Updates were rejected because a pushed branch tip is behind its remote\n"
11399 + "counterpart. If you want to integrate the remote changes, use 'git pull'\n"
11400 + "before pushing again.\n"
11401 + "See the 'Note about fast-forwards' in 'git push --help' for details."
11402 + msgstr ""
11403 + "Opdaterings is geweier omdat 'n gestote takpunt agter sy afgeleë\n"
11404 + "eweknie is. As jy die afgeleë wysigings wil integreer, gebruik 'git pull'\n"
11405 + "voordat jy weer stoot.\n"
11406 + "Sien die 'Note about fast-forwards' in 'git push --help' vir besonderhede."
11407 +
11408 + msgid ""
11409 + "Updates were rejected because the remote contains work that you do not\n"
11410 + "have locally. This is usually caused by another repository pushing to\n"
11411 + "the same ref. If you want to integrate the remote changes, use\n"
11412 + "'git pull' before pushing again.\n"
11413 + "See the 'Note about fast-forwards' in 'git push --help' for details."
11414 + msgstr ""
11415 + "Opdaterings is geweier omdat die afgeleë werk bevat wat jy nie\n"
11416 + "plaaslik het nie. Dit word gewoonlik veroorsaak deur 'n ander bewaarplek wat "
11417 + "na\n"
11418 + "dieselfde verwysing stoot. As jy die afgeleë wysigings wil integreer, "
11419 + "gebruik\n"
11420 + "'git pull' voordat jy weer stoot.\n"
11421 + "Sien die 'Note about fast-forwards' in 'git push --help' vir besonderhede."
11422 +
11423 + msgid "Updates were rejected because the tag already exists in the remote."
11424 + msgstr "Opdaterings is geweier omdat die etiket reeds in die afgeleë bestaan."
11425 +
11426 + msgid ""
11427 + "You cannot update a remote ref that points at a non-commit object,\n"
11428 + "or update a remote ref to make it point at a non-commit object,\n"
11429 + "without using the '--force' option.\n"
11430 + msgstr ""
11431 + "Jy kan nie 'n afgeleë verwysing opdateer wat na 'n nie-vaslegging-objek wys "
11432 + "nie,\n"
11433 + "of 'n afgeleë verwysing opdateer om dit na 'n nie-vaslegging-objek te laat "
11434 + "wys nie,\n"
11435 + "sonder om die '--force'-opsie te gebruik.\n"
11436 +
11437 + msgid ""
11438 + "Updates were rejected because the tip of the remote-tracking branch has\n"
11439 + "been updated since the last checkout. If you want to integrate the\n"
11440 + "remote changes, use 'git pull' before pushing again.\n"
11441 + "See the 'Note about fast-forwards' in 'git push --help' for details."
11442 + msgstr ""
11443 + "Opdaterings is geweier omdat die punt van die afgeleë volgtak\n"
11444 + "sedert die laaste uitcheck opgedateer is. As jy die\n"
11445 + "afgeleë wysigings wil integreer, gebruik 'git pull' voordat jy weer stoot.\n"
11446 + "Sien die 'Note about fast-forwards' in 'git push --help' vir besonderhede."
11447 +
11448 + #, c-format
11449 + msgid "Pushing to %s\n"
11450 + msgstr "Stoot tans na %s\n"
11451 +
11452 + #, c-format
11453 + msgid "failed to push some refs to '%s'"
11454 + msgstr "kon nie sommige verwysings na '%s' stoot nie"
11455 +
11456 + msgid ""
11457 + "recursing into submodule with push.recurseSubmodules=only; using on-demand "
11458 + "instead"
11459 + msgstr ""
11460 + "herhaal tans in submodule met push.recurseSubmodules=only; gebruik in plaas "
11461 + "on-demand"
11462 +
11463 + #, c-format
11464 + msgid "invalid value for '%s'"
11465 + msgstr "ongeldige waarde vir '%s'"
11466 +
11467 + #, c-format
11468 + msgid "could not push to %s"
11469 + msgstr "kon nie na %s stoot nie"
11470 +
11471 + #, c-format
11472 + msgid "'%s' is not a valid push target"
11473 + msgstr "'%s' is nie 'n geldige stootteiken nie"
11474 +
11475 + #, c-format
11476 + msgid "Did you mean to use: git push %s %s?"
11477 + msgstr "Het jy bedoel om dit te gebruik: git push %s %s?"
11478 +
11479 + msgid "repository"
11480 + msgstr "bewaarplek"
11481 +
11482 + msgid "push all branches"
11483 + msgstr "stoot alle takke"
11484 +
11485 + msgid "mirror all refs"
11486 + msgstr "spieël alle verwysings"
11487 +
11488 + msgid "delete refs"
11489 + msgstr "skrap verwysings"
11490 +
11491 + msgid "push tags (can't be used with --all or --branches or --mirror)"
11492 + msgstr ""
11493 + "stoot etikette (kan nie saam met --all of --branches of --mirror gebruik "
11494 + "word nie)"
11495 +
11496 + msgid "force updates"
11497 + msgstr "dwing opdaterings af"
11498 +
11499 + msgid "<refname>:<expect>"
11500 + msgstr "<verwysingsnaam>:<verwag>"
11501 +
11502 + msgid "require old value of ref to be at this value"
11503 + msgstr "vereis dat die ou waarde van die verwysing hierdie waarde is"
11504 +
11505 + msgid "require remote updates to be integrated locally"
11506 + msgstr "vereis dat afgeleë opdaterings plaaslik geïntegreer word"
11507 +
11508 + msgid "control recursive pushing of submodules"
11509 + msgstr "beheer herhalende stoot van submodules"
11510 +
11511 + msgid "use thin pack"
11512 + msgstr "gebruik dun pak"
11513 +
11514 + msgid "receive pack program"
11515 + msgstr "ontvang-pak-program"
11516 +
11517 + msgid "set upstream for git pull/status"
11518 + msgstr "stel stroomop vir git pull/status"
11519 +
11520 + msgid "prune locally removed refs"
11521 + msgstr "sny plaaslik verwyderde verwysings weg"
11522 +
11523 + msgid "bypass pre-push hook"
11524 + msgstr "omseil pre-push-haak"
11525 +
11526 + msgid "push missing but relevant tags"
11527 + msgstr "stoot ontbrekende maar tersaaklike etikette"
11528 +
11529 + msgid "GPG sign the push"
11530 + msgstr "onderteken die stoot met GPG"
11531 +
11532 + msgid "request atomic transaction on remote side"
11533 + msgstr "versoek atoomtransaksie aan die afgeleë kant"
11534 +
11535 + msgid "--delete doesn't make sense without any refs"
11536 + msgstr "--delete maak nie sin sonder enige verwysings nie"
11537 +
11538 + #, c-format
11539 + msgid "bad repository '%s'"
11540 + msgstr "slegte bewaarplek '%s'"
11541 +
11542 + msgid ""
11543 + "No configured push destination.\n"
11544 + "Either specify the URL from the command-line or configure a remote "
11545 + "repository using\n"
11546 + "\n"
11547 + " git remote add <name> <url>\n"
11548 + "\n"
11549 + "and then push using the remote name\n"
11550 + "\n"
11551 + " git push <name>\n"
11552 + "\n"
11553 + "To push to multiple remotes at once, configure a remote group using\n"
11554 + "\n"
11555 + " git config remotes.<groupname> \"<remote1> <remote2>\"\n"
11556 + "\n"
11557 + "and then push using the group name\n"
11558 + "\n"
11559 + " git push <groupname>\n"
11560 + msgstr ""
11561 + "Geen gekonfigureerde stootbestemming nie.\n"
11562 + "Spesifiseer of die URL vanaf die opdraglyn of stel 'n afgeleë bewaarplek op "
11563 + "met\n"
11564 + "\n"
11565 + " git remote add <naam> <url>\n"
11566 + "\n"
11567 + "en stoot dan met die afgeleë naam\n"
11568 + "\n"
11569 + " git push <naam>\n"
11570 + "\n"
11571 + "Om gelyktydig na verskeie afgeleës te stoot, stel 'n afgeleë groep op met\n"
11572 + "\n"
11573 + " git config remotes.<groepnaam> \"<afgeleë1> <afgeleë2>\"\n"
11574 + "\n"
11575 + "en stoot dan met die groepnaam\n"
11576 + "\n"
11577 + " git push <groepnaam>\n"
11578 +
11579 + msgid "push options must not have new line characters"
11580 + msgstr "stootopsies mag nie nuwereëlkarakters hê nie"
11581 +
11582 + msgid "--all can't be combined with refspecs"
11583 + msgstr "--all kan nie met verwysingspesifikasies gekombineer word nie"
11584 +
11585 + msgid "--mirror can't be combined with refspecs"
11586 + msgstr "--mirror kan nie met verwysingspesifikasies gekombineer word nie"
11587 +
11588 + msgid "--atomic can only be used when pushing to one remote"
11589 + msgstr ""
11590 + "--atomic kan slegs gebruik word wanneer daar na een afgeleë gestoot word"
11591 +
11592 + msgid "git range-diff [<options>] <old-base>..<old-tip> <new-base>..<new-tip>"
11593 + msgstr ""
11594 + "git range-diff [<opsies>] <ou-basis>..<ou-punt> <nuwe-basis>..<nuwe-punt>"
11595 +
11596 + msgid "git range-diff [<options>] <old-tip>...<new-tip>"
11597 + msgstr "git range-diff [<opsies>] <ou-punt>...<nuwe-punt>"
11598 +
11599 + msgid "git range-diff [<options>] <base> <old-tip> <new-tip>"
11600 + msgstr "git range-diff [<opsies>] <basis> <ou-punt> <nuwe-punt>"
11601 +
11602 + #, c-format
11603 + msgid "invalid max-memory value: %s"
11604 + msgstr "ongeldige max-memory-waarde: %s"
11605 +
11606 + msgid "use simple diff colors"
11607 + msgstr "gebruik eenvoudige verskilkleure"
11608 +
11609 + msgid "passed to 'git log'"
11610 + msgstr "word aan 'git log' deurgegee"
11611 +
11612 + msgid "size"
11613 + msgstr "grootte"
11614 +
11615 + msgid "maximum memory for cost matrix (default 4G)"
11616 + msgstr "maksimum geheue vir kostematriks (verstek 4G)"
11617 +
11618 + msgid "only emit output related to the first range"
11619 + msgstr "lewer slegs uitvoer wat met die eerste reeks verband hou"
11620 +
11621 + msgid "only emit output related to the second range"
11622 + msgstr "lewer slegs uitvoer wat met die tweede reeks verband hou"
11623 +
11624 + #, c-format
11625 + msgid "not a revision: '%s'"
11626 + msgstr "nie 'n revisie nie: '%s'"
11627 +
11628 + #, c-format
11629 + msgid "not a commit range: '%s'"
11630 + msgstr "nie 'n vasleggingsreeks nie: '%s'"
11631 +
11632 + #, c-format
11633 + msgid "not a symmetric range: '%s'"
11634 + msgstr "nie 'n simmetriese reeks nie: '%s'"
11635 +
11636 + msgid "need two commit ranges"
11637 + msgstr "benodig twee vasleggingsreekse"
11638 +
11639 + msgid ""
11640 + "git read-tree [(-m [--trivial] [--aggressive] | --reset | --"
11641 + "prefix=<prefix>)\n"
11642 + " [-u | -i]] [--index-output=<file>] [--no-sparse-checkout]\n"
11643 + " (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])"
11644 + msgstr ""
11645 + "git read-tree [(-m [--trivial] [--aggressive] | --reset | --"
11646 + "prefix=<voorvoegsel>)\n"
11647 + " [-u | -i]] [--index-output=<lêer>] [--no-sparse-checkout]\n"
11648 + " (--empty | <boomagtige1> [<boomagtige2> [<boomagtige3>]])"
11649 +
11650 + msgid "write resulting index to <file>"
11651 + msgstr "skryf resulterende indeks na <lêer>"
11652 +
11653 + msgid "only empty the index"
11654 + msgstr "maak slegs die indeks leeg"
11655 +
11656 + msgid "Merging"
11657 + msgstr "Saamsmelting"
11658 +
11659 + msgid "perform a merge in addition to a read"
11660 + msgstr "voer 'n saamsmelting benewens 'n lees uit"
11661 +
11662 + msgid "3-way merge if no file level merging required"
11663 + msgstr ""
11664 + "3-rigting-saamsmelting indien geen saamsmelting op lêervlak nodig is nie"
11665 +
11666 + msgid "3-way merge in presence of adds and removes"
11667 + msgstr ""
11668 + "3-rigting-saamsmelting in die teenwoordigheid van byvoegings en verwyderings"
11669 +
11670 + msgid "same as -m, but discard unmerged entries"
11671 + msgstr "dieselfde as -m, maar verwerp inskrywings wat nie saamgesmelt is nie"
11672 +
11673 + msgid "<subdirectory>/"
11674 + msgstr "<subgids>/"
11675 +
11676 + msgid "read the tree into the index under <subdirectory>/"
11677 + msgstr "lees die boom in die indeks onder <subgids>/ in"
11678 +
11679 + msgid "update working tree with merge result"
11680 + msgstr "werk werkboom by met saamsmeltresultaat"
11681 +
11682 + msgid "gitignore"
11683 + msgstr "gitignore"
11684 +
11685 + msgid "allow explicitly ignored files to be overwritten"
11686 + msgstr "laat toe dat uitdruklik geïgnoreerde lêers oorskryf word"
11687 +
11688 + msgid "don't check the working tree after merging"
11689 + msgstr "moenie die werkboom na saamsmelting nagaan nie"
11690 +
11691 + msgid "don't update the index or the work tree"
11692 + msgstr "moenie die indeks of die werkboom bywerk nie"
11693 +
11694 + msgid "skip applying sparse checkout filter"
11695 + msgstr "slaan die toepassing van die yl-uitcheck-filter oor"
11696 +
11697 + msgid "debug unpack-trees"
11698 + msgstr "ontfout unpack-trees"
11699 +
11700 + msgid "suppress feedback messages"
11701 + msgstr "onderdruk terugvoerboodskappe"
11702 +
11703 + msgid "You need to resolve your current index first"
11704 + msgstr "Jy moet eers jou huidige indeks oplos"
11705 +
11706 + msgid ""
11707 + "git rebase [-i] [options] [--exec <cmd>] [--onto <newbase> | --keep-base] "
11708 + "[<upstream> [<branch>]]"
11709 + msgstr ""
11710 + "git rebase [-i] [opsies] [--exec <opdrag>] [--onto <nuwebasis> | --keep-"
11711 + "base] [<stroomop> [<tak>]]"
11712 +
11713 + msgid ""
11714 + "git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]"
11715 + msgstr ""
11716 + "git rebase [-i] [opsies] [--exec <opdrag>] [--onto <nuwebasis>] --root "
11717 + "[<tak>]"
11718 +
11719 + #, c-format
11720 + msgid "could not read '%s'."
11721 + msgstr "kon nie '%s' lees nie."
11722 +
11723 + #, c-format
11724 + msgid "could not create temporary %s"
11725 + msgstr "kon nie tydelike %s skep nie"
11726 +
11727 + msgid "could not mark as interactive"
11728 + msgstr "kon nie as interaktief merk nie"
11729 +
11730 + msgid "could not generate todo list"
11731 + msgstr "kon nie die taaklys genereer nie"
11732 +
11733 + msgid "a base commit must be provided with --upstream or --onto"
11734 + msgstr "'n basisvaslegging moet met --upstream of --onto verskaf word"
11735 +
11736 + #, c-format
11737 + msgid "%s requires the merge backend"
11738 + msgstr "%s vereis die saamsmelt-agterkant"
11739 +
11740 + #, c-format
11741 + msgid "invalid onto: '%s'"
11742 + msgstr "ongeldige onto: '%s'"
11743 +
11744 + #, c-format
11745 + msgid "invalid orig-head: '%s'"
11746 + msgstr "ongeldige orig-head: '%s'"
11747 +
11748 + #, c-format
11749 + msgid "ignoring invalid allow_rerere_autoupdate: '%s'"
11750 + msgstr "ignoreer ongeldige allow_rerere_autoupdate: '%s'"
11751 +
11752 + #, c-format
11753 + msgid "could not remove '%s'"
11754 + msgstr "kon nie '%s' verwyder nie"
11755 +
11756 + #, c-format
11757 + msgid ""
11758 + "\n"
11759 + "git encountered an error while preparing the patches to replay\n"
11760 + "these revisions:\n"
11761 + "\n"
11762 + " %s\n"
11763 + "\n"
11764 + "As a result, git cannot rebase them."
11765 + msgstr ""
11766 + "\n"
11767 + "git het 'n fout teëgekom terwyl die lappe voorberei is om hierdie\n"
11768 + "hersienings oor te speel:\n"
11769 + "\n"
11770 + " %s\n"
11771 + "\n"
11772 + "Gevolglik kan git hulle nie herbaseer nie."
11773 +
11774 + #, c-format
11775 + msgid "Unknown rebase-merges mode: %s"
11776 + msgstr "Onbekende rebase-merges-modus: %s"
11777 +
11778 + #, c-format
11779 + msgid "could not switch to %s"
11780 + msgstr "kon nie na %s oorskakel nie"
11781 +
11782 + msgid "apply options and merge options cannot be used together"
11783 + msgstr "apply-opsies en merge-opsies kan nie saam gebruik word nie"
11784 +
11785 + msgid "--empty=ask is deprecated; use '--empty=stop' instead."
11786 + msgstr "--empty=ask is verouderd; gebruik eerder '--empty=stop'."
11787 +
11788 + #, c-format
11789 + msgid ""
11790 + "unrecognized empty type '%s'; valid values are \"drop\", \"keep\", and "
11791 + "\"stop\"."
11792 + msgstr ""
11793 + "onherkende leë tipe '%s'; geldige waardes is \"drop\", \"keep\" en \"stop\"."
11794 +
11795 + msgid ""
11796 + "--rebase-merges with an empty string argument is deprecated and will stop "
11797 + "working in a future version of Git. Use --rebase-merges without an argument "
11798 + "instead, which does the same thing."
11799 + msgstr ""
11800 + "--rebase-merges met 'n leë string as argument is verouderd en sal in 'n "
11801 + "toekomstige weergawe van Git ophou werk. Gebruik eerder --rebase-merges "
11802 + "sonder 'n argument, wat dieselfde doen."
11803 +
11804 + #, c-format
11805 + msgid ""
11806 + "%s\n"
11807 + "Please specify which branch you want to rebase against.\n"
11808 + "See git-rebase(1) for details.\n"
11809 + "\n"
11810 + " git rebase '<branch>'\n"
11811 + "\n"
11812 + msgstr ""
11813 + "%s\n"
11814 + "Spesifiseer asseblief teen watter tak jy wil herbaseer.\n"
11815 + "Sien git-rebase(1) vir besonderhede.\n"
11816 + "\n"
11817 + " git rebase '<tak>'\n"
11818 + "\n"
11819 +
11820 + #, c-format
11821 + msgid ""
11822 + "If you wish to set tracking information for this branch you can do so with:\n"
11823 + "\n"
11824 + " git branch --set-upstream-to=%s/<branch> %s\n"
11825 + "\n"
11826 + msgstr ""
11827 + "As jy naspoorinligting vir hierdie tak wil stel, kan jy dit doen met:\n"
11828 + "\n"
11829 + " git branch --set-upstream-to=%s/<tak> %s\n"
11830 + "\n"
11831 +
11832 + msgid "exec commands cannot contain newlines"
11833 + msgstr "exec-opdragte kan nie nuwe reëls bevat nie"
11834 +
11835 + msgid "empty exec command"
11836 + msgstr "leë exec-opdrag"
11837 +
11838 + msgid "rebase onto given branch instead of upstream"
11839 + msgstr "herbaseer op die gegewe tak in plaas van stroomop"
11840 +
11841 + msgid "use the merge-base of upstream and branch as the current base"
11842 + msgstr ""
11843 + "gebruik die saamsmeltbasis van stroomop en die tak as die huidige basis"
11844 +
11845 + msgid "allow pre-rebase hook to run"
11846 + msgstr "laat die pre-rebase-haak toe om te loop"
11847 +
11848 + msgid "be quiet. implies --no-stat"
11849 + msgstr "wees stil. impliseer --no-stat"
11850 +
11851 + msgid "display a diffstat of what changed upstream"
11852 + msgstr "vertoon 'n diffstat van wat stroomop verander het"
11853 +
11854 + msgid "do not show diffstat of what changed upstream"
11855 + msgstr "moenie 'n diffstat van wat stroomop verander het wys nie"
11856 +
11857 + msgid "add a Signed-off-by trailer to each commit"
11858 + msgstr "voeg 'n Signed-off-by-aanhangsel by elke vaslegging"
11859 +
11860 + msgid "make committer date match author date"
11861 + msgstr "laat die vasleggerdatum met die outeurdatum ooreenstem"
11862 +
11863 + msgid "ignore author date and use current date"
11864 + msgstr "ignoreer die outeurdatum en gebruik die huidige datum"
11865 +
11866 + msgid "synonym of --reset-author-date"
11867 + msgstr "sinoniem van --reset-author-date"
11868 +
11869 + msgid "passed to 'git apply'"
11870 + msgstr "deurgegee aan 'git apply'"
11871 +
11872 + msgid "ignore changes in whitespace"
11873 + msgstr "ignoreer veranderinge in witspasie"
11874 +
11875 + msgid "cherry-pick all commits, even if unchanged"
11876 + msgstr "kersiepluk alle vasleggings, selfs al is hulle onveranderd"
11877 +
11878 + msgid "continue"
11879 + msgstr "gaan voort"
11880 +
11881 + msgid "skip current patch and continue"
11882 + msgstr "slaan die huidige lap oor en gaan voort"
11883 +
11884 + msgid "abort and check out the original branch"
11885 + msgstr "staak en check die oorspronklike tak uit"
11886 +
11887 + msgid "abort but keep HEAD where it is"
11888 + msgstr "staak maar hou HEAD waar dit is"
11889 +
11890 + msgid "edit the todo list during an interactive rebase"
11891 + msgstr "wysig die taaklys tydens 'n interaktiewe herbasering"
11892 +
11893 + msgid "show the patch file being applied or merged"
11894 + msgstr "wys die laplêer wat toegepas of saamgesmelt word"
11895 +
11896 + msgid "use apply strategies to rebase"
11897 + msgstr "gebruik apply-strategieë om te herbaseer"
11898 +
11899 + msgid "use merging strategies to rebase"
11900 + msgstr "gebruik saamsmeltstrategieë om te herbaseer"
11901 +
11902 + msgid "let the user edit the list of commits to rebase"
11903 + msgstr "laat die gebruiker die lys vasleggings wysig wat herbaseer moet word"
11904 +
11905 + msgid "(REMOVED) was: try to recreate merges instead of ignoring them"
11906 + msgstr ""
11907 + "(VERWYDER) was: probeer saamsmeltings herskep in plaas daarvan om hulle te "
11908 + "ignoreer"
11909 +
11910 + msgid "keep commits which start empty"
11911 + msgstr "behou vasleggings wat leeg begin"
11912 +
11913 + msgid "move commits that begin with squash!/fixup! under -i"
11914 + msgstr "skuif vasleggings wat met squash!/fixup! begin onder -i"
11915 +
11916 + msgid "update branches that point to commits that are being rebased"
11917 + msgstr "werk takke by wat na vasleggings wys wat tans herbaseer word"
11918 +
11919 + msgid "add exec lines after each commit of the editable list"
11920 + msgstr "voeg exec-reëls by na elke vaslegging van die wysigbare lys"
11921 +
11922 + msgid "allow rebasing commits with empty messages"
11923 + msgstr "laat die herbasering van vasleggings met leë boodskappe toe"
11924 +
11925 + msgid "try to rebase merges instead of skipping them"
11926 + msgstr "probeer saamsmeltings herbaseer in plaas daarvan om hulle oor te slaan"
11927 +
11928 + msgid "use 'merge-base --fork-point' to refine upstream"
11929 + msgstr "gebruik 'merge-base --fork-point' om stroomop te verfyn"
11930 +
11931 + msgid "use the given merge strategy"
11932 + msgstr "gebruik die gegewe saamsmeltstrategie"
11933 +
11934 + msgid "option"
11935 + msgstr "opsie"
11936 +
11937 + msgid "pass the argument through to the merge strategy"
11938 + msgstr "gee die argument deur na die saamsmeltstrategie"
11939 +
11940 + msgid "rebase all reachable commits up to the root(s)"
11941 + msgstr "herbaseer alle bereikbare vasleggings tot by die wortel(s)"
11942 +
11943 + msgid "automatically re-schedule any `exec` that fails"
11944 + msgstr "herskeduleer outomaties enige `exec` wat misluk"
11945 +
11946 + msgid "apply all changes, even those already present upstream"
11947 + msgstr "pas alle veranderinge toe, selfs dié wat reeds stroomop bestaan"
11948 +
11949 + msgid "It looks like 'git am' is in progress. Cannot rebase."
11950 + msgstr "Dit lyk of 'git am' aan die gang is. Kan nie herbaseer nie."
11951 +
11952 + msgid ""
11953 + "`rebase --preserve-merges` (-p) is no longer supported.\n"
11954 + "Use `git rebase --abort` to terminate current rebase.\n"
11955 + "Or downgrade to v2.33, or earlier, to complete the rebase."
11956 + msgstr ""
11957 + "`rebase --preserve-merges` (-p) word nie meer ondersteun nie.\n"
11958 + "Gebruik `git rebase --abort` om die huidige herbasering te beëindig.\n"
11959 + "Of gradeer af na v2.33, of vroeër, om die herbasering te voltooi."
11960 +
11961 + msgid ""
11962 + "--preserve-merges was replaced by --rebase-merges\n"
11963 + "Note: Your `pull.rebase` configuration may also be set to 'preserve',\n"
11964 + "which is no longer supported; use 'merges' instead"
11965 + msgstr ""
11966 + "--preserve-merges is deur --rebase-merges vervang\n"
11967 + "Let wel: Jou `pull.rebase`-konfigurasie is dalk ook op 'preserve' gestel,\n"
11968 + "wat nie meer ondersteun word nie; gebruik eerder 'merges'"
11969 +
11970 + msgid "no rebase in progress"
11971 + msgstr "geen herbasering aan die gang nie"
11972 +
11973 + msgid "The --edit-todo action can only be used during interactive rebase."
11974 + msgstr ""
11975 + "Die aksie --edit-todo kan slegs tydens 'n interaktiewe herbasering gebruik "
11976 + "word."
11977 +
11978 + msgid "Cannot read HEAD"
11979 + msgstr "Kan nie HEAD lees nie"
11980 +
11981 + msgid ""
11982 + "You must edit all merge conflicts and then\n"
11983 + "mark them as resolved using git add"
11984 + msgstr ""
11985 + "Jy moet alle saamsmeltkonflikte wysig en hulle dan\n"
11986 + "met git add as opgelos merk"
11987 +
11988 + msgid "could not discard worktree changes"
11989 + msgstr "kon nie die werkboomveranderinge weggooi nie"
11990 +
11991 + #, c-format
11992 + msgid "could not move back to %s"
11993 + msgstr "kon nie terug na %s skuif nie"
11994 +
11995 + #, c-format
11996 + msgid ""
11997 + "It seems that there is already a %s directory, and\n"
11998 + "I wonder if you are in the middle of another rebase. If that is the\n"
11999 + "case, please try\n"
12000 + "\t%s\n"
12001 + "If that is not the case, please\n"
12002 + "\t%s\n"
12003 + "and run me again. I am stopping in case you still have something\n"
12004 + "valuable there.\n"
12005 + msgstr ""
12006 + "Dit lyk of daar reeds 'n %s-gids is, en ek wonder\n"
12007 + "of jy middel-in 'n ander herbasering is. As dit die\n"
12008 + "geval is, probeer asseblief\n"
12009 + "\t%s\n"
12010 + "As dit nie die geval is nie, voer asseblief\n"
12011 + "\t%s\n"
12012 + "uit en laat loop my weer. Ek stop ingeval jy nog iets\n"
12013 + "waardevols daar het.\n"
12014 +
12015 + msgid "switch `C' expects a numerical value"
12016 + msgstr "skakelaar `C' verwag 'n numeriese waarde"
12017 +
12018 + msgid ""
12019 + "apply options are incompatible with rebase.rebaseMerges. Consider adding --"
12020 + "no-rebase-merges"
12021 + msgstr ""
12022 + "apply-opsies is onversoenbaar met rebase.rebaseMerges. Oorweeg om --no-"
12023 + "rebase-merges by te voeg"
12024 +
12025 + msgid ""
12026 + "apply options are incompatible with rebase.updateRefs. Consider adding --no-"
12027 + "update-refs"
12028 + msgstr ""
12029 + "apply-opsies is onversoenbaar met rebase.updateRefs. Oorweeg om --no-update-"
12030 + "refs by te voeg"
12031 +
12032 + #, c-format
12033 + msgid "Unknown rebase backend: %s"
12034 + msgstr "Onbekende herbaseer-agterkant: %s"
12035 +
12036 + msgid "--reschedule-failed-exec requires --exec or --interactive"
12037 + msgstr "--reschedule-failed-exec vereis --exec of --interactive"
12038 +
12039 + #, c-format
12040 + msgid "invalid upstream '%s'"
12041 + msgstr "ongeldige stroomop '%s'"
12042 +
12043 + msgid "Could not create new root commit"
12044 + msgstr "Kon nie 'n nuwe wortelvaslegging skep nie"
12045 +
12046 + #, c-format
12047 + msgid "no such branch/commit '%s'"
12048 + msgstr "geen sodanige tak/vaslegging '%s' nie"
12049 +
12050 + #, c-format
12051 + msgid "No such ref: %s"
12052 + msgstr "Geen sodanige verwysing nie: %s"
12053 +
12054 + msgid "Could not resolve HEAD to a commit"
12055 + msgstr "Kon nie HEAD na 'n vaslegging oplos nie"
12056 +
12057 + #, c-format
12058 + msgid "'%s': need exactly one merge base with branch"
12059 + msgstr "'%s': benodig presies een saamsmeltbasis met die tak"
12060 +
12061 + #, c-format
12062 + msgid "'%s': need exactly one merge base"
12063 + msgstr "'%s': benodig presies een saamsmeltbasis"
12064 +
12065 + #, c-format
12066 + msgid "Does not point to a valid commit '%s'"
12067 + msgstr "Wys nie na 'n geldige vaslegging '%s' nie"
12068 +
12069 + msgid "HEAD is up to date."
12070 + msgstr "HEAD is op datum."
12071 +
12072 + #, c-format
12073 + msgid "Current branch %s is up to date.\n"
12074 + msgstr "Huidige tak %s is op datum.\n"
12075 +
12076 + msgid "HEAD is up to date, rebase forced."
12077 + msgstr "HEAD is op datum, herbasering afgedwing."
12078 +
12079 + #, c-format
12080 + msgid "Current branch %s is up to date, rebase forced.\n"
12081 + msgstr "Huidige tak %s is op datum, herbasering afgedwing.\n"
12082 +
12083 + msgid "The pre-rebase hook refused to rebase."
12084 + msgstr "Die pre-rebase-haak het geweier om te herbaseer."
12085 +
12086 + #, c-format
12087 + msgid "Changes to %s:\n"
12088 + msgstr "Veranderinge aan %s:\n"
12089 +
12090 + #, c-format
12091 + msgid "Changes from %s to %s:\n"
12092 + msgstr "Veranderinge van %s na %s:\n"
12093 +
12094 + #, c-format
12095 + msgid "First, rewinding head to replay your work on top of it...\n"
12096 + msgstr "Spoel eers head terug om jou werk daarbo oor te speel...\n"
12097 +
12098 + msgid "Could not detach HEAD"
12099 + msgstr "Kon nie HEAD ontkoppel nie"
12100 +
12101 + #, c-format
12102 + msgid "Fast-forwarded %s to %s.\n"
12103 + msgstr "%s is na %s vooruitgespoel.\n"
12104 +
12105 + msgid "git receive-pack <git-dir>"
12106 + msgstr "git receive-pack <Git-gids>"
12107 +
12108 + msgid ""
12109 + "By default, updating the current branch in a non-bare repository\n"
12110 + "is denied, because it will make the index and work tree inconsistent\n"
12111 + "with what you pushed, and will require 'git reset --hard' to match\n"
12112 + "the work tree to HEAD.\n"
12113 + "\n"
12114 + "You can set the 'receive.denyCurrentBranch' configuration variable\n"
12115 + "to 'ignore' or 'warn' in the remote repository to allow pushing into\n"
12116 + "its current branch; however, this is not recommended unless you\n"
12117 + "arranged to update its work tree to match what you pushed in some\n"
12118 + "other way.\n"
12119 + "\n"
12120 + "To squelch this message and still keep the default behaviour, set\n"
12121 + "'receive.denyCurrentBranch' configuration variable to 'refuse'."
12122 + msgstr ""
12123 + "By verstek word die bywerk van die huidige tak in 'n nie-kaal bewaarplek\n"
12124 + "geweier, omdat dit die indeks en werkboom onsamehangend sal maak met\n"
12125 + "wat jy gestoot het, en 'git reset --hard' sal vereis om die werkboom\n"
12126 + "met HEAD te laat ooreenstem.\n"
12127 + "\n"
12128 + "Jy kan die 'receive.denyCurrentBranch'-konfigurasieveranderlike in die\n"
12129 + "afgeleë bewaarplek op 'ignore' of 'warn' stel om stoot na sy huidige\n"
12130 + "tak toe te laat; dit word egter nie aanbeveel nie, tensy jy op 'n ander\n"
12131 + "manier gereël het dat sy werkboom bygewerk word om met wat jy gestoot\n"
12132 + "het ooreen te stem.\n"
12133 + "\n"
12134 + "Om hierdie boodskap stil te maak en steeds die verstekgedrag te behou,\n"
12135 + "stel die 'receive.denyCurrentBranch'-konfigurasieveranderlike op 'refuse'."
12136 +
12137 + msgid ""
12138 + "By default, deleting the current branch is denied, because the next\n"
12139 + "'git clone' won't result in any file checked out, causing confusion.\n"
12140 + "\n"
12141 + "You can set 'receive.denyDeleteCurrent' configuration variable to\n"
12142 + "'warn' or 'ignore' in the remote repository to allow deleting the\n"
12143 + "current branch, with or without a warning message.\n"
12144 + "\n"
12145 + "To squelch this message, you can set it to 'refuse'."
12146 + msgstr ""
12147 + "By verstek word die skrap van die huidige tak geweier, omdat die volgende\n"
12148 + "'git clone' nie tot enige uitgecheckte lêer sal lei nie, wat verwarring\n"
12149 + "veroorsaak.\n"
12150 + "\n"
12151 + "Jy kan die 'receive.denyDeleteCurrent'-konfigurasieveranderlike in die\n"
12152 + "afgeleë bewaarplek op 'warn' of 'ignore' stel om die skrap van die\n"
12153 + "huidige tak toe te laat, met of sonder 'n waarskuwingsboodskap.\n"
12154 + "\n"
12155 + "Om hierdie boodskap stil te maak, kan jy dit op 'refuse' stel."
12156 +
12157 + msgid "quiet"
12158 + msgstr "stil"
12159 +
12160 + msgid "you must specify a directory"
12161 + msgstr "jy moet 'n gids spesifiseer"
12162 +
12163 + msgid "git reflog [show] [<log-options>] [<ref>]"
12164 + msgstr "git reflog [show] [<log-opsies>] [<verwysing>]"
12165 +
12166 + msgid "git reflog list"
12167 + msgstr "git reflog list"
12168 +
12169 + msgid "git reflog exists <ref>"
12170 + msgstr "git reflog exists <verwysing>"
12171 +
12172 + msgid "git reflog write <ref> <old-oid> <new-oid> <message>"
12173 + msgstr "git reflog write <verwysing> <ou-oid> <nuwe-oid> <boodskap>"
12174 +
12175 + msgid ""
12176 + "git reflog delete [--rewrite] [--updateref]\n"
12177 + " [--dry-run | -n] [--verbose] <ref>@{<specifier>}..."
12178 + msgstr ""
12179 + "git reflog delete [--rewrite] [--updateref]\n"
12180 + " [--dry-run | -n] [--verbose] "
12181 + "<verwysing>@{<spesifiseerder>}..."
12182 +
12183 + msgid "git reflog drop [--all [--single-worktree] | <refs>...]"
12184 + msgstr "git reflog drop [--all [--single-worktree] | <verwysings>...]"
12185 +
12186 + msgid ""
12187 + "git reflog expire [--expire=<time>] [--expire-unreachable=<time>]\n"
12188 + " [--rewrite] [--updateref] [--stale-fix]\n"
12189 + " [--dry-run | -n] [--verbose] [--all [--single-worktree] | "
12190 + "<refs>...]"
12191 + msgstr ""
12192 + "git reflog expire [--expire=<tyd>] [--expire-unreachable=<tyd>]\n"
12193 + " [--rewrite] [--updateref] [--stale-fix]\n"
12194 + " [--dry-run | -n] [--verbose] [--all [--single-worktree] | "
12195 + "<verwysings>...]"
12196 +
12197 + #, c-format
12198 + msgid "invalid timestamp '%s' given to '--%s'"
12199 + msgstr "ongeldige tydstempel '%s' aan '--%s' gegee"
12200 +
12201 + #, c-format
12202 + msgid "%s does not accept arguments: '%s'"
12203 + msgstr "%s aanvaar nie argumente nie: '%s'"
12204 +
12205 + msgid "do not actually prune any entries"
12206 + msgstr "moenie werklik enige inskrywings snoei nie"
12207 +
12208 + msgid ""
12209 + "rewrite the old SHA1 with the new SHA1 of the entry that now precedes it"
12210 + msgstr ""
12211 + "herskryf die ou SHA1 met die nuwe SHA1 van die inskrywing wat dit nou "
12212 + "voorafgaan"
12213 +
12214 + msgid "update the reference to the value of the top reflog entry"
12215 + msgstr "werk die verwysing by na die waarde van die boonste reflog-inskrywing"
12216 +
12217 + msgid "print extra information on screen"
12218 + msgstr "druk ekstra inligting op die skerm"
12219 +
12220 + msgid "timestamp"
12221 + msgstr "tydstempel"
12222 +
12223 + msgid "prune entries older than the specified time"
12224 + msgstr "snoei inskrywings ouer as die gespesifiseerde tyd"
12225 +
12226 + msgid ""
12227 + "prune entries older than <time> that are not reachable from the current tip "
12228 + "of the branch"
12229 + msgstr ""
12230 + "snoei inskrywings ouer as <tyd> wat nie vanaf die huidige punt van die tak "
12231 + "bereikbaar is nie"
12232 +
12233 + msgid "prune any reflog entries that point to broken commits"
12234 + msgstr "snoei enige reflog-inskrywings wat na gebreekte vasleggings wys"
12235 +
12236 + msgid "process the reflogs of all references"
12237 + msgstr "verwerk die reflogs van alle verwysings"
12238 +
12239 + msgid "limits processing to reflogs from the current worktree only"
12240 + msgstr "beperk verwerking tot reflogs van slegs die huidige werkboom"
12241 +
12242 + #, c-format
12243 + msgid "Marking reachable objects..."
12244 + msgstr "Merk bereikbare objekte..."
12245 +
12246 + #, c-format
12247 + msgid "reflog could not be found: '%s'"
12248 + msgstr "reflog kon nie gevind word nie: '%s'"
12249 +
12250 + msgid "no reflog specified to delete"
12251 + msgstr "geen reflog is gespesifiseer om te skrap nie"
12252 +
12253 + #, c-format
12254 + msgid "invalid ref format: %s"
12255 + msgstr "ongeldige verwysingsformaat: %s"
12256 +
12257 + msgid "drop the reflogs of all references"
12258 + msgstr "laat die reflogs van alle verwysings val"
12259 +
12260 + msgid "drop reflogs from the current worktree only"
12261 + msgstr "laat slegs die reflogs van die huidige werkboom val"
12262 +
12263 + msgid "references specified along with --all"
12264 + msgstr "verwysings saam met --all gespesifiseer"
12265 +
12266 + #, c-format
12267 + msgid "invalid reference name: %s"
12268 + msgstr "ongeldige verwysingsnaam: %s"
12269 +
12270 + #, c-format
12271 + msgid "invalid old object ID: '%s'"
12272 + msgstr "ongeldige ou objek-ID: '%s'"
12273 +
12274 + #, c-format
12275 + msgid "old object '%s' does not exist"
12276 + msgstr "ou objek '%s' bestaan nie"
12277 +
12278 + #, c-format
12279 + msgid "invalid new object ID: '%s'"
12280 + msgstr "ongeldige nuwe objek-ID: '%s'"
12281 +
12282 + #, c-format
12283 + msgid "new object '%s' does not exist"
12284 + msgstr "nuwe objek '%s' bestaan nie"
12285 +
12286 + #, c-format
12287 + msgid "cannot start transaction: %s"
12288 + msgstr "kan nie transaksie begin nie: %s"
12289 +
12290 + #, c-format
12291 + msgid "cannot queue reflog update: %s"
12292 + msgstr "kan nie reflog-bywerking in die ry plaas nie: %s"
12293 +
12294 + #, c-format
12295 + msgid "cannot commit reflog update: %s"
12296 + msgstr "kan nie reflog-bywerking vaslê nie: %s"
12297 +
12298 + msgid "git refs migrate --ref-format=<format> [--no-reflog] [--dry-run]"
12299 + msgstr "git refs migrate --ref-format=<formaat> [--no-reflog] [--dry-run]"
12300 +
12301 + msgid "git refs verify [--strict] [--verbose]"
12302 + msgstr "git refs verify [--strict] [--verbose]"
12303 +
12304 + msgid "git refs exists <ref>"
12305 + msgstr "git refs exists <verwysing>"
12306 +
12307 + msgid "git refs optimize "
12308 + msgstr "git refs optimize "
12309 +
12310 + msgid ""
12311 + "git refs create [--message=<reason>] [--no-deref] [--create-reflog] <ref> "
12312 + "<new-value>"
12313 + msgstr ""
12314 + "git refs create [--message=<rede>] [--no-deref] [--create-reflog] "
12315 + "<verwysing> <nuwe-waarde>"
12316 +
12317 + msgid "git refs delete [--message=<reason>] [--no-deref] <ref> [<old-value>]"
12318 + msgstr ""
12319 + "git refs delete [--message=<rede>] [--no-deref] <verwysing> [<ou-waarde>]"
12320 +
12321 + msgid ""
12322 + "git refs update [--message=<reason>] [--no-deref] [--create-reflog] <ref> "
12323 + "<new-value> [<old-value>]"
12324 + msgstr ""
12325 + "git refs update [--message=<rede>] [--no-deref] [--create-reflog] "
12326 + "<verwysing> <nuwe-waarde> [<ou-waarde>]"
12327 +
12328 + msgid "git refs rename [--message=<reason>] <old-ref> <new-ref>"
12329 + msgstr "git refs rename [--message=<rede>] <ou-verwysing> <nuwe-verwysing>"
12330 +
12331 + msgid "specify the reference format to convert to"
12332 + msgstr "spesifiseer die verwysingsformaat om na om te skakel"
12333 +
12334 + msgid "perform a non-destructive dry-run"
12335 + msgstr "voer 'n nie-vernietigende proeflopie uit"
12336 +
12337 + msgid "drop reflogs entirely during the migration"
12338 + msgstr "laat reflogs heeltemal val tydens die migrasie"
12339 +
12340 + msgid "missing --ref-format=<format>"
12341 + msgstr "--ref-format=<formaat> ontbreek"
12342 +
12343 + #, c-format
12344 + msgid "repository already uses '%s' format"
12345 + msgstr "bewaarplek gebruik reeds die '%s'-formaat"
12346 +
12347 + msgid "enable strict checking"
12348 + msgstr "aktiveer streng kontrolering"
12349 +
12350 + msgid "'git refs verify' takes no arguments"
12351 + msgstr "'git refs verify' neem geen argumente nie"
12352 +
12353 + msgid "git refs list "
12354 + msgstr "git refs list "
12355 +
12356 + msgid "'git refs exists' requires a reference"
12357 + msgstr "'git refs exists' vereis 'n verwysing"
12358 +
12359 + msgid "reference does not exist"
12360 + msgstr "verwysing bestaan nie"
12361 +
12362 + msgid "failed to look up reference"
12363 + msgstr "kon nie verwysing opsoek nie"
12364 +
12365 + msgid "reason"
12366 + msgstr "rede"
12367 +
12368 + msgid "reason of the update"
12369 + msgstr "rede vir die bywerking"
12370 +
12371 + msgid "update <refname> not the one it points to"
12372 + msgstr "werk <verwysingsnaam> by, nie die een waarna dit wys nie"
12373 +
12374 + msgid "create a reflog"
12375 + msgstr "skep 'n reflog"
12376 +
12377 + msgid "create requires reference name and an object ID"
12378 + msgstr "create vereis 'n verwysingsnaam en 'n objek-ID"
12379 +
12380 + msgid "refusing to perform update with empty message"
12381 + msgstr "weier om bywerking met 'n leë boodskap uit te voer"
12382 +
12383 + #, c-format
12384 + msgid "invalid object ID: '%s'"
12385 + msgstr "ongeldige objek-ID: '%s'"
12386 +
12387 + msgid "cannot create reference with null new object ID"
12388 + msgstr "kan nie verwysing met nul nuwe objek-ID skep nie"
12389 +
12390 + msgid "delete requires reference name and an optional old object ID"
12391 + msgstr "delete vereis 'n verwysingsnaam en 'n opsionele ou objek-ID"
12392 +
12393 + msgid "cannot delete reference with null old object ID"
12394 + msgstr "kan nie verwysing met nul ou objek-ID skrap nie"
12395 +
12396 + msgid "update requires reference name, new value and an optional old value"
12397 + msgstr "update vereis 'n verwysingsnaam, nuwe waarde en 'n opsionele ou waarde"
12398 +
12399 + msgid "rename requires old and new reference name"
12400 + msgstr "rename vereis ou en nuwe verwysingsnaam"
12401 +
12402 + #, c-format
12403 + msgid "invalid ref format: '%s'"
12404 + msgstr "ongeldige verwysingsformaat: '%s'"
12405 +
12406 + #, c-format
12407 + msgid "reference does not exist: '%s'"
12408 + msgstr "verwysing bestaan nie: '%s'"
12409 +
12410 + #, c-format
12411 + msgid "reference already exists: '%s'"
12412 + msgstr "verwysing bestaan reeds: '%s'"
12413 +
12414 + msgid ""
12415 + "git remote add [-t <branch>] [-m <master>] [-f] [--tags | --no-tags] [--"
12416 + "mirror=<fetch|push>] <name> <url>"
12417 + msgstr ""
12418 + "git remote add [-t <tak>] [-m <meester>] [-f] [--tags | --no-tags] [--"
12419 + "mirror=<fetch|push>] <naam> <url>"
12420 +
12421 + msgid "git remote rename [--[no-]progress] <old> <new>"
12422 + msgstr "git remote rename [--[no-]progress] <oud> <nuut>"
12423 +
12424 + msgid "git remote remove <name>"
12425 + msgstr "git remote remove <naam>"
12426 +
12427 + msgid "git remote set-head <name> (-a | --auto | -d | --delete | <branch>)"
12428 + msgstr "git remote set-head <naam> (-a | --auto | -d | --delete | <tak>)"
12429 +
12430 + msgid "git remote [-v | --verbose] show [-n] <name>"
12431 + msgstr "git remote [-v | --verbose] show [-n] <naam>"
12432 +
12433 + msgid "git remote prune [-n | --dry-run] <name>"
12434 + msgstr "git remote prune [-n | --dry-run] <naam>"
12435 +
12436 + msgid ""
12437 + "git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"
12438 + msgstr ""
12439 + "git remote [-v | --verbose] update [-p | --prune] [(<groep> | <afgeleë>)...]"
12440 +
12441 + msgid "git remote set-branches [--add] <name> <branch>..."
12442 + msgstr "git remote set-branches [--add] <naam> <tak>..."
12443 +
12444 + msgid "git remote get-url [--push] [--all] <name>"
12445 + msgstr "git remote get-url [--push] [--all] <naam>"
12446 +
12447 + msgid "git remote set-url [--push] <name> <newurl> [<oldurl>]"
12448 + msgstr "git remote set-url [--push] <naam> <nuweurl> [<ouurl>]"
12449 +
12450 + msgid "git remote set-url --add <name> <newurl>"
12451 + msgstr "git remote set-url --add <naam> <nuweurl>"
12452 +
12453 + msgid "git remote set-url --delete <name> <url>"
12454 + msgstr "git remote set-url --delete <naam> <url>"
12455 +
12456 + msgid "git remote add [<options>] <name> <url>"
12457 + msgstr "git remote add [<opsies>] <naam> <url>"
12458 +
12459 + msgid "git remote set-branches <name> <branch>..."
12460 + msgstr "git remote set-branches <naam> <tak>..."
12461 +
12462 + msgid "git remote set-branches --add <name> <branch>..."
12463 + msgstr "git remote set-branches --add <naam> <tak>..."
12464 +
12465 + msgid "git remote show [<options>] <name>"
12466 + msgstr "git remote show [<opsies>] <naam>"
12467 +
12468 + msgid "git remote prune [<options>] <name>"
12469 + msgstr "git remote prune [<opsies>] <naam>"
12470 +
12471 + msgid "git remote update [<options>] [<group> | <remote>]..."
12472 + msgstr "git remote update [<opsies>] [<groep> | <afgeleë>]..."
12473 +
12474 + #, c-format
12475 + msgid "Updating %s"
12476 + msgstr "Werk %s by"
12477 +
12478 + #, c-format
12479 + msgid "Could not fetch %s"
12480 + msgstr "Kon nie %s haal nie"
12481 +
12482 + msgid ""
12483 + "--mirror is dangerous and deprecated; please\n"
12484 + "\t use --mirror=fetch or --mirror=push instead"
12485 + msgstr ""
12486 + "--mirror is gevaarlik en verouderd; gebruik asseblief\n"
12487 + "\t eerder --mirror=fetch of --mirror=push"
12488 +
12489 + #, c-format
12490 + msgid "unknown --mirror argument: %s"
12491 + msgstr "onbekende argument --mirror: %s"
12492 +
12493 + #, c-format
12494 + msgid "remote name '%s' is a subset of existing remote '%s'"
12495 + msgstr "afgeleë naam '%s' is 'n subversameling van bestaande afgeleë '%s'"
12496 +
12497 + #, c-format
12498 + msgid "remote name '%s' is a superset of existing remote '%s'"
12499 + msgstr "afgeleë naam '%s' is 'n superversameling van bestaande afgeleë '%s'"
12500 +
12501 + msgid "fetch the remote branches"
12502 + msgstr "haal die afgeleë takke"
12503 +
12504 + msgid ""
12505 + "import all tags and associated objects when fetching\n"
12506 + "or do not fetch any tag at all (--no-tags)"
12507 + msgstr ""
12508 + "voer alle etikette en geassosieerde objekte in tydens haal\n"
12509 + "of haal glad geen etiket nie (--no-tags)"
12510 +
12511 + msgid "branch(es) to track"
12512 + msgstr "tak(ke) om na te spoor"
12513 +
12514 + msgid "master branch"
12515 + msgstr "meestertak"
12516 +
12517 + msgid "set up remote as a mirror to push to or fetch from"
12518 + msgstr "stel die afgeleë op as 'n spieël om na te stoot of van af te haal"
12519 +
12520 + msgid "specifying a master branch makes no sense with --mirror"
12521 + msgstr "dit maak geen sin om 'n meestertak met --mirror te spesifiseer nie"
12522 +
12523 + msgid "specifying branches to track makes sense only with fetch mirrors"
12524 + msgstr ""
12525 + "dit maak slegs sin om takke om na te spoor te spesifiseer met haal-spieëls"
12526 +
12527 + #, c-format
12528 + msgid "remote %s already exists."
12529 + msgstr "afgeleë %s bestaan reeds."
12530 +
12531 + #, c-format
12532 + msgid "Could not setup master '%s'"
12533 + msgstr "Kon nie meester '%s' opstel nie"
12534 +
12535 + #, c-format
12536 + msgid "more than one %s"
12537 + msgstr "meer as een %s"
12538 +
12539 + #, c-format
12540 + msgid "unhandled branch.%s.rebase=%s; assuming 'true'"
12541 + msgstr "onhanteerde branch.%s.rebase=%s; neem 'true' aan"
12542 +
12543 + #, c-format
12544 + msgid "Could not get fetch map for refspec %s"
12545 + msgstr "Kon nie haalkaart vir verwysingspesifikasie %s kry nie"
12546 +
12547 + msgid "(matching)"
12548 + msgstr "(ooreenstemmend)"
12549 +
12550 + msgid "(delete)"
12551 + msgstr "(skrap)"
12552 +
12553 + #, c-format
12554 + msgid "could not set '%s'"
12555 + msgstr "kon nie '%s' stel nie"
12556 +
12557 + #, c-format
12558 + msgid "could not unset '%s'"
12559 + msgstr "kon nie '%s' ontstel nie"
12560 +
12561 + #, c-format
12562 + msgid ""
12563 + "The %s configuration remote.pushDefault in:\n"
12564 + "\t%s:%d\n"
12565 + "now names the non-existent remote '%s'"
12566 + msgstr ""
12567 + "Die %s-konfigurasie remote.pushDefault in:\n"
12568 + "\t%s:%d\n"
12569 + "benoem nou die nie-bestaande afgeleë '%s'"
12570 +
12571 + msgid ""
12572 + "The remote you are trying to rename has conflicting references in the\n"
12573 + "new target refspec. This is most likely caused by you trying to nest\n"
12574 + "a remote into itself, e.g. by renaming 'parent' into 'parent/child'\n"
12575 + "or by unnesting a remote, e.g. the other way round.\n"
12576 + "\n"
12577 + "If that is the case, you can address this by first renaming the\n"
12578 + "remote to a different name.\n"
12579 + msgstr ""
12580 + "Die afgeleë wat jy probeer hernoem, het botsende verwysings in die\n"
12581 + "nuwe teiken-verwysingspesifikasie. Dit word heel waarskynlik veroorsaak\n"
12582 + "doordat jy 'n afgeleë in homself probeer nes, bv. deur 'parent' na\n"
12583 + "'parent/child' te hernoem, of deur 'n afgeleë te ontnes, bv. andersom.\n"
12584 + "\n"
12585 + "As dit die geval is, kan jy dit oplos deur die afgeleë eers na 'n\n"
12586 + "ander naam te hernoem.\n"
12587 +
12588 + #, c-format
12589 + msgid "No such remote: '%s'"
12590 + msgstr "Geen sodanige afgeleë nie: '%s'"
12591 +
12592 + #, c-format
12593 + msgid "Could not rename config section '%s' to '%s'"
12594 + msgstr "Kon nie konfigurasie-afdeling '%s' na '%s' hernoem nie"
12595 +
12596 + msgid "Renaming remote references"
12597 + msgstr "Hernoem afgeleë verwysings"
12598 +
12599 + #, c-format
12600 + msgid "queueing remote ref renames failed: %s"
12601 + msgstr "die plasing van afgeleë verwysingshernoemings in die ry het misluk: %s"
12602 +
12603 + #, c-format
12604 + msgid ""
12605 + "Not updating non-default fetch refspec\n"
12606 + "\t%s\n"
12607 + "\tPlease update the configuration manually if necessary."
12608 + msgstr ""
12609 + "Werk nie nie-verstek haal-verwysingspesifikasie by nie\n"
12610 + "\t%s\n"
12611 + "\tWerk asseblief die konfigurasie self by indien nodig."
12612 +
12613 + #, c-format
12614 + msgid "renaming remote refs failed: %s"
12615 + msgstr "hernoeming van afgeleë verwysings het misluk: %s"
12616 +
12617 + msgid ""
12618 + "Note: A branch outside the refs/remotes/ hierarchy was not removed;\n"
12619 + "to delete it, use:"
12620 + msgid_plural ""
12621 + "Note: Some branches outside the refs/remotes/ hierarchy were not removed;\n"
12622 + "to delete them, use:"
12623 + msgstr[0] ""
12624 + "Let wel: 'n Tak buite die hiërargie refs/remotes/ is nie verwyder nie;\n"
12625 + "gebruik die volgende om dit te skrap:"
12626 + msgstr[1] ""
12627 + "Let wel: Sommige takke buite die hiërargie refs/remotes/ is nie verwyder "
12628 + "nie;\n"
12629 + "gebruik die volgende om hulle te skrap:"
12630 +
12631 + #, c-format
12632 + msgid "Could not remove config section '%s'"
12633 + msgstr "Kon nie konfigurasie-afdeling '%s' verwyder nie"
12634 +
12635 + #, c-format
12636 + msgid " new (next fetch will store in remotes/%s)"
12637 + msgstr " nuut (volgende haal sal in remotes/%s stoor)"
12638 +
12639 + msgid " tracked"
12640 + msgstr " nagespoor"
12641 +
12642 + msgid " skipped"
12643 + msgstr " oorgeslaan"
12644 +
12645 + msgid " stale (use 'git remote prune' to remove)"
12646 + msgstr " verouderd (gebruik 'git remote prune' om te verwyder)"
12647 +
12648 + msgid " ???"
12649 + msgstr " ???"
12650 +
12651 + #, c-format
12652 + msgid "invalid branch.%s.merge; cannot rebase onto > 1 branch"
12653 + msgstr "ongeldige branch.%s.merge; kan nie op > 1 tak herbaseer nie"
12654 +
12655 + #, c-format
12656 + msgid "rebases interactively onto remote %s"
12657 + msgstr "herbaseer interaktief op afgeleë %s"
12658 +
12659 + #, c-format
12660 + msgid "rebases interactively (with merges) onto remote %s"
12661 + msgstr "herbaseer interaktief (met saamsmeltings) op afgeleë %s"
12662 +
12663 + #, c-format
12664 + msgid "rebases onto remote %s"
12665 + msgstr "herbaseer op afgeleë %s"
12666 +
12667 + #, c-format
12668 + msgid " merges with remote %s"
12669 + msgstr " smelt saam met afgeleë %s"
12670 +
12671 + #, c-format
12672 + msgid "merges with remote %s"
12673 + msgstr "smelt saam met afgeleë %s"
12674 +
12675 + #, c-format
12676 + msgid "%-*s and with remote %s\n"
12677 + msgstr "%-*s en met afgeleë %s\n"
12678 +
12679 + msgid "create"
12680 + msgstr "skep"
12681 +
12682 + msgid "delete"
12683 + msgstr "skrap"
12684 +
12685 + msgid "up to date"
12686 + msgstr "op datum"
12687 +
12688 + msgid "fast-forwardable"
12689 + msgstr "kan vooruitgespoel word"
12690 +
12691 + msgid "local out of date"
12692 + msgstr "plaaslik verouderd"
12693 +
12694 + #, c-format
12695 + msgid " %-*s forces to %-*s (%s)"
12696 + msgstr " %-*s dwing na %-*s (%s)"
12697 +
12698 + #, c-format
12699 + msgid " %-*s pushes to %-*s (%s)"
12700 + msgstr " %-*s stoot na %-*s (%s)"
12701 +
12702 + #, c-format
12703 + msgid " %-*s forces to %s"
12704 + msgstr " %-*s dwing na %s"
12705 +
12706 + #, c-format
12707 + msgid " %-*s pushes to %s"
12708 + msgstr " %-*s stoot na %s"
12709 +
12710 + msgid "do not query remotes"
12711 + msgstr "moenie afgeleës navraag doen nie"
12712 +
12713 + #, c-format
12714 + msgid "* remote %s"
12715 + msgstr "* afgeleë %s"
12716 +
12717 + #, c-format
12718 + msgid " Fetch URL: %s"
12719 + msgstr " Haal URL: %s"
12720 +
12721 + #. TRANSLATORS: the colon ':' should align
12722 + #. with the one in " Fetch URL: %s"
12723 + #. translation.
12724 + #.
12725 + #, c-format
12726 + msgid " Push URL: %s"
12727 + msgstr " Stoot URL: %s"
12728 +
12729 + msgid "(no URL)"
12730 + msgstr "(geen URL)"
12731 +
12732 + #, c-format
12733 + msgid " HEAD branch: %s"
12734 + msgstr " HEAD-tak: %s"
12735 +
12736 + msgid "(not queried)"
12737 + msgstr "(nie navraag gedoen nie)"
12738 +
12739 + msgid "(unknown)"
12740 + msgstr "(onbekend)"
12741 +
12742 + #, c-format
12743 + msgid ""
12744 + " HEAD branch (remote HEAD is ambiguous, may be one of the following):\n"
12745 + msgstr ""
12746 + " HEAD-tak (afgeleë HEAD is dubbelsinnig, kan een van die volgende wees):\n"
12747 +
12748 + #, c-format
12749 + msgid " Remote branch:%s"
12750 + msgid_plural " Remote branches:%s"
12751 + msgstr[0] " Afgeleë tak:%s"
12752 + msgstr[1] " Afgeleë takke:%s"
12753 +
12754 + msgid " (status not queried)"
12755 + msgstr " (status nie navraag gedoen nie)"
12756 +
12757 + msgid " Local branch configured for 'git pull':"
12758 + msgid_plural " Local branches configured for 'git pull':"
12759 + msgstr[0] " Plaaslike tak opgestel vir 'git pull':"
12760 + msgstr[1] " Plaaslike takke opgestel vir 'git pull':"
12761 +
12762 + msgid " Local refs will be mirrored by 'git push'"
12763 + msgstr " Plaaslike verwysings sal deur 'git push' gespieël word"
12764 +
12765 + #, c-format
12766 + msgid " Local ref configured for 'git push'%s:"
12767 + msgid_plural " Local refs configured for 'git push'%s:"
12768 + msgstr[0] " Plaaslike verwysing opgestel vir 'git push'%s:"
12769 + msgstr[1] " Plaaslike verwysings opgestel vir 'git push'%s:"
12770 +
12771 + #, c-format
12772 + msgid "'%s/HEAD' is unchanged and points to '%s'\n"
12773 + msgstr "'%s/HEAD' is onveranderd en wys na '%s'\n"
12774 +
12775 + #, c-format
12776 + msgid "'%s/HEAD' has changed from '%s' and now points to '%s'\n"
12777 + msgstr "'%s/HEAD' het van '%s' verander en wys nou na '%s'\n"
12778 +
12779 + #, c-format
12780 + msgid "'%s/HEAD' is now created and points to '%s'\n"
12781 + msgstr "'%s/HEAD' is nou geskep en wys na '%s'\n"
12782 +
12783 + #, c-format
12784 + msgid "'%s/HEAD' was detached at '%s' and now points to '%s'\n"
12785 + msgstr "'%s/HEAD' was by '%s' ontkoppel en wys nou na '%s'\n"
12786 +
12787 + #, c-format
12788 + msgid ""
12789 + "'%s/HEAD' used to point to '%s' (which is not a remote branch), but now "
12790 + "points to '%s'\n"
12791 + msgstr ""
12792 + "'%s/HEAD' het vroeër na '%s' gewys (wat nie 'n afgeleë tak is nie), maar wys "
12793 + "nou na '%s'\n"
12794 +
12795 + msgid "set refs/remotes/<name>/HEAD according to remote"
12796 + msgstr "stel refs/remotes/<name>/HEAD volgens die afgeleë"
12797 +
12798 + msgid "delete refs/remotes/<name>/HEAD"
12799 + msgstr "skrap refs/remotes/<name>/HEAD"
12800 +
12801 + msgid "Cannot determine remote HEAD"
12802 + msgstr "Kan nie afgeleë HEAD bepaal nie"
12803 +
12804 + msgid "Multiple remote HEAD branches. Please choose one explicitly with:"
12805 + msgstr "Veelvuldige afgeleë HEAD-takke. Kies asseblief een uitdruklik met:"
12806 +
12807 + #, c-format
12808 + msgid "Could not delete %s"
12809 + msgstr "Kon nie %s skrap nie"
12810 +
12811 + #, c-format
12812 + msgid "Not a valid ref: %s"
12813 + msgstr "Nie 'n geldige verwysing nie: %s"
12814 +
12815 + #, c-format
12816 + msgid "Could not set up %s"
12817 + msgstr "Kon nie %s opstel nie"
12818 +
12819 + #, c-format
12820 + msgid "Pruning %s"
12821 + msgstr "Snoei %s"
12822 +
12823 + #, c-format
12824 + msgid "URL: %s"
12825 + msgstr "URL: %s"
12826 +
12827 + #, c-format
12828 + msgid " * [would prune] %s"
12829 + msgstr " * [sou snoei] %s"
12830 +
12831 + #, c-format
12832 + msgid " * [pruned] %s"
12833 + msgstr " * [gesnoei] %s"
12834 +
12835 + msgid "prune remotes after fetching"
12836 + msgstr "snoei afgeleës na haal"
12837 +
12838 + #, c-format
12839 + msgid "No such remote '%s'"
12840 + msgstr "Geen sodanige afgeleë '%s' nie"
12841 +
12842 + msgid "add branch"
12843 + msgstr "voeg tak by"
12844 +
12845 + msgid "no remote specified"
12846 + msgstr "geen afgeleë gespesifiseer nie"
12847 +
12848 + msgid "query push URLs rather than fetch URLs"
12849 + msgstr "doen navraag oor stoot-URL's eerder as haal-URL's"
12850 +
12851 + msgid "return all URLs"
12852 + msgstr "gee alle URL's terug"
12853 +
12854 + msgid "manipulate push URLs"
12855 + msgstr "manipuleer stoot-URL's"
12856 +
12857 + msgid "add URL"
12858 + msgstr "voeg URL by"
12859 +
12860 + msgid "delete URLs"
12861 + msgstr "skrap URL's"
12862 +
12863 + msgid "--add --delete doesn't make sense"
12864 + msgstr "--add --delete maak nie sin nie"
12865 +
12866 + #, c-format
12867 + msgid "Invalid old URL pattern: %s"
12868 + msgstr "Ongeldige ou URL-patroon: %s"
12869 +
12870 + #, c-format
12871 + msgid "No such URL found: %s"
12872 + msgstr "Geen sodanige URL gevind nie: %s"
12873 +
12874 + msgid "Will not delete all non-push URLs"
12875 + msgstr "Sal nie alle nie-stoot-URL's skrap nie"
12876 +
12877 + msgid "be verbose; must be placed before a subcommand"
12878 + msgstr "wees breedsprakig; moet voor 'n subopdrag geplaas word"
12879 +
12880 + msgid ""
12881 + "git repack [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [-b] [-m]\n"
12882 + "[--window=<n>] [--depth=<n>] [--threads=<n>] [--keep-pack=<pack-name>]\n"
12883 + "[--write-midx[=<mode>]] [--name-hash-version=<n>] [--path-walk]\n"
12884 + "[--filter=<filter-spec>] [--drop-filtered [--dry-run]]"
12885 + msgstr ""
12886 + "git repack [-a] [-A] [-d] [-f] [-F] [-l] [-n] [-q] [-b] [-m]\n"
12887 + "[--window=<n>] [--depth=<n>] [--threads=<n>] [--keep-pack=<paknaam>]\n"
12888 + "[--write-midx[=<modus>]] [--name-hash-version=<n>] [--path-walk]\n"
12889 + "[--filter=<filterspesifikasie>] [--drop-filtered [--dry-run]]"
12890 +
12891 + msgid ""
12892 + "Incremental repacks are incompatible with bitmap indexes. Use\n"
12893 + "--no-write-bitmap-index or disable the pack.writeBitmaps configuration."
12894 + msgstr ""
12895 + "Inkrementele herpakkings is onversoenbaar met bitmap-indekse. Gebruik\n"
12896 + "--no-write-bitmap-index of deaktiveer die pack.writeBitmaps-konfigurasie."
12897 +
12898 + #, c-format
12899 + msgid "unknown value for %s: %s"
12900 + msgstr "onbekende waarde vir %s: %s"
12901 +
12902 + msgid "pack everything in a single pack"
12903 + msgstr "pak alles in 'n enkele pak"
12904 +
12905 + msgid "same as -a, and turn unreachable objects loose"
12906 + msgstr "dieselfde as -a, en maak onbereikbare objekte los"
12907 +
12908 + msgid "same as -a, pack unreachable cruft objects separately"
12909 + msgstr "dieselfde as -a, pak onbereikbare afvalobjekte afsonderlik"
12910 +
12911 + msgid "approxidate"
12912 + msgstr "benaderde-datum"
12913 +
12914 + msgid "with --cruft, expire objects older than this"
12915 + msgstr "met --cruft, laat objekte ouer as dit verval"
12916 +
12917 + msgid "with --cruft, only repack cruft packs smaller than this"
12918 + msgstr "met --cruft, herpak slegs afvalpakke kleiner as dit"
12919 +
12920 + msgid "remove redundant packs, and run git-prune-packed"
12921 + msgstr "verwyder oortollige pakke, en voer git-prune-packed uit"
12922 +
12923 + msgid "pass --no-reuse-delta to git-pack-objects"
12924 + msgstr "gee --no-reuse-delta deur aan git-pack-objects"
12925 +
12926 + msgid "pass --no-reuse-object to git-pack-objects"
12927 + msgstr "gee --no-reuse-object deur aan git-pack-objects"
12928 +
12929 + msgid ""
12930 + "specify the name hash version to use for grouping similar objects by path"
12931 + msgstr ""
12932 + "spesifiseer die naam-hutsweergawe om te gebruik om soortgelyke objekte "
12933 + "volgens pad te groepeer"
12934 +
12935 + msgid "pass --path-walk to git-pack-objects"
12936 + msgstr "gee --path-walk deur aan git-pack-objects"
12937 +
12938 + msgid "do not run git-update-server-info"
12939 + msgstr "moenie git-update-server-info uitvoer nie"
12940 +
12941 + msgid "pass --local to git-pack-objects"
12942 + msgstr "gee --local deur aan git-pack-objects"
12943 +
12944 + msgid "write bitmap index"
12945 + msgstr "skryf bitmap-indeks"
12946 +
12947 + msgid "pass --delta-islands to git-pack-objects"
12948 + msgstr "gee --delta-islands deur aan git-pack-objects"
12949 +
12950 + msgid "with -A, do not loosen objects older than this"
12951 + msgstr "met -A, moenie objekte ouer as dit losmaak nie"
12952 +
12953 + msgid "with -a, repack unreachable objects"
12954 + msgstr "met -a, herpak onbereikbare objekte"
12955 +
12956 + msgid "size of the window used for delta compression"
12957 + msgstr "grootte van die venster wat vir delta-kompressie gebruik word"
12958 +
12959 + msgid "bytes"
12960 + msgstr "grepe"
12961 +
12962 + msgid "same as the above, but limit memory size instead of entries count"
12963 + msgstr ""
12964 + "dieselfde as hierbo, maar beperk geheuegrootte in plaas van die aantal "
12965 + "inskrywings"
12966 +
12967 + msgid "limits the maximum delta depth"
12968 + msgstr "beperk die maksimum delta-diepte"
12969 +
12970 + msgid "limits the maximum number of threads"
12971 + msgstr "beperk die maksimum aantal drade"
12972 +
12973 + msgid "maximum size of each packfile"
12974 + msgstr "maksimum grootte van elke paklêer"
12975 +
12976 + msgid "repack objects in packs marked with .keep"
12977 + msgstr "herpak objekte in pakke wat met .keep gemerk is"
12978 +
12979 + msgid "do not repack this pack"
12980 + msgstr "moenie hierdie pak herpak nie"
12981 +
12982 + msgid "find a geometric progression with factor <N>"
12983 + msgstr "vind 'n meetkundige reeks met faktor <N>"
12984 +
12985 + msgid "write a multi-pack index of the resulting packs"
12986 + msgstr "skryf 'n multipak-indeks van die resulterende pakke"
12987 +
12988 + msgid "pack prefix to store a pack containing filtered out objects"
12989 + msgstr "pakvoorvoegsel om 'n pak te stoor wat uitgefiltreerde objekte bevat"
12990 +
12991 + msgid "delete filtered out objects (requires --filter)"
12992 + msgstr "skrap uitgefiltreerde objekte (vereis --filter)"
12993 +
12994 + msgid "only show which objects would be dropped"
12995 + msgstr "wys slegs watter objekte weggelaat sou word"
12996 +
12997 + msgid "--dry-run only takes effect with --drop-filtered"
12998 + msgstr "--dry-run het slegs effek saam met --drop-filtered"
12999 +
13000 + msgid "--drop-filtered requires --filter"
13001 + msgstr "--drop-filtered vereis --filter"
13002 +
13003 + msgid "--drop-filtered requires -a"
13004 + msgstr "--drop-filtered vereis -a"
13005 +
13006 + msgid "--drop-filtered only supports --filter=blob:limit=<n> for now"
13007 + msgstr "--drop-filtered ondersteun tans slegs --filter=blob:limit=<n>"
13008 +
13009 + msgid "--drop-filtered requires a promisor remote"
13010 + msgstr "--drop-filtered vereis 'n afgeleë beloftegewer"
13011 +
13012 + msgid ""
13013 + "--drop-filtered cannot be used while another operation (merge, rebase, am, "
13014 + "cherry-pick, revert, or bisect) is in progress"
13015 + msgstr ""
13016 + "--drop-filtered kan nie gebruik word terwyl 'n ander bewerking (merge, "
13017 + "rebase, am, cherry-pick, revert of bisect) aan die gang is nie"
13018 +
13019 + #, c-format
13020 + msgid "cannot drop '%s' (%s): it is referenced by the current index"
13021 + msgstr "kan nie '%s' (%s) laat val nie: die huidige indeks verwys daarna"
13022 +
13023 + msgid "cannot delete packs in a precious-objects repo"
13024 + msgstr "kan nie pakke in 'n precious-objects-bewaarplek skrap nie"
13025 +
13026 + #, c-format
13027 + msgid "invalid value for %s: %d"
13028 + msgstr "ongeldige waarde vir %s: %d"
13029 +
13030 + #, c-format
13031 + msgid "option '%s' can only be used along with '%s'"
13032 + msgstr "opsie '%s' kan slegs saam met '%s' gebruik word"
13033 +
13034 + msgid "Nothing new to pack."
13035 + msgstr "Niks nuuts om te pak nie."
13036 +
13037 + msgid "git replace [-f] <object> <replacement>"
13038 + msgstr "git replace [-f] <objek> <vervanging>"
13039 +
13040 + msgid "git replace [-f] --edit <object>"
13041 + msgstr "git replace [-f] --edit <objek>"
13042 +
13043 + msgid "git replace [-f] --graft <commit> [<parent>...]"
13044 + msgstr "git replace [-f] --graft <vaslegging> [<ouer>...]"
13045 +
13046 + msgid "git replace -d <object>..."
13047 + msgstr "git replace -d <objek>..."
13048 +
13049 + msgid "git replace [--format=<format>] [-l [<pattern>]]"
13050 + msgstr "git replace [--format=<formaat>] [-l [<patroon>]]"
13051 +
13052 + #, c-format
13053 + msgid ""
13054 + "invalid replace format '%s'\n"
13055 + "valid formats are 'short', 'medium' and 'long'"
13056 + msgstr ""
13057 + "ongeldige vervangformaat '%s'\n"
13058 + "geldige formate is 'short', 'medium' en 'long'"
13059 +
13060 + #, c-format
13061 + msgid "replace ref '%s' not found"
13062 + msgstr "vervangverwysing '%s' nie gevind nie"
13063 +
13064 + #, c-format
13065 + msgid "Deleted replace ref '%s'"
13066 + msgstr "Vervangverwysing '%s' geskrap"
13067 +
13068 + #, c-format
13069 + msgid "'%s' is not a valid ref name"
13070 + msgstr "'%s' is nie 'n geldige verwysingsnaam nie"
13071 +
13072 + #, c-format
13073 + msgid "replace ref '%s' already exists"
13074 + msgstr "vervangverwysing '%s' bestaan reeds"
13075 +
13076 + #, c-format
13077 + msgid ""
13078 + "Objects must be of the same type.\n"
13079 + "'%s' points to a replaced object of type '%s'\n"
13080 + "while '%s' points to a replacement object of type '%s'."
13081 + msgstr ""
13082 + "Objekte moet van dieselfde tipe wees.\n"
13083 + "'%s' wys na 'n vervangde objek van tipe '%s'\n"
13084 + "terwyl '%s' na 'n vervangingsobjek van tipe '%s' wys."
13085 +
13086 + #, c-format
13087 + msgid "unable to open %s for writing"
13088 + msgstr "kan nie %s oopmaak om te skryf nie"
13089 +
13090 + msgid "cat-file reported failure"
13091 + msgstr "cat-file het mislukking gerapporteer"
13092 +
13093 + #, c-format
13094 + msgid "unable to open %s for reading"
13095 + msgstr "kan nie %s oopmaak om te lees nie"
13096 +
13097 + msgid "unable to spawn mktree"
13098 + msgstr "kan nie mktree begin nie"
13099 +
13100 + msgid "unable to read from mktree"
13101 + msgstr "kan nie van mktree lees nie"
13102 +
13103 + msgid "mktree reported failure"
13104 + msgstr "mktree het mislukking gerapporteer"
13105 +
13106 + msgid "mktree did not return an object name"
13107 + msgstr "mktree het nie 'n objeknaam teruggegee nie"
13108 +
13109 + #, c-format
13110 + msgid "unable to fstat %s"
13111 + msgstr "kan nie %s fstat nie"
13112 +
13113 + msgid "unable to write object to database"
13114 + msgstr "kan nie objek na databasis skryf nie"
13115 +
13116 + #, c-format
13117 + msgid "unable to get object type for %s"
13118 + msgstr "kan nie objektipe vir %s kry nie"
13119 +
13120 + msgid "editing object file failed"
13121 + msgstr "wysiging van objeklêer het misluk"
13122 +
13123 + #, c-format
13124 + msgid "new object is the same as the old one: '%s'"
13125 + msgstr "nuwe objek is dieselfde as die ou een: '%s'"
13126 +
13127 + #, c-format
13128 + msgid "could not parse %s as a commit"

This diff is too large to show in full - only the first part is shown.