├── t ├── t5100 │ ├── empty │ ├── msg0013 │ ├── msg0015 │ ├── patch0007 │ ├── patch0008 │ ├── patch0013 │ ├── msg0016 │ ├── msg0017 │ ├── msg0018 │ ├── rfc2047-info-0005 │ ├── rfc2047-info-0007 │ ├── rfc2047-info-0008 │ ├── rfc2047-info-0009 │ ├── rfc2047-info-0006 │ ├── rfc2047-info-0010 │ ├── rfc2047-info-0011 │ ├── msg0001 │ ├── msg0006 │ ├── msg0007 │ ├── msg0009 │ ├── msg0016--no-inbody-headers │ ├── patch0005 │ ├── msg0011 │ ├── msg0015--no-inbody-headers │ ├── msg0008 │ ├── quoted-cr-msg │ ├── quoted-from.expect │ ├── rfc2047-info-0002 │ ├── rfc2047-info-0003 │ ├── info0015 │ ├── nul-plain │ ├── .gitattributes │ ├── info0006 │ ├── info0009 │ ├── info0013 │ ├── info0014 │ ├── info0016 │ ├── patch0018 │ ├── quoted-cr-info │ ├── info0002 │ ├── info0003 │ ├── info0007 │ ├── info0011 │ ├── info0017 │ ├── patch0017 │ ├── 0002mboxrd │ ├── info0008 │ ├── rfc2047-info-0001 │ ├── patch0015 │ ├── patch0016 │ ├── 0001mboxrd │ ├── embed-from.expect │ ├── info0001 │ ├── patch0018--no-inbody-headers │ ├── rfc2047-info-0004 │ ├── info0018 │ ├── msg0018--no-inbody-headers │ ├── patch0015--no-inbody-headers │ ├── patch0016--no-inbody-headers │ ├── info-from.expect │ ├── info0005 │ ├── info0012 │ ├── info0015--no-inbody-headers │ ├── info0016--no-inbody-headers │ ├── info0018--no-inbody-headers │ ├── quoted-string.expect │ ├── info0012--message-id │ ├── info0010 │ ├── msg0004 │ ├── comment.expect │ ├── info0004 │ ├── info0014--scissors │ ├── msg0014--scissors │ ├── msg0010 │ ├── info-from.in │ ├── msg0012 │ ├── quoted-string.in │ ├── comment.in │ └── msg0003 ├── perf │ ├── config │ ├── repos │ │ └── .gitignore │ ├── .gitignore │ ├── p1450-fsck.sh │ └── p1006-cat-file.sh ├── t9151 │ └── .gitignore ├── t1502 │ ├── .gitattributes │ └── optionspec-neg ├── unit-tests │ ├── clar │ │ ├── .gitignore │ │ ├── test │ │ │ └── resources │ │ │ │ └── test │ │ │ │ └── file │ │ └── .editorconfig │ └── .gitignore ├── t3900 │ ├── 1-UTF-8.txt │ ├── 2-UTF-8.txt │ ├── eucJP.txt │ ├── UTF-16.txt │ ├── ISO8859-1.txt │ └── ISO-2022-JP.txt ├── t9601 │ └── cvsroot │ │ ├── .gitattributes │ │ └── CVSROOT │ │ └── .gitignore ├── t9602 │ └── cvsroot │ │ ├── .gitattributes │ │ └── CVSROOT │ │ └── .gitignore ├── t9603 │ └── cvsroot │ │ ├── .gitattributes │ │ └── CVSROOT │ │ └── .gitignore ├── t9604 │ └── cvsroot │ │ ├── .gitattributes │ │ └── CVSROOT │ │ └── .gitignore ├── valgrind │ └── .gitignore ├── t4252 │ ├── file-1-0 │ └── file-2-0 ├── t4013 │ ├── diff.diff-tree_master │ ├── diff.diff-tree_-p_master │ ├── diff.diff-tree_initial │ ├── diff.diff-tree_-p_initial │ ├── diff.diff-tree_-r_initial │ ├── diff.diff_--no-index_dir_dir3 │ ├── diff.diff-tree_--pretty_initial │ ├── diff.diff-tree_--pretty_-p_initial │ ├── diff.diff-tree_-r_--abbrev_initial │ ├── diff.diff_--name-status_dir2_dir │ ├── diff.log_-SF_master_--max-count=0 │ ├── diff.diff-tree_-r_--abbrev=4_initial │ ├── diff.diff-tree_--patch-with-raw_initial │ ├── diff.diff-tree_--pretty=oneline_initial │ ├── diff.diff-tree_--pretty_--stat_initial │ ├── diff.diff-tree_--patch-with-stat_initial │ ├── diff.diff-tree_--pretty_--summary_initial │ ├── diff.diff-tree_--pretty=oneline_-p_initial │ ├── diff.diff_--dirstat_initial_rearrange │ ├── diff.diff_--dirstat_master~1_master~2 │ ├── diff.config_format.subjectprefix_DIFFERENT_PREFIX │ ├── diff.diff-tree_--pretty_--patch-with-raw_initial │ ├── diff.diff-tree_--pretty_--patch-with-stat_initial │ ├── diff.diff-tree_--pretty_--stat_--summary_initial │ ├── diff.diff_--dirstat_--cc_master~1_master │ ├── diff.diff_--no-index_--name-status_dir2_dir │ ├── diff.diff_--dirstat-by-file_initial_rearrange │ ├── diff.diff_--no-index_--name-status_--_dir2_dir │ ├── diff.diff-tree_--pretty=oneline_--patch-with-raw_initial │ ├── diff.diff-tree_--pretty=oneline_--patch-with-stat_initial │ ├── diff.diff-tree_--summary_initial_mode │ ├── diff.diff_--no-index_--raw_dir2_dir │ ├── diff.noellipses-diff_--no-index_--raw_dir2_dir │ ├── diff.diff-tree_--stat_initial_mode │ ├── diff.diff_--no-index_--raw_--abbrev=4_dir2_dir │ ├── diff.noellipses-diff_--no-index_--raw_--abbrev=4_dir2_dir │ ├── diff.diff-tree_--cc_--shortstat_master │ ├── diff.diff-tree_initial_mode │ ├── diff.diff_--stat_initial..side │ ├── diff.diff_-r_--stat_initial..side │ ├── diff.diff-tree_--stat_--compact-summary_initial_mode │ ├── diff.diff-tree_-R_--stat_--compact-summary_initial_mode │ ├── diff.diff-tree_-c_--stat_master │ ├── diff.diff-tree_--cc_--stat_master │ ├── diff.diff-tree_--format=%N_note │ ├── diff.show_initial │ ├── diff.log_-GF_master │ ├── diff.log_-SF_master │ ├── diff.log_-S_F_master │ ├── diff.diff-tree_-c_--stat_--summary_master │ ├── diff.diff_--no-index_--raw_--no-abbrev_dir2_dir │ ├── diff.diff-tree_--cc_--stat_--summary_master │ ├── diff.diff-tree_--cc_--summary_REVERSE │ ├── diff.log_-SF_master_--max-count=1 │ ├── diff.log_-SF_master_--max-count=2 │ ├── diff.diff_--cached_--_file0 │ ├── diff.noellipses-diff_--raw_--abbrev=4_initial │ ├── diff.noellipses-diff_--raw_initial │ ├── diff.diff_--raw_--abbrev=4_initial │ ├── diff.diff_--raw_initial │ ├── diff.noellipses-diff-tree_-c_--abbrev_master │ ├── diff.diff-tree_-c_--abbrev_master │ ├── diff.diff-tree_--cc_--stat_--summary_side │ ├── diff.diff-tree_-c_--stat_--summary_side │ ├── diff.noellipses-diff-tree_--root_-r_--abbrev=4_initial │ ├── diff.diff-tree_--root_-r_--abbrev=4_initial │ ├── diff.noellipses-diff-tree_--root_--abbrev_initial │ ├── diff.diff-tree_--root_--abbrev_initial │ ├── diff.noellipses-diff-tree_--root_-r_--abbrev_initial │ ├── diff.diff-tree_--root_-r_--abbrev_initial │ ├── diff.whatchanged_-SF_master │ └── diff.noellipses-whatchanged_-SF_master ├── t4018 │ ├── css-colon-eol │ ├── bash-posix-style-compact │ ├── bash-other-characters │ ├── bash-posix-style-function │ ├── bash-subshell-function │ ├── cpp-class-definition │ ├── cpp-class-destructor │ ├── cpp-void-c-function │ ├── golang-func │ ├── php-class │ ├── bash-trailing-comment │ ├── cpp-class-constructor │ ├── cpp-namespace-definition │ ├── golang-struct │ ├── php-enum │ ├── php-function │ ├── bash-mixed-style-function │ ├── bash-posix-style-whitespace │ ├── cpp-union-definition │ ├── fortran-module │ ├── perl-sub-definition-kr-brace │ ├── bash-arithmetic-function │ ├── bash-conditional-function │ ├── cpp-gnu-style-function │ ├── fortran-program │ ├── golang-interface │ ├── matlab-function │ ├── perl-sub-definition │ ├── php-final-class │ ├── php-interface │ ├── bash-bashism-style-function │ ├── bash-mixed-style-compact │ ├── bash-posix-style-complete-line-capture │ ├── bash-posix-style-single-command-function │ ├── cpp-function-returning-global-type │ ├── elixir-macro │ ├── ini-section-noindent │ ├── kotlin-class │ ├── kotlin-enum-class │ ├── matlab-octave-section-2 │ ├── php-abstract-class │ ├── bash-bashism-style-whitespace │ ├── cpp-c++-function │ ├── cpp-function-returning-nested │ ├── cpp-operator-definition │ ├── kotlin-fun │ ├── kotlin-public-class │ ├── matlab-octave-section-1 │ ├── cpp-class-constructor-mem-init │ ├── cpp-class-definition-derived │ ├── cpp-function-returning-pointer │ ├── cpp-function-returning-reference │ ├── cpp-template-function-definition │ ├── kotlin-sealed-class │ ├── bash-bashism-style-complete-line-capture │ ├── css-class-selector │ ├── css-id-selector │ ├── css-root-selector │ ├── elixir-function │ ├── fortran-external-subroutine │ ├── kotlin-inheritace-class │ ├── kotlin-inline-class │ ├── kotlin-interface │ ├── matlab-class-definition │ ├── matlab-section │ ├── python-class │ ├── python-def │ ├── elixir-do-not-pick-end │ ├── java-enum-constant │ ├── r-noindent │ ├── scheme-def │ ├── bash-nested-functions │ ├── cpp-struct-single-line │ ├── elixir-private-function │ ├── ini-section │ ├── ini-section-same-line │ ├── elixir-protocol-implementation │ ├── fountain-scene │ ├── python-async-def │ ├── rust-struct │ ├── css-attribute-value-selector │ ├── css-common │ ├── php-trait │ ├── r-indent │ ├── rust-impl │ ├── scheme-define-variant │ ├── scheme-top-level-define │ ├── css-colon-selector │ ├── php-method │ ├── rust-macro-rules │ ├── bash-missing-parentheses │ ├── elixir-ex-unit-test │ ├── rust-fn │ ├── bash-bashism-style-compact │ ├── css-brace-in-col-1 │ ├── css-short-selector-list │ ├── java-class-brace-on-separate-line │ ├── python-indented-class │ ├── scheme-local-define │ ├── cpp-skip-labels │ ├── css-prop-sans-indent │ ├── css-trailing-space │ ├── dts-root │ ├── php-final-method │ ├── dts-node-unitless │ ├── dts-reference │ ├── elixir-module-func │ ├── cpp-skip-comment-block │ ├── dts-nodes │ ├── fortran-block-data │ ├── cpp-skip-access-specifiers │ ├── java-class-type-parameters │ ├── kotlin-nested-fun │ ├── php-abstract-method │ ├── scheme-def-variant │ ├── css-long-selector-list │ ├── dts-labels │ ├── dts-nodes-boolean-prop │ ├── elixir-module │ ├── golang-complex-function │ ├── rust-trait │ ├── golang-long-func │ ├── markdown-heading-indented │ ├── python-indented-def │ ├── elixir-protocol │ ├── java-interface-type-parameters │ ├── java-nested-field │ ├── custom2-match-to-end-of-line │ ├── dts-nodes-comment1 │ ├── elixir-nested-module │ ├── python-indented-async-def │ ├── java-record │ ├── java-sealed-type-parameters │ ├── perl-skip-end-of-heredoc │ ├── csharp-method │ ├── dts-nodes-comment2 │ ├── java-class-type-parameters-implements │ ├── java-class-space-before-type-parameters │ ├── csharp-method-array │ ├── ini-subsection-noindent │ ├── csharp-method-multiline │ ├── java-interface-type-parameters-extends │ ├── java-sealed │ ├── java-sealed-permits │ ├── scheme-class │ ├── scheme-define-slash-public │ ├── csharp-method-with-spacing │ ├── csharp-property │ ├── fortran-external-function │ ├── java-record-type-parameters │ ├── csharp-property-braces-same-line │ ├── java-record-space-before-components │ ├── csharp-method-params │ ├── java-sealed-type-parameters-permits │ ├── perl-skip-forward-decl │ ├── cpp-struct-definition │ ├── dts-root-comment │ ├── dts-nodes-multiline-prop │ ├── ini-subsection │ ├── csharp-method-explicit │ ├── fortran-comment-legacy │ ├── r-indent-nested │ ├── fortran-comment │ ├── fortran-comment-legacy-star │ ├── java-sealed-type-parameters-implements-permits │ ├── csharp-method-generics │ ├── csharp-method-special-chars │ ├── css-block-level-@-statements │ ├── java-non-sealed │ ├── csharp-method-generics-alternate-spaces │ ├── java-class-member-function │ ├── scheme-module │ ├── csharp-exclude-generic-method-calls │ ├── csharp-method-modifiers │ └── scheme-user-defined-define ├── t8005 │ ├── utf8.txt │ ├── sjis.txt │ └── euc-japan.txt ├── lib-httpd │ ├── passwd │ ├── proxy-passwd │ ├── error-smart-http.sh │ ├── incomplete-length-upload-pack-v2-http.sh │ ├── incomplete-body-upload-pack-v2-http.sh │ ├── error-no-report.sh │ └── ssl.cnf ├── helper │ ├── .gitignore │ ├── test-sha256.c │ ├── test-tool-utils.h │ └── test-online-cpus.c ├── t7500 │ ├── add-content │ ├── add-signed-off │ ├── edit-content │ ├── add-comments │ ├── add-content-and-comment │ └── add-whitespaced-content ├── t1016 │ └── gpg ├── t3434 │ ├── eucJP.txt │ └── ISO8859-1.txt ├── t4135 │ ├── .gitignore │ ├── diff-plain.diff │ ├── diff-with quote.diff │ ├── diff-with spaces.diff │ ├── diff-with tab.diff │ ├── git-plain.diff │ ├── diff-with backslash.diff │ ├── git-with spaces.diff │ ├── git-with tab.diff │ ├── git-with backslash.diff │ ├── add-plain.diff │ ├── git-with quote.diff │ ├── damaged.diff │ ├── add-with spaces.diff │ ├── add-with tab.diff │ ├── add-with backslash.diff │ └── add-with quote.diff ├── t5004 │ ├── empty.zip │ └── big-pack.zip ├── interop │ └── .gitignore ├── t3901 │ ├── 8859-1.txt │ └── utf8.txt ├── t4201-shortlog.sh ├── t5000 │ └── huge-object ├── t4101 │ ├── diff.0-1 │ ├── diff.1-0 │ ├── diff.0-2 │ ├── diff.2-0 │ ├── diff.2-3 │ ├── diff.3-2 │ ├── diff.0-3 │ ├── diff.1-2 │ ├── diff.1-3 │ ├── diff.2-1 │ ├── diff.3-0 │ └── diff.3-1 ├── chainlint │ ├── close-nested-and-parent-together.expect │ ├── exit-subshell.expect │ ├── here-doc-close-subshell.expect │ ├── blank-line.expect │ ├── p4-filespec.expect │ ├── broken-chain.expect │ ├── block-comment.expect │ ├── command-substitution-subsubshell.expect │ ├── cuddled-loop.expect │ ├── empty-here-doc.expect │ ├── here-doc-double.expect │ ├── comment.expect │ ├── cuddled-if-then-else.expect │ ├── close-nested-and-parent-together.test │ ├── for-loop-abbreviated.expect │ ├── here-doc-body-indent.expect │ ├── exclamation.expect │ ├── pipe.expect │ ├── return-loop.expect │ ├── block-comment.test │ ├── here-doc-multi-line-string.expect │ ├── if-condition-split.expect │ ├── bash-array.expect │ ├── incomplete-line.expect │ ├── negated-one-liner.expect │ ├── arithmetic-expansion.expect │ ├── command-substitution.expect │ ├── empty-here-doc.test │ ├── here-doc-body-indent.test │ ├── here-doc-multi-line-command-subst.expect │ ├── sqstring-in-sqstring.expect │ ├── unclosed-here-doc-indent.expect │ ├── exit-subshell.test │ ├── here-doc-close-subshell.test │ ├── case-comment.expect │ ├── unclosed-here-doc-indent.test │ ├── p4-filespec.test │ ├── case-comment.test │ ├── inline-comment.expect │ ├── nested-subshell.test │ ├── broken-chain.test │ ├── nested-subshell.expect │ ├── chain-break-false.expect │ ├── if-in-loop.expect │ ├── command-substitution-subsubshell.test │ ├── for-loop-abbreviated.test │ ├── here-doc-multi-line-string.test │ ├── if-condition-split.test │ ├── cuddled-if-then-else.test │ ├── multi-line-string.expect │ ├── nested-subshell-comment.expect │ ├── pipe.test │ ├── dqstring-line-splice.expect │ ├── one-liner.expect │ ├── return-loop.test │ ├── unclosed-here-doc.expect │ ├── here-doc-multi-line-command-subst.test │ ├── negated-one-liner.test │ ├── chained-block.expect │ ├── complex-if-in-cuddled-loop.expect │ ├── cuddled.expect │ ├── blank-line.test │ ├── chain-break-status.expect │ ├── here-doc-body.expect │ ├── loop-in-if.expect │ ├── sqstring-in-sqstring.test │ └── unclosed-here-doc.test ├── lib-gpg │ ├── gpgsm_cert.p12 │ ├── ownertrust │ └── gpgsm-gen-key.in ├── t0013 │ └── shattered-1.pdf ├── t5319 │ └── no-objects.midx ├── t5515 │ ├── fetch.main_.._.git │ ├── fetch.br-unconfig_.._.git │ ├── fetch.main_.._.git_one │ ├── fetch.br-unconfig_.._.git_one │ ├── fetch.main_.._.git_one_two │ └── fetch.br-unconfig_.._.git_one_two ├── t5801 │ └── git-remote-nourl ├── t4034 │ ├── fortran │ │ ├── pre │ │ └── post │ ├── tex │ │ ├── pre │ │ └── post │ ├── html │ │ ├── pre │ │ └── post │ ├── matlab │ │ ├── pre │ │ └── post │ ├── css │ │ ├── post │ │ └── pre │ ├── scheme │ │ ├── pre │ │ └── post │ └── ada │ │ ├── post │ │ └── pre ├── t7813-grep-icase-iso.sh ├── .gitignore ├── lib-diff │ ├── test-binary-1.png │ └── test-binary-2.png ├── t5003 │ └── infozip-symlinks.zip ├── t4100 │ ├── t-apply-8.expect │ ├── t-apply-9.expect │ ├── t-apply-4.expect │ ├── t-apply-2.expect │ ├── t-apply-6.expect │ └── t-apply-4.patch ├── t5559-http-fetch-smart-http2.sh ├── t4051 │ └── dummy.c ├── t9350 │ ├── broken-iso-8859-7-commit-message.txt │ └── simple-iso-8859-7-commit-message.txt ├── t4020 │ └── diff.NUL ├── t1509 │ └── excludes ├── t4110 │ ├── patch2.patch │ ├── patch4.patch │ ├── patch5.patch │ ├── expect │ ├── patch3.patch │ └── patch1.patch ├── t0071-sort.sh ├── lib-t3100.sh ├── t4050-diff-histogram.sh ├── t5411 │ └── test-0010-proc-receive-settings.sh └── Git-SVN │ └── Utils │ └── can_compress.t ├── perl ├── .gitignore ├── FromCPAN │ ├── .gitattributes │ ├── Mail │ │ └── meson.build │ └── meson.build ├── header_templates │ └── fixed_prefix.template.pl └── Git │ ├── LoadCPAN │ ├── Error.pm │ ├── Mail │ │ ├── Address.pm │ │ └── meson.build │ └── meson.build │ └── SVN │ └── Memoize │ └── meson.build ├── gitk-git ├── po │ └── .gitignore ├── .gitignore └── generate-tcl.sh ├── subprojects └── .gitignore ├── RelNotes ├── contrib ├── coccinelle │ ├── .gitignore │ ├── preincr.cocci │ ├── xstrdup_or_null.cocci │ ├── tests │ │ ├── free.res │ │ └── free.c │ └── xcalloc.cocci ├── credential │ ├── netrc │ │ ├── test.netrc.gpg │ │ ├── .gitignore │ │ ├── test.git-config-gpg │ │ └── test.command-option-gpg │ ├── libsecret │ │ └── .gitignore │ ├── osxkeychain │ │ └── .gitignore │ ├── meson.build │ └── wincred │ │ └── meson.build ├── libgit-rs │ ├── src │ │ └── lib.rs │ ├── testdata │ │ ├── config2 │ │ ├── config1 │ │ └── config3 │ └── build.rs ├── completion │ └── .gitattributes ├── diff-highlight │ ├── .gitignore │ ├── t │ │ └── .gitignore │ └── diff-highlight.perl ├── vscode │ └── .gitattributes ├── update-unicode │ └── .gitignore ├── contacts │ └── .gitignore ├── buildsystems │ └── git-version.in ├── libgit-sys │ └── README.md ├── meson.build └── subtree │ ├── .gitignore │ └── README ├── compat ├── win32 │ └── alloca.h ├── vcbuild │ ├── include │ │ ├── utime.h │ │ └── sys │ │ │ ├── param.h │ │ │ └── time.h │ └── .gitignore ├── sha1-chunked.h ├── msvc.h ├── .gitattributes ├── msvc.c ├── fileno.c ├── mkdtemp.c ├── strdup.c ├── nonblock.h ├── strtoimax.c ├── regcomp_enhanced.c └── strtoumax.c ├── GIT-VERSION-FILE.in ├── mergetools ├── gvimdiff └── nvimdiff ├── templates ├── .gitignore ├── description ├── info │ ├── meson.build │ └── exclude └── hooks │ └── post-update.sample ├── git-gui ├── po │ └── .gitignore ├── lib │ └── git-gui.ico ├── .gitignore └── GIT-GUI-BUILD-OPTIONS.in ├── po └── .gitignore ├── sha1dc └── .gitattributes ├── Documentation ├── technical │ └── .gitignore ├── docinfo-html.in ├── config │ ├── clean.adoc │ ├── remotes.adoc │ ├── revert.adoc │ ├── showbranch.adoc │ ├── web.adoc │ └── windows.adoc ├── RelNotes │ ├── 2.8.6.adoc │ ├── 2.9.5.adoc │ ├── 1.7.4.5.adoc │ ├── 2.10.4.adoc │ ├── 2.11.3.adoc │ ├── 2.12.4.adoc │ ├── 2.13.5.adoc │ ├── 2.14.1.adoc │ ├── 2.31.3.adoc │ ├── 2.32.2.adoc │ ├── 2.33.3.adoc │ ├── 2.34.3.adoc │ ├── 2.35.3.adoc │ ├── 1.5.5.4.adoc │ ├── 1.7.3.2.adoc │ ├── 2.0.4.adoc │ ├── 2.14.4.adoc │ ├── 2.16.4.adoc │ ├── 2.18.3.adoc │ ├── 2.18.4.adoc │ ├── 2.19.4.adoc │ ├── 2.19.5.adoc │ ├── 2.20.3.adoc │ ├── 2.20.4.adoc │ ├── 2.21.2.adoc │ ├── 2.21.3.adoc │ ├── 2.22.3.adoc │ ├── 2.22.4.adoc │ ├── 2.23.2.adoc │ ├── 2.23.3.adoc │ ├── 2.24.2.adoc │ ├── 2.24.3.adoc │ ├── 2.25.3.adoc │ ├── 2.25.4.adoc │ ├── 2.26.1.adoc │ ├── 2.26.2.adoc │ ├── 2.31.5.adoc │ ├── 2.31.6.adoc │ ├── 2.32.4.adoc │ ├── 2.33.5.adoc │ ├── 2.33.6.adoc │ ├── 2.34.5.adoc │ ├── 2.34.6.adoc │ ├── 2.35.5.adoc │ ├── 2.35.6.adoc │ ├── 2.36.3.adoc │ ├── 2.36.4.adoc │ ├── 2.37.5.adoc │ ├── 2.38.1.adoc │ ├── 2.38.3.adoc │ ├── 2.39.1.adoc │ ├── 2.40.4.adoc │ ├── 2.35.1.adoc │ ├── 2.15.3.adoc │ ├── 2.16.5.adoc │ ├── 2.18.5.adoc │ ├── 2.31.2.adoc │ ├── 2.31.4.adoc │ ├── 2.19.6.adoc │ ├── 2.32.1.adoc │ ├── 2.32.3.adoc │ ├── 1.7.0.9.adoc │ ├── 1.7.1.4.adoc │ ├── 1.7.2.5.adoc │ ├── 2.18.1.adoc │ ├── 2.19.1.adoc │ ├── 2.20.5.adoc │ ├── 2.31.7.adoc │ ├── 2.33.4.adoc │ ├── 2.41.3.adoc │ ├── 2.21.4.adoc │ ├── 2.34.2.adoc │ ├── 2.34.4.adoc │ ├── 2.42.4.adoc │ ├── 2.31.8.adoc │ ├── 2.32.6.adoc │ ├── 1.7.11.1.adoc │ ├── 1.7.6.2.adoc │ ├── 2.22.5.adoc │ ├── 2.33.7.adoc │ └── 2.35.2.adoc ├── includes │ ├── cmd-config-section-all.adoc │ └── cmd-config-section-rest.adoc ├── ref-storage-format.adoc ├── manpage.xsl └── git-remote-helpers.adoco ├── .github └── macos-installer │ └── assets │ └── etc │ └── gitconfig.osxkeychain ├── gitweb ├── static │ ├── git-logo.png │ └── git-favicon.png └── generate-gitweb-js.sh ├── compiler-tricks └── not-constant.c ├── unimplemented.sh ├── common-init.h ├── versioncmp.h ├── .gitmodules ├── varint.h ├── oss-fuzz └── .gitignore ├── negotiator ├── noop.h ├── default.h └── skipping.h ├── ci └── run-style-check.sh ├── prune-packed.h ├── base85.h ├── bin-wrappers └── .gitignore ├── server-info.h ├── protocol-caps.h ├── levenshtein.h ├── version-def.h.in ├── serve.h ├── wildmatch.h ├── prompt.h ├── ls-refs.h ├── merge-blobs.h └── rebase.h /t/t5100/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t5100/msg0013: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t5100/msg0015: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t5100/patch0007: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t5100/patch0008: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t5100/patch0013: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /perl/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /gitk-git/po/.gitignore: -------------------------------------------------------------------------------- 1 | *.msg 2 | -------------------------------------------------------------------------------- /subprojects/.gitignore: -------------------------------------------------------------------------------- 1 | /*/ 2 | -------------------------------------------------------------------------------- /t/perf/config: -------------------------------------------------------------------------------- 1 | [gc] 2 | auto = 0 3 | -------------------------------------------------------------------------------- /t/perf/repos/.gitignore: -------------------------------------------------------------------------------- 1 | gen-*/ 2 | -------------------------------------------------------------------------------- /t/t9151/.gitignore: -------------------------------------------------------------------------------- 1 | foo 2 | foo.svn 3 | -------------------------------------------------------------------------------- /RelNotes: -------------------------------------------------------------------------------- 1 | Documentation/RelNotes/2.51.2.adoc -------------------------------------------------------------------------------- /contrib/coccinelle/.gitignore: -------------------------------------------------------------------------------- 1 | *.patch 2 | -------------------------------------------------------------------------------- /contrib/credential/netrc/test.netrc.gpg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /t/t1502/.gitattributes: -------------------------------------------------------------------------------- 1 | * -whitespace 2 | -------------------------------------------------------------------------------- /t/t5100/msg0016: -------------------------------------------------------------------------------- 1 | and some content 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/msg0017: -------------------------------------------------------------------------------- 1 | New content here 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/msg0018: -------------------------------------------------------------------------------- 1 | a commit message 2 | 3 | -------------------------------------------------------------------------------- /t/unit-tests/clar/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /compat/win32/alloca.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /contrib/libgit-rs/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod config; 2 | -------------------------------------------------------------------------------- /t/t3900/1-UTF-8.txt: -------------------------------------------------------------------------------- 1 | ÄËÑÏÖ 2 | 3 | Ábçdèfg 4 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0005: -------------------------------------------------------------------------------- 1 | Subject: (a) 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0007: -------------------------------------------------------------------------------- 1 | Subject: (ab) 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0008: -------------------------------------------------------------------------------- 1 | Subject: (ab) 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0009: -------------------------------------------------------------------------------- 1 | Subject: (ab) 2 | 3 | -------------------------------------------------------------------------------- /t/t9601/cvsroot/.gitattributes: -------------------------------------------------------------------------------- 1 | * -whitespace 2 | -------------------------------------------------------------------------------- /t/t9602/cvsroot/.gitattributes: -------------------------------------------------------------------------------- 1 | * -whitespace 2 | -------------------------------------------------------------------------------- /t/t9603/cvsroot/.gitattributes: -------------------------------------------------------------------------------- 1 | * -whitespace 2 | -------------------------------------------------------------------------------- /t/t9604/cvsroot/.gitattributes: -------------------------------------------------------------------------------- 1 | * -whitespace 2 | -------------------------------------------------------------------------------- /t/valgrind/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /templates 3 | -------------------------------------------------------------------------------- /GIT-VERSION-FILE.in: -------------------------------------------------------------------------------- 1 | GIT_VERSION=@GIT_VERSION@ 2 | -------------------------------------------------------------------------------- /contrib/completion/.gitattributes: -------------------------------------------------------------------------------- 1 | *.bash eol=lf 2 | -------------------------------------------------------------------------------- /mergetools/gvimdiff: -------------------------------------------------------------------------------- 1 | . "$MERGE_TOOLS_DIR/vimdiff" 2 | -------------------------------------------------------------------------------- /mergetools/nvimdiff: -------------------------------------------------------------------------------- 1 | . "$MERGE_TOOLS_DIR/vimdiff" 2 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0006: -------------------------------------------------------------------------------- 1 | Subject: (a b) 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0010: -------------------------------------------------------------------------------- 1 | Subject: (a b) 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0011: -------------------------------------------------------------------------------- 1 | Subject: (a b) 2 | 3 | -------------------------------------------------------------------------------- /t/unit-tests/clar/test/resources/test/file: -------------------------------------------------------------------------------- 1 | File 2 | -------------------------------------------------------------------------------- /templates/.gitignore: -------------------------------------------------------------------------------- 1 | blt 2 | boilerplates.made 3 | -------------------------------------------------------------------------------- /compat/vcbuild/include/utime.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /git-gui/po/.gitignore: -------------------------------------------------------------------------------- 1 | *.msg 2 | *~ 3 | /git-gui.pot 4 | -------------------------------------------------------------------------------- /gitk-git/.gitignore: -------------------------------------------------------------------------------- 1 | /GIT-TCLTK-VARS 2 | /gitk-wish 3 | -------------------------------------------------------------------------------- /po/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /git.pot 3 | /git-core.pot 4 | -------------------------------------------------------------------------------- /t/t4252/file-1-0: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | -------------------------------------------------------------------------------- /t/t4252/file-2-0: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | -------------------------------------------------------------------------------- /t/t5100/msg0001: -------------------------------------------------------------------------------- 1 | Here is a patch from A U Thor. 2 | 3 | -------------------------------------------------------------------------------- /t/t5100/msg0006: -------------------------------------------------------------------------------- 1 | Here is a patch from A U Thor. 2 | 3 | -------------------------------------------------------------------------------- /contrib/credential/netrc/.gitignore: -------------------------------------------------------------------------------- 1 | git-credential-netrc 2 | -------------------------------------------------------------------------------- /sha1dc/.gitattributes: -------------------------------------------------------------------------------- 1 | * whitespace=-indent-with-non-tab 2 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree master 2 | $ 3 | -------------------------------------------------------------------------------- /t/t5100/msg0007: -------------------------------------------------------------------------------- 1 | Here is an empty patch from A U Thor. 2 | 3 | -------------------------------------------------------------------------------- /t/t9601/cvsroot/CVSROOT/.gitignore: -------------------------------------------------------------------------------- 1 | history 2 | val-tags 3 | -------------------------------------------------------------------------------- /t/t9602/cvsroot/CVSROOT/.gitignore: -------------------------------------------------------------------------------- 1 | history 2 | val-tags 3 | -------------------------------------------------------------------------------- /t/t9603/cvsroot/CVSROOT/.gitignore: -------------------------------------------------------------------------------- 1 | history 2 | val-tags 3 | -------------------------------------------------------------------------------- /t/t9604/cvsroot/CVSROOT/.gitignore: -------------------------------------------------------------------------------- 1 | history 2 | val-tags 3 | -------------------------------------------------------------------------------- /contrib/credential/libsecret/.gitignore: -------------------------------------------------------------------------------- 1 | git-credential-libsecret 2 | -------------------------------------------------------------------------------- /contrib/libgit-rs/testdata/config2: -------------------------------------------------------------------------------- 1 | [trace2] 2 | eventTarget = 1 3 | -------------------------------------------------------------------------------- /perl/FromCPAN/.gitattributes: -------------------------------------------------------------------------------- 1 | /Error.pm whitespace=-blank-at-eof 2 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-p_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree -p master 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/css-colon-eol: -------------------------------------------------------------------------------- 1 | RIGHT h1 { 2 | color: 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t5100/msg0009: -------------------------------------------------------------------------------- 1 | This is to fix diff-format documentation. 2 | 3 | -------------------------------------------------------------------------------- /t/t8005/utf8.txt: -------------------------------------------------------------------------------- 1 | UTF8_NAME="山田 太郎" 2 | UTF8_MSG="ブレームのテストです。" 3 | -------------------------------------------------------------------------------- /t/unit-tests/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | /clar.suite 3 | /clar-decls.h 4 | -------------------------------------------------------------------------------- /Documentation/technical/.gitignore: -------------------------------------------------------------------------------- 1 | api-index.txt 2 | api-index.adoc 3 | -------------------------------------------------------------------------------- /compat/vcbuild/.gitignore: -------------------------------------------------------------------------------- 1 | /vcpkg/ 2 | /MSVC-DEFS-GEN 3 | /VCPKG-DEFS 4 | -------------------------------------------------------------------------------- /contrib/credential/osxkeychain/.gitignore: -------------------------------------------------------------------------------- 1 | git-credential-osxkeychain 2 | -------------------------------------------------------------------------------- /contrib/diff-highlight/.gitignore: -------------------------------------------------------------------------------- 1 | shebang.perl 2 | diff-highlight 3 | -------------------------------------------------------------------------------- /contrib/libgit-rs/testdata/config1: -------------------------------------------------------------------------------- 1 | [trace2] 2 | eventNesting = 1 3 | -------------------------------------------------------------------------------- /contrib/libgit-rs/testdata/config3: -------------------------------------------------------------------------------- 1 | [trace2] 2 | eventNesting = 3 3 | -------------------------------------------------------------------------------- /contrib/vscode/.gitattributes: -------------------------------------------------------------------------------- 1 | init.sh whitespace=-indent-with-non-tab 2 | -------------------------------------------------------------------------------- /t/lib-httpd/passwd: -------------------------------------------------------------------------------- 1 | user@host:$apr1$LGPmCZWj$9vxEwj5Z5GzQLBMxp3mCx1 2 | -------------------------------------------------------------------------------- /t/t3900/2-UTF-8.txt: -------------------------------------------------------------------------------- 1 | はれひほふ 2 | 3 | しているのが、いるので。 4 | 濱浜ほれぷりぽれまびぐりろへ。 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-p_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree -p initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-r_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree -r initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-posix-style-compact: -------------------------------------------------------------------------------- 1 | RIGHT(){ 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /contrib/diff-highlight/t/.gitignore: -------------------------------------------------------------------------------- 1 | /trash directory* 2 | /test-results 3 | -------------------------------------------------------------------------------- /t/helper/.gitignore: -------------------------------------------------------------------------------- 1 | /test-gvfs-protocol 2 | /test-tool 3 | /test-fake-ssh 4 | -------------------------------------------------------------------------------- /t/lib-httpd/proxy-passwd: -------------------------------------------------------------------------------- 1 | proxuser:$apr1$RxS6MLkD$DYsqQdflheq4GPNxzJpx5. 2 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_dir_dir3: -------------------------------------------------------------------------------- 1 | $ git diff --no-index dir dir3 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-other-characters: -------------------------------------------------------------------------------- 1 | _RIGHT_0n() { 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-posix-style-function: -------------------------------------------------------------------------------- 1 | RIGHT() { 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-subshell-function: -------------------------------------------------------------------------------- 1 | RIGHT() ( 2 | 3 | ChangeMe=2 4 | ) 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-class-definition: -------------------------------------------------------------------------------- 1 | class RIGHT 2 | { 3 | int ChangeMe; 4 | }; 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-class-destructor: -------------------------------------------------------------------------------- 1 | RIGHT::~RIGHT() 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-void-c-function: -------------------------------------------------------------------------------- 1 | void RIGHT (void) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/golang-func: -------------------------------------------------------------------------------- 1 | func RIGHT() { 2 | a := 5 3 | b := ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-class: -------------------------------------------------------------------------------- 1 | class RIGHT 2 | { 3 | const FOO = 'ChangeMe'; 4 | } 5 | -------------------------------------------------------------------------------- /t/t7500/add-content: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "commit message" >> "$1" 3 | exit 0 4 | -------------------------------------------------------------------------------- /t/t1016/gpg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec gpg --faked-system-time "20230918T154812" "$@" 3 | -------------------------------------------------------------------------------- /t/t3434/eucJP.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3434/eucJP.txt -------------------------------------------------------------------------------- /t/t3900/eucJP.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3900/eucJP.txt -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-trailing-comment: -------------------------------------------------------------------------------- 1 | RIGHT() { # Comment 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-class-constructor: -------------------------------------------------------------------------------- 1 | Item::Item(int RIGHT) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-namespace-definition: -------------------------------------------------------------------------------- 1 | namespace RIGHT 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/golang-struct: -------------------------------------------------------------------------------- 1 | type RIGHT struct { 2 | a Type 3 | b ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-enum: -------------------------------------------------------------------------------- 1 | enum RIGHT: string 2 | { 3 | case Foo = 'ChangeMe'; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-function: -------------------------------------------------------------------------------- 1 | function RIGHT() 2 | { 3 | return 'ChangeMe'; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4135/.gitignore: -------------------------------------------------------------------------------- 1 | /file-creation/ 2 | /trad-creation/ 3 | /trad-modification/ 4 | -------------------------------------------------------------------------------- /t/t5004/empty.zip: -------------------------------------------------------------------------------- 1 | PK(fc8e0d59c1cc5c14b6919fb2006b27fe337e7d0e -------------------------------------------------------------------------------- /t/t5100/msg0016--no-inbody-headers: -------------------------------------------------------------------------------- 1 | Date: bogus 2 | 3 | and some content 4 | 5 | -------------------------------------------------------------------------------- /t/t5100/patch0005: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t5100/patch0005 -------------------------------------------------------------------------------- /t/t8005/sjis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t8005/sjis.txt -------------------------------------------------------------------------------- /contrib/coccinelle/preincr.cocci: -------------------------------------------------------------------------------- 1 | @@ 2 | identifier i; 3 | @@ 4 | - ++i > 1 5 | + i++ 6 | -------------------------------------------------------------------------------- /contrib/update-unicode/.gitignore: -------------------------------------------------------------------------------- 1 | uniset/ 2 | UnicodeData.txt 3 | EastAsianWidth.txt 4 | -------------------------------------------------------------------------------- /t/interop/.gitignore: -------------------------------------------------------------------------------- 1 | /trash directory*/ 2 | /test-results/ 3 | /.prove/ 4 | /build/ 5 | -------------------------------------------------------------------------------- /t/perf/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /test-results/ 3 | /test-trace/ 4 | /trash directory*/ 5 | -------------------------------------------------------------------------------- /t/t3900/UTF-16.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3900/UTF-16.txt -------------------------------------------------------------------------------- /t/t3901/8859-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3901/8859-1.txt -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_-p_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty -p initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-r_--abbrev_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree -r --abbrev initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--name-status_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --name-status dir2 dir 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-SF_master_--max-count=0: -------------------------------------------------------------------------------- 1 | $ git log -SF master --max-count=0 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-mixed-style-function: -------------------------------------------------------------------------------- 1 | function RIGHT() { 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-posix-style-whitespace: -------------------------------------------------------------------------------- 1 | RIGHT ( ) { 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-union-definition: -------------------------------------------------------------------------------- 1 | union RIGHT { 2 | double v; 3 | int ChangeMe; 4 | }; 5 | -------------------------------------------------------------------------------- /t/t4018/fortran-module: -------------------------------------------------------------------------------- 1 | module RIGHT 2 | 3 | use ChangeMe 4 | 5 | end module RIGHT 6 | -------------------------------------------------------------------------------- /t/t4018/perl-sub-definition-kr-brace: -------------------------------------------------------------------------------- 1 | sub RIGHT 2 | { 3 | print "ChangeMe\n"; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4201-shortlog.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t4201-shortlog.sh -------------------------------------------------------------------------------- /t/t5000/huge-object: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t5000/huge-object -------------------------------------------------------------------------------- /t/t5100/msg0011: -------------------------------------------------------------------------------- 1 | Here comes a commit log message, and 2 | its second line is here. 3 | -------------------------------------------------------------------------------- /t/t5100/msg0015--no-inbody-headers: -------------------------------------------------------------------------------- 1 | From: bogosity 2 | - a list 3 | - of stuff 4 | -------------------------------------------------------------------------------- /contrib/contacts/.gitignore: -------------------------------------------------------------------------------- 1 | git-contacts.1 2 | git-contacts.html 3 | git-contacts.xml 4 | -------------------------------------------------------------------------------- /t/t3434/ISO8859-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3434/ISO8859-1.txt -------------------------------------------------------------------------------- /t/t3900/ISO8859-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t3900/ISO8859-1.txt -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-r_--abbrev=4_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree -r --abbrev=4 initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-arithmetic-function: -------------------------------------------------------------------------------- 1 | RIGHT() (( 2 | 3 | ChangeMe = "$x" + "$y" 4 | )) 5 | -------------------------------------------------------------------------------- /t/t4018/bash-conditional-function: -------------------------------------------------------------------------------- 1 | RIGHT() [[ \ 2 | 3 | "$a" > "$ChangeMe" 4 | ]] 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-gnu-style-function: -------------------------------------------------------------------------------- 1 | const char * 2 | RIGHT(int arg) 3 | { 4 | ChangeMe; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/fortran-program: -------------------------------------------------------------------------------- 1 | program RIGHT 2 | 3 | call ChangeMe 4 | 5 | end program RIGHT 6 | -------------------------------------------------------------------------------- /t/t4018/golang-interface: -------------------------------------------------------------------------------- 1 | type RIGHT interface { 2 | a() Type 3 | b() ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/matlab-function: -------------------------------------------------------------------------------- 1 | function y = RIGHT() 2 | x = 5; 3 | y = ChangeMe + x; 4 | end 5 | -------------------------------------------------------------------------------- /t/t4018/perl-sub-definition: -------------------------------------------------------------------------------- 1 | sub RIGHT { 2 | my ($n) = @_; 3 | print "ChangeMe"; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-final-class: -------------------------------------------------------------------------------- 1 | final class RIGHT 2 | { 3 | const FOO = 'ChangeMe'; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-interface: -------------------------------------------------------------------------------- 1 | interface RIGHT 2 | { 3 | public function foo($ChangeMe); 4 | } 5 | -------------------------------------------------------------------------------- /t/t4101/diff.0-1: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,3 @@ 4 | a 5 | b 6 | +c 7 | -------------------------------------------------------------------------------- /t/t4101/diff.1-0: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,2 @@ 4 | a 5 | b 6 | -c 7 | -------------------------------------------------------------------------------- /t/t5004/big-pack.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t5004/big-pack.zip -------------------------------------------------------------------------------- /t/t8005/euc-japan.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t8005/euc-japan.txt -------------------------------------------------------------------------------- /git-gui/lib/git-gui.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/git-gui/lib/git-gui.ico -------------------------------------------------------------------------------- /t/chainlint/close-nested-and-parent-together.expect: -------------------------------------------------------------------------------- 1 | 2 (cd foo && 2 | 3 (bar && 3 | 4 baz)) 4 | -------------------------------------------------------------------------------- /t/chainlint/exit-subshell.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo || exit 1 3 | 4 bar && 4 | 5 baz 5 | 6 ) 6 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-close-subshell.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 cat <<-\INPUT) 3 | 4 fizz 4 | 5 INPUT 5 | -------------------------------------------------------------------------------- /t/lib-gpg/gpgsm_cert.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/lib-gpg/gpgsm_cert.p12 -------------------------------------------------------------------------------- /t/t0013/shattered-1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t0013/shattered-1.pdf -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--patch-with-raw_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --patch-with-raw initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty=oneline_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty=oneline initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_--stat_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty --stat initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-bashism-style-function: -------------------------------------------------------------------------------- 1 | function RIGHT { 2 | : 3 | echo 'ChangeMe' 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-mixed-style-compact: -------------------------------------------------------------------------------- 1 | function RIGHT(){ 2 | : 3 | echo 'ChangeMe' 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-posix-style-complete-line-capture: -------------------------------------------------------------------------------- 1 | func() { # RIGHT 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/bash-posix-style-single-command-function: -------------------------------------------------------------------------------- 1 | RIGHT() echo "hello" 2 | 3 | ChangeMe 4 | -------------------------------------------------------------------------------- /t/t4018/cpp-function-returning-global-type: -------------------------------------------------------------------------------- 1 | ::Item get::it::RIGHT() 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/elixir-macro: -------------------------------------------------------------------------------- 1 | defmacro foo(RIGHT) do 2 | # Code 3 | # Code 4 | ChangeMe 5 | end 6 | -------------------------------------------------------------------------------- /t/t4018/ini-section-noindent: -------------------------------------------------------------------------------- 1 | [RIGHT] 2 | # comment 3 | ; comment 4 | name = value 5 | ChangeMe 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-class: -------------------------------------------------------------------------------- 1 | class RIGHT { 2 | //comment 3 | //comment 4 | return ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-enum-class: -------------------------------------------------------------------------------- 1 | enum class RIGHT{ 2 | // Left 3 | // a comment 4 | ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/matlab-octave-section-2: -------------------------------------------------------------------------------- 1 | ## RIGHT section 2 | # this is octave script 3 | ChangeMe = 1; 4 | -------------------------------------------------------------------------------- /t/t4018/php-abstract-class: -------------------------------------------------------------------------------- 1 | abstract class RIGHT 2 | { 3 | const FOO = 'ChangeMe'; 4 | } 5 | -------------------------------------------------------------------------------- /t/t5100/msg0008: -------------------------------------------------------------------------------- 1 | >Here is an empty patch from A U Thor. 2 | 3 | Hey you forgot the patch! 4 | 5 | -------------------------------------------------------------------------------- /t/t5319/no-objects.midx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t5319/no-objects.midx -------------------------------------------------------------------------------- /t/t5515/fetch.main_.._.git: -------------------------------------------------------------------------------- 1 | # main ../.git 2 | 0567da4d5edd2ff4bb292a465ba9e64dcad9536b ../ 3 | -------------------------------------------------------------------------------- /t/t5801/git-remote-nourl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exec git-remote-testgit "$1" "$NOURL_UPSTREAM" 4 | -------------------------------------------------------------------------------- /t/t7500/add-signed-off: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Signed-off-by: foo " >> "$1" 3 | exit 0 4 | -------------------------------------------------------------------------------- /templates/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /.github/macos-installer/assets/etc/gitconfig.osxkeychain: -------------------------------------------------------------------------------- 1 | [credential] 2 | helper = osxkeychain 3 | -------------------------------------------------------------------------------- /Documentation/docinfo-html.in: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /compat/vcbuild/include/sys/param.h: -------------------------------------------------------------------------------- 1 | /* Intentionally empty file to support building git with MSVC */ 2 | -------------------------------------------------------------------------------- /compat/vcbuild/include/sys/time.h: -------------------------------------------------------------------------------- 1 | /* Intentionally empty file to support building git with MSVC */ 2 | -------------------------------------------------------------------------------- /contrib/buildsystems/git-version.in: -------------------------------------------------------------------------------- 1 | @GIT_MAJOR_VERSION@.@GIT_MINOR_VERSION@.@GIT_MICRO_VERSION@ 2 | -------------------------------------------------------------------------------- /gitweb/static/git-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/gitweb/static/git-logo.png -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--patch-with-stat_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --patch-with-stat initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_--summary_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty --summary initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/bash-bashism-style-whitespace: -------------------------------------------------------------------------------- 1 | function RIGHT ( ) { 2 | 3 | ChangeMe 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-c++-function: -------------------------------------------------------------------------------- 1 | Item RIGHT::DoSomething( Args with_spaces ) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-function-returning-nested: -------------------------------------------------------------------------------- 1 | get::Item get::it::RIGHT() 2 | { 3 | ChangeMe; 4 | } 5 | 6 | -------------------------------------------------------------------------------- /t/t4018/cpp-operator-definition: -------------------------------------------------------------------------------- 1 | Value operator+(Value LEFT, Value RIGHT) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/kotlin-fun: -------------------------------------------------------------------------------- 1 | fun RIGHT(){ 2 | //a comment 3 | //b comment 4 | return ChangeMe() 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-public-class: -------------------------------------------------------------------------------- 1 | public class RIGHT{ 2 | //comment1 3 | //comment2 4 | ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/matlab-octave-section-1: -------------------------------------------------------------------------------- 1 | %%% RIGHT section 2 | # this is octave script 3 | ChangeMe = 1; 4 | -------------------------------------------------------------------------------- /t/t4034/fortran/pre: -------------------------------------------------------------------------------- 1 | print *, "Hello World!" 2 | 3 | DO10I = 1,10 4 | DO10I = 1,10 5 | DO10I = 1,10 6 | -------------------------------------------------------------------------------- /t/t4034/tex/pre: -------------------------------------------------------------------------------- 1 | \section{Something} 2 | \emph{Macro style} 3 | {\em State toggle style} 4 | \\[1em] 5 | -------------------------------------------------------------------------------- /t/t5100/quoted-cr-msg: -------------------------------------------------------------------------------- 1 | On different distro, %%pytest is suffixed with different patterns.%% 2 | %% 3 | -------------------------------------------------------------------------------- /t/t7813-grep-icase-iso.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t7813-grep-icase-iso.sh -------------------------------------------------------------------------------- /gitweb/static/git-favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/gitweb/static/git-favicon.png -------------------------------------------------------------------------------- /t/.gitignore: -------------------------------------------------------------------------------- 1 | /trash directory* 2 | /test-results 3 | /.prove 4 | /chainlinttmp 5 | /mesontmp 6 | /out/ 7 | -------------------------------------------------------------------------------- /t/chainlint/blank-line.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 3 | 4 nothing && 4 | 5 5 | 6 something 6 | 7 7 | 8 8 | 9 ) 9 | -------------------------------------------------------------------------------- /t/chainlint/p4-filespec.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 p4 print -1 //depot/fiddle#42 >file && 3 | 4 foobar 4 | 5 ) 5 | -------------------------------------------------------------------------------- /t/lib-diff/test-binary-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/lib-diff/test-binary-1.png -------------------------------------------------------------------------------- /t/lib-diff/test-binary-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/lib-diff/test-binary-2.png -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty=oneline_-p_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty=oneline -p initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/cpp-class-constructor-mem-init: -------------------------------------------------------------------------------- 1 | Item::Item(int RIGHT) : 2 | member(0) 3 | { 4 | ChangeMe; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/cpp-class-definition-derived: -------------------------------------------------------------------------------- 1 | class RIGHT : 2 | public Baseclass 3 | { 4 | int ChangeMe; 5 | }; 6 | -------------------------------------------------------------------------------- /t/t4018/cpp-function-returning-pointer: -------------------------------------------------------------------------------- 1 | const char *get_it_RIGHT(char *ptr) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-function-returning-reference: -------------------------------------------------------------------------------- 1 | string& get::it::RIGHT(char *ptr) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/cpp-template-function-definition: -------------------------------------------------------------------------------- 1 | template int RIGHT(T arg) 2 | { 3 | ChangeMe; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/kotlin-sealed-class: -------------------------------------------------------------------------------- 1 | sealed class RIGHT { 2 | // a comment 3 | // b comment 4 | ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4034/html/pre: -------------------------------------------------------------------------------- 1 | content 2 | content 3 | content &entity; 4 | -------------------------------------------------------------------------------- /t/t5003/infozip-symlinks.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t5003/infozip-symlinks.zip -------------------------------------------------------------------------------- /compat/sha1-chunked.h: -------------------------------------------------------------------------------- 1 | 2 | int git_SHA1_Update_Chunked(platform_SHA_CTX *c, const void *data, size_t len); 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--dirstat_initial_rearrange: -------------------------------------------------------------------------------- 1 | $ git diff --dirstat initial rearrange 2 | 100.0% dir/ 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--dirstat_master~1_master~2: -------------------------------------------------------------------------------- 1 | $ git diff --dirstat master~1 master~2 2 | 40.0% dir/ 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/bash-bashism-style-complete-line-capture: -------------------------------------------------------------------------------- 1 | function myfunc # RIGHT 2 | { 3 | echo 'ChangeMe' 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/css-class-selector: -------------------------------------------------------------------------------- 1 | .RIGHT { 2 | background : #000; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/css-id-selector: -------------------------------------------------------------------------------- 1 | #RIGHT { 2 | background : #000; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/css-root-selector: -------------------------------------------------------------------------------- 1 | :RIGHT { 2 | background : #000; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/elixir-function: -------------------------------------------------------------------------------- 1 | def function(RIGHT, arg) do 2 | # comment 3 | # comment 4 | ChangeMe 5 | end 6 | -------------------------------------------------------------------------------- /t/t4018/fortran-external-subroutine: -------------------------------------------------------------------------------- 1 | subroutine RIGHT 2 | 3 | real ChangeMe 4 | 5 | end subroutine RIGHT 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-inheritace-class: -------------------------------------------------------------------------------- 1 | open class RIGHT{ 2 | // a comment 3 | // b comment 4 | // ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-inline-class: -------------------------------------------------------------------------------- 1 | value class RIGHT(Args){ 2 | // a comment 3 | // b comment 4 | ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/kotlin-interface: -------------------------------------------------------------------------------- 1 | interface RIGHT{ 2 | //another comment 3 | //another comment 4 | //ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/matlab-class-definition: -------------------------------------------------------------------------------- 1 | classdef RIGHT 2 | properties 3 | ChangeMe 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /t/t4018/matlab-section: -------------------------------------------------------------------------------- 1 | %% RIGHT section 2 | % this is understood by both matlab and octave 3 | ChangeMe = 1; 4 | -------------------------------------------------------------------------------- /t/t4018/python-class: -------------------------------------------------------------------------------- 1 | class RIGHT(int, str): 2 | # comment 3 | # another comment 4 | # ChangeMe 5 | -------------------------------------------------------------------------------- /t/t4018/python-def: -------------------------------------------------------------------------------- 1 | def RIGHT(pi: int = 3.14): 2 | while True: 3 | break 4 | return ChangeMe() 5 | -------------------------------------------------------------------------------- /t/t4034/fortran/post: -------------------------------------------------------------------------------- 1 | print *, "Hello World?" 2 | 3 | DO10I = 1,10 4 | DO 10 I = 1,10 5 | DO 1 0 I = 1,10 6 | -------------------------------------------------------------------------------- /t/t4100/t-apply-8.expect: -------------------------------------------------------------------------------- 1 | t/t4100-apply-stat.sh | 2 +- 2 | 1 file changed, 1 insertion(+), 1 deletion(-) 3 | -------------------------------------------------------------------------------- /t/t4100/t-apply-9.expect: -------------------------------------------------------------------------------- 1 | t/t4100-apply-stat.sh | 2 +- 2 | 1 file changed, 1 insertion(+), 1 deletion(-) 3 | -------------------------------------------------------------------------------- /t/t5100/quoted-from.expect: -------------------------------------------------------------------------------- 1 | >From the depths of history, we are stuck with the 2 | flaky mbox format. 3 | 4 | -------------------------------------------------------------------------------- /t/t5515/fetch.br-unconfig_.._.git: -------------------------------------------------------------------------------- 1 | # br-unconfig ../.git 2 | 0567da4d5edd2ff4bb292a465ba9e64dcad9536b ../ 3 | -------------------------------------------------------------------------------- /t/t7500/edit-content: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -e "s/intermediate/edited/g" <"$1" >"$1-" 3 | mv "$1-" "$1" 4 | exit 0 5 | -------------------------------------------------------------------------------- /compiler-tricks/not-constant.c: -------------------------------------------------------------------------------- 1 | #include 2 | int false_but_the_compiler_does_not_know_it_ = 0; 3 | -------------------------------------------------------------------------------- /perl/header_templates/fixed_prefix.template.pl: -------------------------------------------------------------------------------- 1 | use lib (split(/@PATHSEP@/, $ENV{GITPERLLIB} || '@INSTLIBDIR@')); 2 | -------------------------------------------------------------------------------- /t/t4013/diff.config_format.subjectprefix_DIFFERENT_PREFIX: -------------------------------------------------------------------------------- 1 | $ git config format.subjectprefix DIFFERENT_PREFIX 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_--patch-with-raw_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty --patch-with-raw initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_--patch-with-stat_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty --patch-with-stat initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty_--stat_--summary_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty --stat --summary initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--dirstat_--cc_master~1_master: -------------------------------------------------------------------------------- 1 | $ git diff --dirstat --cc master~1 master 2 | 40.0% dir/ 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/elixir-do-not-pick-end: -------------------------------------------------------------------------------- 1 | defmodule RIGHT do 2 | end 3 | # 4 | # 5 | # ChangeMe; do not pick up 'end' line 6 | -------------------------------------------------------------------------------- /t/t4018/java-enum-constant: -------------------------------------------------------------------------------- 1 | private enum RIGHT { 2 | ONE, 3 | TWO, 4 | THREE, 5 | ChangeMe 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/r-noindent: -------------------------------------------------------------------------------- 1 | RIGHT <- function(a, b) { 2 | c = mean(a, b) 3 | d = c + 2 4 | ChangeMe() 5 | return (c) 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/scheme-def: -------------------------------------------------------------------------------- 1 | (def (some-func x y z) RIGHT 2 | (let ((a x) 3 | (b y)) 4 | (ChangeMe a b))) 5 | -------------------------------------------------------------------------------- /t/t4034/tex/post: -------------------------------------------------------------------------------- 1 | \section{Something new} 2 | \textbf{Macro style} 3 | {\bfseries State toggle style} 4 | \\[1cm] 5 | -------------------------------------------------------------------------------- /contrib/credential/meson.build: -------------------------------------------------------------------------------- 1 | foreach helper : get_option('credential_helpers') 2 | subdir(helper) 3 | endforeach 4 | -------------------------------------------------------------------------------- /contrib/credential/netrc/test.git-config-gpg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo machine git-config-gpg login username password password 3 | -------------------------------------------------------------------------------- /t/chainlint/broken-chain.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo && 3 | 4 bar ?!LINT: missing '&&'?! 4 | 5 baz && 5 | 6 wop 6 | 7 ) 7 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_--name-status_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --name-status dir2 dir 2 | A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/bash-nested-functions: -------------------------------------------------------------------------------- 1 | outer() { 2 | RIGHT() { 3 | : 4 | echo 'ChangeMe' 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/cpp-struct-single-line: -------------------------------------------------------------------------------- 1 | void wrong() 2 | { 3 | } 4 | 5 | struct RIGHT_iterator_tag {}; 6 | 7 | int ChangeMe; 8 | -------------------------------------------------------------------------------- /t/t4018/elixir-private-function: -------------------------------------------------------------------------------- 1 | defp function(RIGHT, arg) do 2 | # comment 3 | # comment 4 | ChangeMe 5 | end 6 | -------------------------------------------------------------------------------- /t/t4018/ini-section: -------------------------------------------------------------------------------- 1 | [RIGHT] 2 | # comment 3 | ; comment 4 | name = value 5 | ChangeMe 6 | -------------------------------------------------------------------------------- /t/t4018/ini-section-same-line: -------------------------------------------------------------------------------- 1 | [RIGHT] name = value 2 | # comment 3 | ; comment 4 | ChangeMe 5 | -------------------------------------------------------------------------------- /t/t4101/diff.0-2: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,2 @@ 4 | a 5 | -b 6 | +b 7 | \ No newline at end of file 8 | -------------------------------------------------------------------------------- /t/t4101/diff.2-0: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,2 @@ 4 | a 5 | -b 6 | \ No newline at end of file 7 | +b 8 | -------------------------------------------------------------------------------- /t/t4101/diff.2-3: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,3 @@ 4 | a 5 | +c 6 | b 7 | \ No newline at end of file 8 | -------------------------------------------------------------------------------- /t/t4101/diff.3-2: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,2 @@ 4 | a 5 | -c 6 | b 7 | \ No newline at end of file 8 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0002: -------------------------------------------------------------------------------- 1 | Author: Olle Järnefors 2 | Email: ojarnef@admin.kth.se 3 | Subject: Time for ISO 10646? 4 | 5 | -------------------------------------------------------------------------------- /t/t5515/fetch.main_.._.git_one: -------------------------------------------------------------------------------- 1 | # main ../.git one 2 | 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 3 | -------------------------------------------------------------------------------- /t/t3900/ISO-2022-JP.txt: -------------------------------------------------------------------------------- 1 | $B$O$l$R$[$U(B 2 | 3 | $B$7$F$$$k$N$,!"$$$k$N$G!#(B 4 | $B_@IM$[$l$W$j$]$l$^$S$0$j$m$X!#(B 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--dirstat-by-file_initial_rearrange: -------------------------------------------------------------------------------- 1 | $ git diff --dirstat-by-file initial rearrange 2 | 100.0% dir/ 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_--name-status_--_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --name-status -- dir2 dir 2 | A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/elixir-protocol-implementation: -------------------------------------------------------------------------------- 1 | defimpl RIGHT do 2 | # Docs 3 | # Docs 4 | def foo(ChangeMe), do: :ok 5 | end 6 | -------------------------------------------------------------------------------- /t/t4018/fountain-scene: -------------------------------------------------------------------------------- 1 | EXT. STREET RIGHT OUTSIDE - DAY 2 | 3 | CHARACTER 4 | You didn't say the magic phrase, "ChangeMe". 5 | -------------------------------------------------------------------------------- /t/t4018/python-async-def: -------------------------------------------------------------------------------- 1 | async def RIGHT(pi: int = 3.14): 2 | while True: 3 | break 4 | return ChangeMe() 5 | -------------------------------------------------------------------------------- /t/t4018/rust-struct: -------------------------------------------------------------------------------- 1 | #[derive(Debug)] 2 | pub(super) struct RIGHT<'a> { 3 | name: &'a str, 4 | age: ChangeMe, 5 | } 6 | -------------------------------------------------------------------------------- /t/t4101/diff.0-3: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,3 @@ 4 | a 5 | -b 6 | +c 7 | +b 8 | \ No newline at end of file 9 | -------------------------------------------------------------------------------- /t/t4101/diff.1-2: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,2 @@ 4 | a 5 | -b 6 | -c 7 | +b 8 | \ No newline at end of file 9 | -------------------------------------------------------------------------------- /t/t4101/diff.1-3: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,3 @@ 4 | a 5 | -b 6 | c 7 | +b 8 | \ No newline at end of file 9 | -------------------------------------------------------------------------------- /t/t4101/diff.2-1: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,2 +1,3 @@ 4 | a 5 | -b 6 | \ No newline at end of file 7 | +b 8 | +c 9 | -------------------------------------------------------------------------------- /t/t4101/diff.3-0: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,2 @@ 4 | a 5 | -c 6 | -b 7 | \ No newline at end of file 8 | +b 9 | -------------------------------------------------------------------------------- /t/t4101/diff.3-1: -------------------------------------------------------------------------------- 1 | --- a/frotz 2 | +++ b/frotz 3 | @@ -1,3 +1,3 @@ 4 | a 5 | +b 6 | c 7 | -b 8 | \ No newline at end of file 9 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0003: -------------------------------------------------------------------------------- 1 | Author: Patrik Fältström 2 | Email: paf@nada.kth.se 3 | Subject: RFC-HDR care and feeding 4 | 5 | -------------------------------------------------------------------------------- /t/t5559-http-fetch-smart-http2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | HTTP_PROTO=HTTP/2 4 | LIB_HTTPD_SSL=1 5 | . ./t5551-http-fetch-smart.sh 6 | -------------------------------------------------------------------------------- /t/t7500/add-comments: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "# this is a new comment" >> "$1" 3 | echo "# and so is this" >> "$1" 4 | exit 0 5 | -------------------------------------------------------------------------------- /t/t7500/add-content-and-comment: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "commit message" >> "$1" 3 | echo "# comment" >> "$1" 4 | exit 0 5 | 6 | -------------------------------------------------------------------------------- /contrib/coccinelle/xstrdup_or_null.cocci: -------------------------------------------------------------------------------- 1 | @@ 2 | expression E; 3 | @@ 4 | - xstrdup(absolute_path(E)) 5 | + absolute_pathdup(E) 6 | -------------------------------------------------------------------------------- /contrib/credential/netrc/test.command-option-gpg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo machine command-option-gpg login username password password 3 | -------------------------------------------------------------------------------- /contrib/libgit-rs/build.rs: -------------------------------------------------------------------------------- 1 | pub fn main() { 2 | let ac = autocfg::new(); 3 | ac.emit_has_path("std::ffi::c_char"); 4 | } 5 | -------------------------------------------------------------------------------- /t/chainlint/block-comment.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 { 3 | 4 # show a 4 | 5 echo a && 5 | 6 # show b 6 | 7 echo b 7 | 8 } 8 | 9 ) 9 | -------------------------------------------------------------------------------- /t/chainlint/command-substitution-subsubshell.expect: -------------------------------------------------------------------------------- 1 | 2 OUT=$( ((large_git 1>&3) | :) 3>&1 ) && 2 | 3 test_match_signal 13 "$OUT" 3 | -------------------------------------------------------------------------------- /t/chainlint/cuddled-loop.expect: -------------------------------------------------------------------------------- 1 | 2 ( while read x 2 | 3 do foobar bop || exit 1 3 | 4 done current && 2 | 3 cat >expected <<\EOF && 3 | 4 EOF 4 | 5 test_output 5 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-double.expect: -------------------------------------------------------------------------------- 1 | 8 echo "actual test commands" ?!LINT: missing '&&'?! 2 | 9 echo "that should be checked" 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty=oneline_--patch-with-raw_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty=oneline --patch-with-raw initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4018/css-attribute-value-selector: -------------------------------------------------------------------------------- 1 | [class*="RIGHT"] { 2 | background : #000; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/css-common: -------------------------------------------------------------------------------- 1 | RIGHT label.control-label { 2 | margin-top: 10px!important; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/php-trait: -------------------------------------------------------------------------------- 1 | trait RIGHT 2 | { 3 | public function foo($ChangeMe) 4 | { 5 | return 'foo'; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /t/t4018/r-indent: -------------------------------------------------------------------------------- 1 | RIGHT <- function(a, b) { 2 | c = mean(a, b) 3 | d = c + 2 4 | ChangeMe() 5 | return (d) 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/rust-impl: -------------------------------------------------------------------------------- 1 | impl<'a, T: AsRef<[u8]>> std::RIGHT for Git<'a> { 2 | 3 | pub fn ChangeMe(&self) -> () { 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/scheme-define-variant: -------------------------------------------------------------------------------- 1 | (define* (some-func x y z) RIGHT 2 | (let ((a x) 3 | (b y)) 4 | (ChangeMe a b))) 5 | -------------------------------------------------------------------------------- /t/t4018/scheme-top-level-define: -------------------------------------------------------------------------------- 1 | (define (some-func x y z) RIGHT 2 | (let ((a x) 3 | (b y)) 4 | (ChangeMe a b))) 5 | -------------------------------------------------------------------------------- /t/t4051/dummy.c: -------------------------------------------------------------------------------- 1 | 2 | static int dummy(void) // Begin of dummy 3 | { 4 | int rc = 0; 5 | 6 | return rc; 7 | } // End of dummy 8 | -------------------------------------------------------------------------------- /t/t5100/info0015: -------------------------------------------------------------------------------- 1 | Author: 2 | Email: 3 | Subject: check bogus body header (from) 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/nul-plain: -------------------------------------------------------------------------------- 1 | From nobody Mon Sep 17 00:00:00 2001 2 | 3 | --- 4 | diff --git a/foo b/foo 5 | Some strange test 6 | 7 | -------------------------------------------------------------------------------- /t/t5515/fetch.br-unconfig_.._.git_one: -------------------------------------------------------------------------------- 1 | # br-unconfig ../.git one 2 | 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 3 | -------------------------------------------------------------------------------- /unimplemented.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo >&2 "fatal: git was built without support for $(basename $0) (@REASON@)." 4 | exit 128 5 | -------------------------------------------------------------------------------- /compat/msvc.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSVC__HEAD 2 | #define __MSVC__HEAD 3 | 4 | #include "msvc-posix.h" 5 | #include "mingw.h" 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--pretty=oneline_--patch-with-stat_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --pretty=oneline --patch-with-stat initial 2 | $ 3 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--summary_initial_mode: -------------------------------------------------------------------------------- 1 | $ git diff-tree --summary initial mode 2 | mode change 100644 => 100755 file0 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/css-colon-selector: -------------------------------------------------------------------------------- 1 | RIGHT a:hover { 2 | margin-top: 3 | 10px!important; 4 | border : 10px ChangeMe #C6C6C6; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/php-method: -------------------------------------------------------------------------------- 1 | class Klass 2 | { 3 | public static function RIGHT() 4 | { 5 | return 'ChangeMe'; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /t/t4018/rust-macro-rules: -------------------------------------------------------------------------------- 1 | macro_rules! RIGHT { 2 | () => { 3 | // a comment 4 | let x = ChangeMe; 5 | }; 6 | } 7 | -------------------------------------------------------------------------------- /t/t5100/.gitattributes: -------------------------------------------------------------------------------- 1 | msg* encoding=UTF-8 2 | info* encoding=UTF-8 3 | rfc2047-info-* encoding=UTF-8 4 | sample.mbox encoding=UTF-8 5 | -------------------------------------------------------------------------------- /t/t5100/info0006: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: a commit. 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0009: -------------------------------------------------------------------------------- 1 | Author: F U Bar 2 | Email: f.u.bar@example.com 3 | Subject: updates 4 | Date: Mon, 17 Sep 2001 00:00:00 +0900 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0013: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: a patch 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0014: -------------------------------------------------------------------------------- 1 | Author: Junio Hamano 2 | Email: junkio@cox.net 3 | Subject: BLAH ONE 4 | Date: Thu, 20 Aug 2009 17:18:22 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0016: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: check bogus body header (date) 4 | Date: bogus 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/patch0018: -------------------------------------------------------------------------------- 1 | diff --git a/foo b/foo 2 | index e69de29..d95f3ad 100644 3 | --- a/foo 4 | +++ b/foo 5 | @@ -0,0 +1 @@ 6 | +content 7 | -------------------------------------------------------------------------------- /t/t5100/quoted-cr-info: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: mail@example.com 3 | Subject: sample 4 | Date: Mon, 3 Aug 2020 22:40:55 +0700 5 | 6 | -------------------------------------------------------------------------------- /t/t9350/broken-iso-8859-7-commit-message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t9350/broken-iso-8859-7-commit-message.txt -------------------------------------------------------------------------------- /t/t9350/simple-iso-8859-7-commit-message.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/git/HEAD/t/t9350/simple-iso-8859-7-commit-message.txt -------------------------------------------------------------------------------- /compat/.gitattributes: -------------------------------------------------------------------------------- 1 | /zlib-uncompress2.c whitespace=-indent-with-non-tab,-trailing-space 2 | /mimalloc/**/* whitespace=-trailing-space 3 | -------------------------------------------------------------------------------- /contrib/libgit-sys/README.md: -------------------------------------------------------------------------------- 1 | # libgit-sys 2 | 3 | A small proof-of-concept crate showing how to provide a Rust FFI to Git 4 | internals. 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_--raw_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --raw dir2 dir 2 | :000000 100644 0000000... 0000000... A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/bash-missing-parentheses: -------------------------------------------------------------------------------- 1 | function RIGHT { 2 | functionInvalidSyntax { 3 | : 4 | echo 'ChangeMe' 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/elixir-ex-unit-test: -------------------------------------------------------------------------------- 1 | defmodule Test do 2 | test "RIGHT" do 3 | assert true == true 4 | assert ChangeMe 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /t/t4018/rust-fn: -------------------------------------------------------------------------------- 1 | pub(self) fn RIGHT(x: &[T]) where T: Debug { 2 | let _ = x; 3 | // a comment 4 | let a = ChangeMe; 5 | } 6 | -------------------------------------------------------------------------------- /t/t5100/info0002: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: another patch 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0003: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: third patch 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0007: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: another patch 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0011: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: Xyzzy 4 | Date: Fri, 8 Aug 2008 13:08:37 +0200 (CEST) 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0017: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: A E I O U 4 | Date: Mon, 17 Sep 2012 14:23:44 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/patch0017: -------------------------------------------------------------------------------- 1 | diff --git a/foo b/foo 2 | index e69de29..d95f3ad 100644 3 | --- a/foo 4 | +++ b/foo 5 | @@ -0,0 +1 @@ 6 | +New content 7 | -------------------------------------------------------------------------------- /t/t7500/add-whitespaced-content: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | sed -e 's/|$//' >>"$1" <<\EOF 3 | 4 | | 5 | commit message | 6 | 7 | EOF 8 | exit 0 9 | -------------------------------------------------------------------------------- /common-init.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_INIT_H 2 | #define COMMON_INIT_H 3 | 4 | void init_git(const char **argv); 5 | 6 | #endif /* COMMON_INIT_H */ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff_--no-index_--raw_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --raw dir2 dir 2 | :000000 100644 0000000 0000000 A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/bash-bashism-style-compact: -------------------------------------------------------------------------------- 1 | function RIGHT { 2 | function InvalidSyntax{ 3 | : 4 | echo 'ChangeMe' 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/css-brace-in-col-1: -------------------------------------------------------------------------------- 1 | RIGHT label.control-label 2 | { 3 | margin-top: 10px!important; 4 | border : 10px ChangeMe #C6C6C6; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/css-short-selector-list: -------------------------------------------------------------------------------- 1 | label.control, div ul#RIGHT { 2 | margin-top: 10px!important; 3 | border : 10px ChangeMe #C6C6C6; 4 | } 5 | -------------------------------------------------------------------------------- /t/t4018/java-class-brace-on-separate-line: -------------------------------------------------------------------------------- 1 | class RIGHT 2 | { 3 | static int ONE; 4 | static int TWO; 5 | static int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/python-indented-class: -------------------------------------------------------------------------------- 1 | if TYPE_CHECKING: 2 | class RIGHT: 3 | # comment 4 | # another comment 5 | # ChangeMe 6 | -------------------------------------------------------------------------------- /t/t4018/scheme-local-define: -------------------------------------------------------------------------------- 1 | (define (higher-order) 2 | (define local-function RIGHT 3 | (lambda (x) 4 | (car "this is" "ChangeMe")))) 5 | -------------------------------------------------------------------------------- /t/t4034/html/post: -------------------------------------------------------------------------------- 1 | added content 2 | changed 3 | content &newentity; 4 | -------------------------------------------------------------------------------- /t/t5100/0002mboxrd: -------------------------------------------------------------------------------- 1 | >From unchanged 2 | From also unchanged 3 | no trailing space, no escaping necessary and '>' was intended: 4 | >From 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0008: -------------------------------------------------------------------------------- 1 | Author: Junio C Hamano 2 | Email: junio@kernel.org 3 | Subject: another patch 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0001: -------------------------------------------------------------------------------- 1 | Author: Keith Moore 2 | Email: moore@cs.utk.edu 3 | Subject: If you can read this you understand the example. 4 | 5 | -------------------------------------------------------------------------------- /compat/msvc.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | #include "win32.h" 3 | #include 4 | #include "../strbuf.h" 5 | 6 | #include "mingw.c" 7 | -------------------------------------------------------------------------------- /t/chainlint/comment.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 # comment 1 3 | 4 nothing && 4 | 5 # comment 2 5 | 6 something 6 | 7 # comment 3 7 | 8 # comment 4 8 | 9 ) 9 | -------------------------------------------------------------------------------- /t/chainlint/cuddled-if-then-else.expect: -------------------------------------------------------------------------------- 1 | 2 (if test -z ""; then 2 | 3 echo empty 3 | 4 else 4 | 5 echo bizzy 5 | 6 fi) && 6 | 7 echo foobar 7 | -------------------------------------------------------------------------------- /t/lib-httpd/error-smart-http.sh: -------------------------------------------------------------------------------- 1 | echo "Content-Type: application/x-git-upload-pack-advertisement" 2 | echo 3 | printf "%s" "0019ERR server-side error" 4 | -------------------------------------------------------------------------------- /t/t4018/cpp-skip-labels: -------------------------------------------------------------------------------- 1 | void RIGHT (void) 2 | { 3 | repeat: // C++ comment 4 | next: /* C comment */ 5 | do_something(); 6 | 7 | ChangeMe; 8 | } 9 | -------------------------------------------------------------------------------- /t/t4018/css-prop-sans-indent: -------------------------------------------------------------------------------- 1 | RIGHT, label.control-label { 2 | margin-top: 10px!important; 3 | padding: 0; 4 | border : 10px ChangeMe #C6C6C6; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/css-trailing-space: -------------------------------------------------------------------------------- 1 | RIGHT label.control-label { 2 | margin:10px; 3 | padding:10px; 4 | border : 10px ChangeMe #C6C6C6; 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/dts-root: -------------------------------------------------------------------------------- 1 | / { RIGHT /* Technically just supposed to be a slash and brace */ 2 | #size-cells = <1>; 3 | 4 | ChangeMe = <0xffeedd00>; 5 | }; 6 | -------------------------------------------------------------------------------- /t/t4018/php-final-method: -------------------------------------------------------------------------------- 1 | class Klass 2 | { 3 | final public function RIGHT(): string 4 | { 5 | return 'ChangeMe'; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /t/t5100/patch0015: -------------------------------------------------------------------------------- 1 | --- 2 | diff --git a/foo b/foo 3 | index e69de29..d95f3ad 100644 4 | --- a/foo 5 | +++ b/foo 6 | @@ -0,0 +1 @@ 7 | +content 8 | 9 | -------------------------------------------------------------------------------- /t/t5100/patch0016: -------------------------------------------------------------------------------- 1 | --- 2 | diff --git a/foo b/foo 3 | index e69de29..d95f3ad 100644 4 | --- a/foo 5 | +++ b/foo 6 | @@ -0,0 +1 @@ 7 | +content 8 | 9 | -------------------------------------------------------------------------------- /Documentation/config/clean.adoc: -------------------------------------------------------------------------------- 1 | clean.requireForce:: 2 | A boolean to make git-clean refuse to delete files unless -f 3 | is given. Defaults to true. 4 | -------------------------------------------------------------------------------- /contrib/meson.build: -------------------------------------------------------------------------------- 1 | foreach feature : get_option('contrib') 2 | subdir(feature) 3 | endforeach 4 | 5 | subdir('coccinelle') 6 | subdir('credential') 7 | -------------------------------------------------------------------------------- /t/chainlint/close-nested-and-parent-together.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'close-nested-and-parent-together' ' 2 | (cd foo && 3 | (bar && 4 | baz)) 5 | ' 6 | -------------------------------------------------------------------------------- /t/chainlint/for-loop-abbreviated.expect: -------------------------------------------------------------------------------- 1 | 2 for it 2 | 3 do 3 | 4 path=$(expr "$it" : ([^:]*)) && 4 | 5 git update-index --add "$path" || exit 5 | 6 done 6 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-body-indent.expect: -------------------------------------------------------------------------------- 1 | 2 echo "we should find this" ?!LINT: missing '&&'?! 2 | 3 echo "even though our heredoc has its indent stripped" 3 | -------------------------------------------------------------------------------- /t/lib-httpd/incomplete-length-upload-pack-v2-http.sh: -------------------------------------------------------------------------------- 1 | printf "Content-Type: text/%s\n" "application/x-git-upload-pack-result" 2 | echo 3 | printf "%s" "00" 4 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--stat_initial_mode: -------------------------------------------------------------------------------- 1 | $ git diff-tree --stat initial mode 2 | file0 | 0 3 | 1 file changed, 0 insertions(+), 0 deletions(-) 4 | $ 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_--raw_--abbrev=4_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --raw --abbrev=4 dir2 dir 2 | :000000 100644 0000... 0000... A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/dts-node-unitless: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1 { 3 | RIGHT { 4 | prop-array = <1>, <4>; 5 | ChangeMe = <0xffeedd00>; 6 | }; 7 | }; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4018/dts-reference: -------------------------------------------------------------------------------- 1 | &label_1 { 2 | TEST = <455>; 3 | }; 4 | 5 | &RIGHT { 6 | vendor,some-property; 7 | 8 | ChangeMe = <0x45-30>; 9 | }; 10 | -------------------------------------------------------------------------------- /t/t4018/elixir-module-func: -------------------------------------------------------------------------------- 1 | defmodule Foo do 2 | def fun(RIGHT) do 3 | # Code 4 | # Code 5 | # Code 6 | ChangeMe 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /t/t5100/0001mboxrd: -------------------------------------------------------------------------------- 1 | From the beginning, mbox should have been mboxrd 2 | >From escaped 3 | From not mangled but this line should have been escaped 4 | 5 | -------------------------------------------------------------------------------- /t/t5100/embed-from.expect: -------------------------------------------------------------------------------- 1 | Author: Commit Author 2 | Email: commit@example.com 3 | Subject: patch subject 4 | Date: Sat, 13 Sep 2014 21:13:23 -0400 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0001: -------------------------------------------------------------------------------- 1 | Author: A (zzz) U Thor (Comment) 2 | Email: a.u.thor@example.com 3 | Subject: a commit. 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/patch0018--no-inbody-headers: -------------------------------------------------------------------------------- 1 | diff --git a/foo b/foo 2 | index e69de29..d95f3ad 100644 3 | --- a/foo 4 | +++ b/foo 5 | @@ -0,0 +1 @@ 6 | +content 7 | -------------------------------------------------------------------------------- /t/t5100/rfc2047-info-0004: -------------------------------------------------------------------------------- 1 | Author: Nathaniel Borenstein (םולש ןב ילטפנ) 2 | Email: nsb@thumper.bellcore.com 3 | Subject: Test of new header generator 4 | 5 | -------------------------------------------------------------------------------- /versioncmp.h: -------------------------------------------------------------------------------- 1 | #ifndef VERSIONCMP_H 2 | #define VERSIONCMP_H 3 | 4 | int versioncmp(const char *s1, const char *s2); 5 | 6 | #endif /* VERSIONCMP_H */ 7 | -------------------------------------------------------------------------------- /Documentation/config/remotes.adoc: -------------------------------------------------------------------------------- 1 | remotes.:: 2 | The list of remotes which are fetched by "git remote update 3 | ". See linkgit:git-remote[1]. 4 | -------------------------------------------------------------------------------- /Documentation/config/revert.adoc: -------------------------------------------------------------------------------- 1 | revert.reference:: 2 | Setting this variable to true makes `git revert` behave 3 | as if the `--reference` option is given. 4 | -------------------------------------------------------------------------------- /Documentation/config/showbranch.adoc: -------------------------------------------------------------------------------- 1 | showBranch.default:: 2 | The default set of branches for linkgit:git-show-branch[1]. 3 | See linkgit:git-show-branch[1]. 4 | -------------------------------------------------------------------------------- /compat/fileno.c: -------------------------------------------------------------------------------- 1 | #define COMPAT_CODE_FILENO 2 | #include "../git-compat-util.h" 3 | 4 | int git_fileno(FILE *stream) 5 | { 6 | return fileno(stream); 7 | } 8 | -------------------------------------------------------------------------------- /git-gui/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | config.mak 3 | git-gui.tcl 4 | GIT-GUI-BUILD-OPTIONS 5 | GIT-VERSION-FILE 6 | git-gui 7 | git-gui--askpass 8 | lib/tclIndex 9 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff_--no-index_--raw_--abbrev=4_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --raw --abbrev=4 dir2 dir 2 | :000000 100644 0000 0000 A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/cpp-skip-comment-block: -------------------------------------------------------------------------------- 1 | struct item RIGHT(int i) 2 | // Do not 3 | // pick up 4 | /* these 5 | ** comments. 6 | */ 7 | { 8 | ChangeMe; 9 | } 10 | -------------------------------------------------------------------------------- /t/t4018/dts-nodes: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | RIGHT@deadf00,4000 { 4 | #size-cells = <1>; 5 | ChangeMe = <0xffeedd00>; 6 | }; 7 | }; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4018/fortran-block-data: -------------------------------------------------------------------------------- 1 | BLOCK DATA RIGHT 2 | 3 | COMMON /B/ C, ChangeMe 4 | DATA C, ChangeMe / 2.0, 6.0 / 5 | END 6 | -------------------------------------------------------------------------------- /t/t4020/diff.NUL: -------------------------------------------------------------------------------- 1 | diff --git a/file b/file 2 | index e019be0..f12ebb8 100644 3 | --- a/file 4 | +++ b/file 5 | @@ -1 +1 @@ 6 | -second 7 | +NULbetweenwords 8 | -------------------------------------------------------------------------------- /t/chainlint/exclamation.expect: -------------------------------------------------------------------------------- 1 | 2 if ! condition; then echo nope; else yep; fi && 2 | 3 test_prerequisite !MINGW && 3 | 4 mail uucp!address && 4 | 5 echo !whatever! 5 | -------------------------------------------------------------------------------- /t/chainlint/pipe.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo | 3 | 4 bar | 4 | 5 baz && 5 | 6 6 | 7 fish | 7 | 8 cow ?!LINT: missing '&&'?! 8 | 9 9 | 10 sunder 10 | 11 ) 11 | -------------------------------------------------------------------------------- /t/lib-httpd/incomplete-body-upload-pack-v2-http.sh: -------------------------------------------------------------------------------- 1 | printf "Content-Type: text/%s\n" "application/x-git-upload-pack-result" 2 | echo 3 | printf "%s%s" "0079" "45" 4 | -------------------------------------------------------------------------------- /t/t4018/cpp-skip-access-specifiers: -------------------------------------------------------------------------------- 1 | class RIGHT : public Baseclass 2 | { 3 | public: 4 | protected: 5 | private: 6 | void DoSomething(); 7 | int ChangeMe; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4018/java-class-type-parameters: -------------------------------------------------------------------------------- 1 | class RIGHT { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private A ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/kotlin-nested-fun: -------------------------------------------------------------------------------- 1 | class LEFT{ 2 | class CENTER{ 3 | fun RIGHT( a:Int){ 4 | //comment 5 | //comment 6 | ChangeMe 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /t/t4018/php-abstract-method: -------------------------------------------------------------------------------- 1 | abstract class Klass 2 | { 3 | abstract public function RIGHT(): ?string 4 | { 5 | return 'ChangeMe'; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /t/t4018/scheme-def-variant: -------------------------------------------------------------------------------- 1 | (defmethod {print point} RIGHT 2 | (lambda (self) 3 | (with ((point x y) self) 4 | (printf "{ChangeMe x:~a y:~a}~n" x y)))) 5 | -------------------------------------------------------------------------------- /t/t5100/info0018: -------------------------------------------------------------------------------- 1 | Author: Another Thor 2 | Email: a.thor@example.com 3 | Subject: This one contains a tab and a space 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.8.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.8.6 Release Notes 2 | ======================== 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.9.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.9.5 Release Notes 2 | ======================== 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /contrib/coccinelle/tests/free.res: -------------------------------------------------------------------------------- 1 | int use_FREE_AND_NULL(int *v) 2 | { 3 | FREE_AND_NULL(*v); 4 | } 5 | 6 | int need_no_if(int *v) 7 | { 8 | free(v); 9 | } 10 | -------------------------------------------------------------------------------- /t/chainlint/return-loop.expect: -------------------------------------------------------------------------------- 1 | 2 while test $i -lt $((num - 5)) 2 | 3 do 3 | 4 git notes add -m "notes for commit$i" HEAD~$i || return 1 4 | 5 i=$((i + 1)) 5 | 6 done 6 | -------------------------------------------------------------------------------- /t/t4018/css-long-selector-list: -------------------------------------------------------------------------------- 1 | p.header, 2 | label.control-label, 3 | div ul#RIGHT { 4 | margin-top: 10px!important; 5 | border : 10px ChangeMe #C6C6C6; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/dts-labels: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | label2: RIGHT { 4 | vendor,some-property; 5 | 6 | ChangeMe = <0x45-30>; 7 | }; 8 | }; 9 | }; 10 | -------------------------------------------------------------------------------- /t/t4018/dts-nodes-boolean-prop: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | RIGHT@deadf00,4000 { 4 | boolean-prop1; 5 | 6 | ChangeMe; 7 | }; 8 | }; 9 | }; 10 | -------------------------------------------------------------------------------- /t/t4018/elixir-module: -------------------------------------------------------------------------------- 1 | defmodule RIGHT do 2 | @moduledoc """ 3 | Foo bar 4 | """ 5 | 6 | def ChangeMe(a) where is_map(a) do 7 | a 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /t/t4018/golang-complex-function: -------------------------------------------------------------------------------- 1 | type Test struct { 2 | a Type 3 | } 4 | 5 | func (t *Test) RIGHT(a Type) (Type, error) { 6 | t.a = a 7 | return ChangeMe, nil 8 | } 9 | -------------------------------------------------------------------------------- /t/t4018/rust-trait: -------------------------------------------------------------------------------- 1 | unsafe trait RIGHT { 2 | fn len(&self) -> u32; 3 | fn ChangeMe(&self, n: u32) -> T; 4 | fn iter(&self, f: F) where F: Fn(T); 5 | } 6 | -------------------------------------------------------------------------------- /t/t5100/msg0018--no-inbody-headers: -------------------------------------------------------------------------------- 1 | From: Another Thor 2 | 3 | Subject: This one contains 4 | a tab 5 | and a space 6 | 7 | a commit message 8 | 9 | -------------------------------------------------------------------------------- /t/t5100/patch0015--no-inbody-headers: -------------------------------------------------------------------------------- 1 | --- 2 | diff --git a/foo b/foo 3 | index e69de29..d95f3ad 100644 4 | --- a/foo 5 | +++ b/foo 6 | @@ -0,0 +1 @@ 7 | +content 8 | 9 | -------------------------------------------------------------------------------- /t/t5100/patch0016--no-inbody-headers: -------------------------------------------------------------------------------- 1 | --- 2 | diff --git a/foo b/foo 3 | index e69de29..d95f3ad 100644 4 | --- a/foo 5 | +++ b/foo 6 | @@ -0,0 +1 @@ 7 | +content 8 | 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.4.5.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.4.5 Release Notes 2 | ========================== 3 | 4 | This contains only minor documentation fixes accumulated since 1.7.4.4. 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.10.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.10.4 Release Notes 2 | ========================= 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.11.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.11.3 Release Notes 2 | ========================= 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.12.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.12.4 Release Notes 2 | ========================= 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.13.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.13.5 Release Notes 2 | ========================= 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.14.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.14.1 Release Notes 2 | ========================= 3 | 4 | This release forward-ports the fix for "ssh://..." URL from Git v2.7.6 5 | -------------------------------------------------------------------------------- /t/chainlint/block-comment.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'block-comment' ' 2 | ( 3 | { 4 | # show a 5 | echo a && 6 | # show b 7 | echo b 8 | } 9 | ) 10 | ' 11 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-multi-line-string.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 cat <<-\TXT && echo "multi-line 3 | 4 string" ?!LINT: missing '&&'?! 4 | 5 fizzle 5 | 6 TXT 6 | 7 bap 7 | 8 ) 8 | -------------------------------------------------------------------------------- /t/chainlint/if-condition-split.expect: -------------------------------------------------------------------------------- 1 | 2 if bob && 2 | 3 marcia || 3 | 4 kevin 4 | 5 then 5 | 6 echo "nomads" ?!LINT: missing '&&'?! 6 | 7 echo "for sure" 7 | 8 fi 8 | -------------------------------------------------------------------------------- /t/t4018/golang-long-func: -------------------------------------------------------------------------------- 1 | func RIGHT(aVeryVeryVeryLongVariableName AVeryVeryVeryLongType, 2 | anotherLongVariableName AnotherLongType) { 3 | a := 5 4 | b := ChangeMe 5 | } 6 | -------------------------------------------------------------------------------- /t/t4018/markdown-heading-indented: -------------------------------------------------------------------------------- 1 | Indented headings are allowed, as long as the indent is no more than 3 spaces. 2 | 3 | ### RIGHT 4 | 5 | - something 6 | - ChangeMe 7 | -------------------------------------------------------------------------------- /t/t4018/python-indented-def: -------------------------------------------------------------------------------- 1 | class Foo: 2 | def RIGHT(self, x: int): 3 | return [ 4 | 1, 5 | 2, 6 | ChangeMe, 7 | ] 8 | -------------------------------------------------------------------------------- /t/t5100/info-from.expect: -------------------------------------------------------------------------------- 1 | Author: bare@example.com 2 | Email: bare@example.com 3 | Subject: testing bare address in from header 4 | Date: Sun, 25 May 2008 00:38:18 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0005: -------------------------------------------------------------------------------- 1 | Author: David Kågedal 2 | Email: davidk@lysator.liu.se 3 | Subject: Fixed two bugs in git-cvsimport-script. 4 | Date: Mon, 15 Aug 2005 20:18:25 +0200 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0012: -------------------------------------------------------------------------------- 1 | Author: Dmitriy Blinov 2 | Email: bda@mnsspb.ru 3 | Subject: Изменён список пакетов необходимых для сборки 4 | Date: Wed, 12 Nov 2008 17:54:41 +0300 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0015--no-inbody-headers: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: check bogus body header (from) 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0016--no-inbody-headers: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: check bogus body header (date) 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0018--no-inbody-headers: -------------------------------------------------------------------------------- 1 | Author: A U Thor 2 | Email: a.u.thor@example.com 3 | Subject: check multiline inbody headers 4 | Date: Fri, 9 Jun 2006 00:44:16 -0700 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/quoted-string.expect: -------------------------------------------------------------------------------- 1 | Author: Author "The Author" Name 2 | Email: somebody@example.com 3 | Subject: testing quoted-pair 4 | Date: Sun, 25 May 2008 00:38:18 -0700 5 | 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "sha1collisiondetection"] 2 | path = sha1collisiondetection 3 | url = https://github.com/cr-marcstevens/sha1collisiondetection.git 4 | branch = master 5 | -------------------------------------------------------------------------------- /contrib/coccinelle/xcalloc.cocci: -------------------------------------------------------------------------------- 1 | @@ 2 | type T; 3 | T *ptr; 4 | expression n; 5 | @@ 6 | xcalloc( 7 | + n, 8 | \( sizeof(T) \| sizeof(*ptr) \) 9 | - , n 10 | ) 11 | -------------------------------------------------------------------------------- /t/t1509/excludes: -------------------------------------------------------------------------------- 1 | *.o 2 | *~ 3 | *.bak 4 | *.c 5 | *.h 6 | .git 7 | contrib 8 | Documentation 9 | git-gui 10 | gitk-git 11 | gitweb 12 | t/t4013 13 | t/t5100 14 | t/t5515 15 | -------------------------------------------------------------------------------- /t/t3901/utf8.txt: -------------------------------------------------------------------------------- 1 | : to be sourced in t3901 -- this is utf8 2 | GIT_AUTHOR_NAME="Áéí óú" && 3 | GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME && 4 | export GIT_AUTHOR_NAME GIT_COMMITTER_NAME 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--cc_--shortstat_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree --cc --shortstat master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | 2 files changed, 5 insertions(+) 4 | $ 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_initial_mode: -------------------------------------------------------------------------------- 1 | $ git diff-tree initial mode 2 | :100644 100755 01e79c32a8c99c557f0757da7cb6d65b3414466d 01e79c32a8c99c557f0757da7cb6d65b3414466d M file0 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--stat_initial..side: -------------------------------------------------------------------------------- 1 | $ git diff --stat initial..side 2 | dir/sub | 2 ++ 3 | file0 | 3 +++ 4 | file3 | 4 ++++ 5 | 3 files changed, 9 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/elixir-protocol: -------------------------------------------------------------------------------- 1 | defprotocol RIGHT do 2 | @doc """ 3 | Calculates the size (and not the length!) of a data structure 4 | """ 5 | def size(data, ChangeMe) 6 | end 7 | -------------------------------------------------------------------------------- /t/t4018/java-interface-type-parameters: -------------------------------------------------------------------------------- 1 | interface RIGHT { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | public B foo(A ChangeMe); 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/java-nested-field: -------------------------------------------------------------------------------- 1 | class MyExample { 2 | private static class RIGHT { 3 | // change an inner class field 4 | String inner = "ChangeMe"; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.3.adoc: -------------------------------------------------------------------------------- 1 | Git Documentation/RelNotes/2.31.3.txt Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.31.3. 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.32.2.adoc: -------------------------------------------------------------------------------- 1 | Git Documentation/RelNotes/2.32.2.txt Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.32.2. 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.33.3.adoc: -------------------------------------------------------------------------------- 1 | Git Documentation/RelNotes/2.33.3.txt Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.33.3. 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.34.3.adoc: -------------------------------------------------------------------------------- 1 | Git Documentation/RelNotes/2.34.3.txt Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.34.3. 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.35.3.adoc: -------------------------------------------------------------------------------- 1 | Git Documentation/RelNotes/2.35.3.txt Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.35.3. 5 | -------------------------------------------------------------------------------- /t/chainlint/bash-array.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo && 3 | 4 bar=(gumbo stumbo wumbo) && 4 | 5 baz 5 | 6 ) && 6 | 7 ( 7 | 8 foo && 8 | 9 bar=${#bar[@]} && 9 | 10 baz 10 | 11 ) 11 | -------------------------------------------------------------------------------- /t/chainlint/incomplete-line.expect: -------------------------------------------------------------------------------- 1 | 2 line 1 \ 2 | 3 line 2 \ 3 | 4 line 3 \ 4 | 5 line 4 && 5 | 6 ( 6 | 7 line 5 \ 7 | 8 line 6 \ 8 | 9 line 7 \ 9 | 10 line 8 10 | 11 ) 11 | -------------------------------------------------------------------------------- /t/chainlint/negated-one-liner.expect: -------------------------------------------------------------------------------- 1 | 2 ! (foo && bar) && 2 | 3 ! (foo && bar) >baz && 3 | 4 4 | 5 ! (foo; ?!LINT: missing '&&'?! bar) && 5 | 6 ! (foo; ?!LINT: missing '&&'?! bar) >baz 6 | -------------------------------------------------------------------------------- /t/helper/test-sha256.c: -------------------------------------------------------------------------------- 1 | #include "test-tool.h" 2 | #include "hash.h" 3 | 4 | int cmd__sha256(int ac, const char **av) 5 | { 6 | return cmd_hash_impl(ac, av, GIT_HASH_SHA256, 0); 7 | } 8 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_-r_--stat_initial..side: -------------------------------------------------------------------------------- 1 | $ git diff -r --stat initial..side 2 | dir/sub | 2 ++ 3 | file0 | 3 +++ 4 | file3 | 4 ++++ 5 | 3 files changed, 9 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/custom2-match-to-end-of-line: -------------------------------------------------------------------------------- 1 | public class RIGHT_Beer 2 | { 3 | int special; 4 | public static void main(String args[]) 5 | { 6 | System.out.print("ChangeMe"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /t/t4018/dts-nodes-comment1: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | RIGHT@deadf00,4000 /* &a comment */ { 4 | #size-cells = <1>; 5 | ChangeMe = <0xffeedd00>; 6 | }; 7 | }; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4018/elixir-nested-module: -------------------------------------------------------------------------------- 1 | defmodule MyApp.RIGHT do 2 | @moduledoc """ 3 | Foo bar 4 | """ 5 | 6 | def ChangeMe(a) where is_map(a) do 7 | a 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /t/t4018/python-indented-async-def: -------------------------------------------------------------------------------- 1 | class Foo: 2 | async def RIGHT(self, x: int): 3 | return [ 4 | 1, 5 | 2, 6 | ChangeMe, 7 | ] 8 | -------------------------------------------------------------------------------- /t/t4110/patch2.patch: -------------------------------------------------------------------------------- 1 | diff --git a/new.txt b/new.txt 2 | --- a/new.txt 3 | +++ b/new.txt 4 | @@ -1,7 +1,3 @@ 5 | -a1 6 | -a11 7 | -a111 8 | -a1111 9 | b1 10 | b11 11 | b111 12 | -------------------------------------------------------------------------------- /t/t4110/patch4.patch: -------------------------------------------------------------------------------- 1 | diff --git a/new.txt b/new.txt 2 | --- a/new.txt 3 | +++ b/new.txt 4 | @@ -1,3 +1,7 @@ 5 | +a1 6 | +a11 7 | +a111 8 | +a1111 9 | b1 10 | b11 11 | b111 12 | -------------------------------------------------------------------------------- /t/t5100/info0012--message-id: -------------------------------------------------------------------------------- 1 | Author: Dmitriy Blinov 2 | Email: bda@mnsspb.ru 3 | Subject: Изменён список пакетов необходимых для сборки 4 | Date: Wed, 12 Nov 2008 17:54:41 +0300 5 | 6 | -------------------------------------------------------------------------------- /contrib/coccinelle/tests/free.c: -------------------------------------------------------------------------------- 1 | int use_FREE_AND_NULL(int *v) 2 | { 3 | free(*v); 4 | *v = NULL; 5 | } 6 | 7 | int need_no_if(int *v) 8 | { 9 | if (v) 10 | free(v); 11 | } 12 | -------------------------------------------------------------------------------- /contrib/subtree/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | asciidoc.conf 3 | asciidoctor-extensions.rb 4 | git-subtree 5 | git-subtree.1 6 | git-subtree.html 7 | git-subtree.xml 8 | mainline 9 | subproj 10 | -------------------------------------------------------------------------------- /t/chainlint/arithmetic-expansion.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo && 3 | 4 bar=$((42 + 1)) && 4 | 5 baz 5 | 6 ) && 6 | 7 ( 7 | 8 bar=$((42 + 1)) ?!LINT: missing '&&'?! 8 | 9 baz 9 | 10 ) 10 | -------------------------------------------------------------------------------- /t/t4018/java-record: -------------------------------------------------------------------------------- 1 | public record RIGHT(int comp1, double comp2, String comp3) { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | static int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/java-sealed-type-parameters: -------------------------------------------------------------------------------- 1 | public abstract sealed class RIGHT { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/perl-skip-end-of-heredoc: -------------------------------------------------------------------------------- 1 | sub RIGHTwithheredocument { 2 | print <<"EOF" 3 | decoy here-doc 4 | EOF 5 | # some lines of context 6 | # to pad it out 7 | print "ChangeMe\n"; 8 | } 9 | -------------------------------------------------------------------------------- /t/t4110/patch5.patch: -------------------------------------------------------------------------------- 1 | diff --git a/new.txt b/new.txt 2 | --- a/new.txt 3 | +++ b/new.txt 4 | @@ -10,3 +10,7 @@ 5 | c11 6 | c111 7 | c1111 8 | +c2 9 | +c22 10 | +c222 11 | +c2222 12 | -------------------------------------------------------------------------------- /t/t4135/diff-plain.diff: -------------------------------------------------------------------------------- 1 | --- postimage.txt.orig 2010-08-18 20:13:31.432002255 -0500 2 | +++ postimage.txt 2010-08-18 20:13:31.432002255 -0500 3 | @@ -1 +1 @@ 4 | -preimage 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t5100/info0010: -------------------------------------------------------------------------------- 1 | Author: Lukas Sandström 2 | Email: lukass@etek.chalmers.se 3 | Subject: git-mailinfo: Fix getting the subject from the body 4 | Date: Thu, 10 Jul 2008 23:41:33 +0200 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/msg0004: -------------------------------------------------------------------------------- 1 | Hello. 2 | 3 | Try all addresses for given remote name until it succeeds. 4 | Also supports IPv6. 5 | 6 | Signed-of-by: Hideaki YOSHIFUJI 7 | 8 | -------------------------------------------------------------------------------- /t/t5515/fetch.main_.._.git_one_two: -------------------------------------------------------------------------------- 1 | # main ../.git one two 2 | 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 3 | 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 4 | -------------------------------------------------------------------------------- /varint.h: -------------------------------------------------------------------------------- 1 | #ifndef VARINT_H 2 | #define VARINT_H 3 | 4 | int encode_varint(uintmax_t, unsigned char *); 5 | uintmax_t decode_varint(const unsigned char **); 6 | 7 | #endif /* VARINT_H */ 8 | -------------------------------------------------------------------------------- /Documentation/config/web.adoc: -------------------------------------------------------------------------------- 1 | web.browser:: 2 | Specify a web browser that may be used by some commands. 3 | Currently only linkgit:git-instaweb[1] and linkgit:git-help[1] 4 | may use it. 5 | -------------------------------------------------------------------------------- /oss-fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | fuzz-commit-graph 2 | fuzz-config 3 | fuzz-credential-from-url-gently 4 | fuzz-date 5 | fuzz-pack-headers 6 | fuzz-pack-idx 7 | fuzz-parse-attr-line 8 | fuzz-url-decode-mem 9 | -------------------------------------------------------------------------------- /t/chainlint/command-substitution.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo && 3 | 4 bar=$(gobble) && 4 | 5 baz 5 | 6 ) && 6 | 7 ( 7 | 8 bar=$(gobble blocks) ?!LINT: missing '&&'?! 8 | 9 baz 9 | 10 ) 10 | -------------------------------------------------------------------------------- /t/chainlint/empty-here-doc.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'empty-here-doc' ' 2 | git ls-tree $tree path >current && 3 | # LINT: empty here-doc 4 | cat >expected <<\EOF && 5 | EOF 6 | test_output 7 | ' 8 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-body-indent.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'here-doc-body-indent' - <<-\EOT 2 | echo "we should find this" 3 | echo "even though our heredoc has its indent stripped" 4 | EOT 5 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-multi-line-command-subst.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 x=$(bobble <<-\END && 3 | 4 fossil 4 | 5 vegetable 5 | 6 END 6 | 7 wiffle) ?!LINT: missing '&&'?! 7 | 8 echo $x 8 | 9 ) 9 | -------------------------------------------------------------------------------- /t/chainlint/sqstring-in-sqstring.expect: -------------------------------------------------------------------------------- 1 | 2 perl -e ' 2 | 3 defined($_ = -s $_) or die for @ARGV; 3 | 4 exit 1 if $ARGV[0] <= $ARGV[1]; 4 | 5 ' test-2-$packname_2.pack test-3-$packname_3.pack 5 | -------------------------------------------------------------------------------- /t/chainlint/unclosed-here-doc-indent.expect: -------------------------------------------------------------------------------- 1 | 2 command_which_is_run && 2 | 3 cat >expect <<-\EOF ?!LINT: unclosed heredoc?! && 3 | 4 we forget to end the here-doc 4 | 5 command_which_is_gobbled 5 | -------------------------------------------------------------------------------- /t/t4018/csharp-method: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string Method(int RIGHT) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | return "ChangeMe"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/dts-nodes-comment2: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | RIGHT@deadf00,4000 { /* a trailing comment */ 4 | #size-cells = <1>; 5 | ChangeMe = <0xffeedd00>; 6 | }; 7 | }; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4018/java-class-type-parameters-implements: -------------------------------------------------------------------------------- 1 | class RIGHT implements List { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private A ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4034/matlab/pre: -------------------------------------------------------------------------------- 1 | (1) (-1e10) 'b'; 2 | [a] {a} a.b; 3 | ~a; 4 | a*b a.*b a/b a./b a^b a.^b a.\b a.'; 5 | a+b a-b; 6 | a&b a&&b a|b a||b; 7 | ab a>=b; 8 | a==b a~=b; 9 | a,b; 10 | -------------------------------------------------------------------------------- /t/t4135/diff-with quote.diff: -------------------------------------------------------------------------------- 1 | --- "postimage".txt.orig 2010-08-18 20:13:31.744002255 -0500 2 | +++ "postimage".txt 2010-08-18 20:13:31.744002255 -0500 3 | @@ -1 +1 @@ 4 | -preimage 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/diff-with spaces.diff: -------------------------------------------------------------------------------- 1 | --- post image.txt.orig 2010-08-18 20:13:31.544002255 -0500 2 | +++ post image.txt 2010-08-18 20:13:31.544002255 -0500 3 | @@ -1 +1 @@ 4 | -preimage 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/diff-with tab.diff: -------------------------------------------------------------------------------- 1 | --- post image.txt.orig 2010-08-18 20:13:31.616002255 -0500 2 | +++ post image.txt 2010-08-18 20:13:31.616002255 -0500 3 | @@ -1 +1 @@ 4 | -preimage 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/git-plain.diff: -------------------------------------------------------------------------------- 1 | diff --git a/postimage.txt b/postimage.txt 2 | new file mode 100644 3 | index 0000000..eff0c54 4 | --- /dev/null 5 | +++ b/postimage.txt 6 | @@ -0,0 +1 @@ 7 | +postimage 8 | -------------------------------------------------------------------------------- /t/t5100/comment.expect: -------------------------------------------------------------------------------- 1 | Author: (this is (really) a "comment" (honestly)) A U Thor 2 | Email: somebody@example.com 3 | Subject: testing comments 4 | Date: Sun, 25 May 2008 00:38:18 -0700 5 | 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.5.5.4.adoc: -------------------------------------------------------------------------------- 1 | GIT v1.5.5.4 Release Notes 2 | ========================== 3 | 4 | Fixes since v1.5.5.4 5 | -------------------- 6 | 7 | * "git name-rev --all" used to segfault. 8 | -------------------------------------------------------------------------------- /compat/mkdtemp.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | 3 | char *gitmkdtemp(char *template) 4 | { 5 | if (!*mktemp(template) || mkdir(template, 0700)) 6 | return NULL; 7 | return template; 8 | } 9 | -------------------------------------------------------------------------------- /negotiator/noop.h: -------------------------------------------------------------------------------- 1 | #ifndef NEGOTIATOR_NOOP_H 2 | #define NEGOTIATOR_NOOP_H 3 | 4 | struct fetch_negotiator; 5 | 6 | void noop_negotiator_init(struct fetch_negotiator *negotiator); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /t/chainlint/exit-subshell.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'exit-subshell' ' 2 | ( 3 | # LINT: "|| exit {n}" valid subshell escape without hurting &&-chain 4 | foo || exit 1 5 | bar && 6 | baz 7 | ) 8 | ' 9 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--stat_--compact-summary_initial_mode: -------------------------------------------------------------------------------- 1 | $ git diff-tree --stat --compact-summary initial mode 2 | file0 (mode +x) | 0 3 | 1 file changed, 0 insertions(+), 0 deletions(-) 4 | $ 5 | -------------------------------------------------------------------------------- /t/t4018/java-class-space-before-type-parameters: -------------------------------------------------------------------------------- 1 | class RIGHT { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private A ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4034/matlab/post: -------------------------------------------------------------------------------- 1 | (0) (-0e10) 'y'; 2 | [x] {x} x.y; 3 | ~x; 4 | x*y x.*y x/y x./y x^y x.^y x.\y x.'; 5 | x+y x-y; 6 | x&y x&&y x|y x||y; 7 | xy x>=y; 8 | x==y x~=y; 9 | x,y; 10 | -------------------------------------------------------------------------------- /t/t4135/diff-with backslash.diff: -------------------------------------------------------------------------------- 1 | --- post\image.txt.orig 2010-08-18 20:13:31.680002255 -0500 2 | +++ post\image.txt 2010-08-18 20:13:31.680002255 -0500 3 | @@ -1 +1 @@ 4 | -preimage 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t5100/info0004: -------------------------------------------------------------------------------- 1 | Author: YOSHIFUJI Hideaki / 吉藤英明 2 | Email: yoshfuji@linux-ipv6.org 3 | Subject: GIT: Try all addresses for given remote name 4 | Date: Thu, 21 Jul 2005 09:10:36 -0400 (EDT) 5 | 6 | -------------------------------------------------------------------------------- /t/t5100/info0014--scissors: -------------------------------------------------------------------------------- 1 | Author: Junio C Hamano 2 | Email: gitster@pobox.com 3 | Subject: Teach mailinfo to ignore everything before -- >8 -- mark 4 | Date: Thu, 20 Aug 2009 17:18:22 -0700 5 | 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.3.2.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.3.2 Release Notes 2 | ========================== 3 | 4 | This is primarily to push out many documentation fixes accumulated since 5 | the 1.7.3.1 release. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.0.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.0.4 Release Notes 2 | ======================== 3 | 4 | * An earlier update to v2.0.2 broken output from "git diff-tree", 5 | which is fixed in this release. 6 | -------------------------------------------------------------------------------- /ci/run-style-check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Perform style check 4 | # 5 | 6 | baseCommit=$1 7 | 8 | git clang-format --style=file:.clang-format \ 9 | --diff --extensions c,h "$baseCommit" 10 | -------------------------------------------------------------------------------- /contrib/credential/wincred/meson.build: -------------------------------------------------------------------------------- 1 | executable('git-credential-wincred', 2 | sources: 'git-credential-wincred.c', 3 | install: true, 4 | install_dir: get_option('libexecdir') / 'git-core', 5 | ) 6 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-close-subshell.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'here-doc-close-subshell' ' 2 | ( 3 | # LINT: line contains here-doc and closes nested subshell 4 | cat <<-\INPUT) 5 | fizz 6 | INPUT 7 | ' 8 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-R_--stat_--compact-summary_initial_mode: -------------------------------------------------------------------------------- 1 | $ git diff-tree -R --stat --compact-summary initial mode 2 | file0 (mode -x) | 0 3 | 1 file changed, 0 insertions(+), 0 deletions(-) 4 | $ 5 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-c_--stat_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree -c --stat master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | 2 files changed, 5 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-array: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string[] Method(int RIGHT) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | return ["ChangeMe"]; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/ini-subsection-noindent: -------------------------------------------------------------------------------- 1 | [LEFT] 2 | 3 | [LEFT "CENTER"] 4 | # comment 5 | ; comment 6 | name = value 7 | 8 | [LEFT "RIGHT"] 9 | # comment 10 | ; comment 11 | name = value 12 | ChangeMe 13 | -------------------------------------------------------------------------------- /t/t4110/expect: -------------------------------------------------------------------------------- 1 | a1 2 | a11 3 | a111 4 | a1111 5 | b1 6 | b11 7 | b111 8 | b1111 9 | b2 10 | b22 11 | b222 12 | b2222 13 | c1 14 | c11 15 | c111 16 | c1111 17 | c2 18 | c22 19 | c222 20 | c2222 21 | -------------------------------------------------------------------------------- /t/t4135/git-with spaces.diff: -------------------------------------------------------------------------------- 1 | diff --git a/post image.txt b/post image.txt 2 | new file mode 100644 3 | index 0000000..eff0c54 4 | --- /dev/null 5 | +++ b/post image.txt 6 | @@ -0,0 +1 @@ 7 | +postimage 8 | -------------------------------------------------------------------------------- /t/t5100/msg0014--scissors: -------------------------------------------------------------------------------- 1 | This teaches mailinfo the scissors -- >8 -- mark; the command ignores 2 | everything before it in the message body. 3 | 4 | Signed-off-by: Junio C Hamano 5 | -------------------------------------------------------------------------------- /t/t5515/fetch.br-unconfig_.._.git_one_two: -------------------------------------------------------------------------------- 1 | # br-unconfig ../.git one two 2 | 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 3 | 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 4 | -------------------------------------------------------------------------------- /negotiator/default.h: -------------------------------------------------------------------------------- 1 | #ifndef NEGOTIATOR_DEFAULT_H 2 | #define NEGOTIATOR_DEFAULT_H 3 | 4 | struct fetch_negotiator; 5 | 6 | void default_negotiator_init(struct fetch_negotiator *negotiator); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /prune-packed.h: -------------------------------------------------------------------------------- 1 | #ifndef PRUNE_PACKED_H 2 | #define PRUNE_PACKED_H 3 | 4 | #define PRUNE_PACKED_DRY_RUN 01 5 | #define PRUNE_PACKED_VERBOSE 02 6 | 7 | void prune_packed_objects(int); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /t/chainlint/case-comment.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 case "$x" in 3 | 4 # found foo 4 | 5 x) foo ;; 5 | 6 # found other 6 | 7 *) 7 | 8 # treat it as bar 8 | 9 bar 9 | 10 ;; 10 | 11 esac 11 | 12 ) 12 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--cc_--stat_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree --cc --stat master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | 2 files changed, 5 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--format=%N_note: -------------------------------------------------------------------------------- 1 | $ git diff-tree --format=%N note 2 | note 3 | 4 | 5 | :100644 100755 01e79c32a8c99c557f0757da7cb6d65b3414466d 01e79c32a8c99c557f0757da7cb6d65b3414466d M file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.show_initial: -------------------------------------------------------------------------------- 1 | $ git show initial 2 | commit 444ac553ac7612cc88969031b02b3767fb8a353a 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:00:00 2006 +0000 5 | 6 | Initial 7 | $ 8 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-multiline: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string Method_RIGHT( 4 | int a, 5 | int b, 6 | int c) 7 | { 8 | return "ChangeMe"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/java-interface-type-parameters-extends: -------------------------------------------------------------------------------- 1 | interface RIGHT extends Function { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | public B foo(A ChangeMe); 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/java-sealed: -------------------------------------------------------------------------------- 1 | public abstract sealed class Sealed { // RIGHT 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | public final class ChangeMe extends Sealed { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /t/t4018/java-sealed-permits: -------------------------------------------------------------------------------- 1 | public abstract sealed class RIGHT permits PermittedA, PermittedB { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/scheme-class: -------------------------------------------------------------------------------- 1 | (define book-class% 2 | (class* () object% RIGHT 3 | (field (pages 5)) 4 | (field (ChangeMe 5)) 5 | (define/public (letters) 6 | (* pages 500)) 7 | (super-new))) 8 | -------------------------------------------------------------------------------- /t/t4018/scheme-define-slash-public: -------------------------------------------------------------------------------- 1 | (define bar-class% 2 | (class object% 3 | (field (info 5)) 4 | (define/public (foo) RIGHT 5 | (+ info 42) 6 | (* info ChangeMe)) 7 | (super-new))) 8 | -------------------------------------------------------------------------------- /t/t4135/git-with tab.diff: -------------------------------------------------------------------------------- 1 | diff --git "a/post\timage.txt" "b/post\timage.txt" 2 | new file mode 100644 3 | index 0000000..eff0c54 4 | --- /dev/null 5 | +++ "b/post\timage.txt" 6 | @@ -0,0 +1 @@ 7 | +postimage 8 | -------------------------------------------------------------------------------- /base85.h: -------------------------------------------------------------------------------- 1 | #ifndef BASE85_H 2 | #define BASE85_H 3 | 4 | int decode_85(char *dst, const char *line, int linelen); 5 | void encode_85(char *buf, const unsigned char *data, int bytes); 6 | 7 | #endif /* BASE85_H */ 8 | -------------------------------------------------------------------------------- /bin-wrappers/.gitignore: -------------------------------------------------------------------------------- 1 | /git 2 | /git-cvsserver 3 | /git-receive-pack 4 | /git-shell 5 | /git-upload-archive 6 | /git-upload-pack 7 | /scalar 8 | /test-fake-ssh 9 | /test-gvfs-protocol 10 | /test-tool 11 | -------------------------------------------------------------------------------- /gitweb/generate-gitweb-js.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test "$#" -lt 2 4 | then 5 | echo >&2 "USAGE: $0 ..." 6 | exit 1 7 | fi 8 | 9 | OUTPUT="$1" 10 | shift 11 | 12 | cat "$@" >"$OUTPUT" 13 | -------------------------------------------------------------------------------- /negotiator/skipping.h: -------------------------------------------------------------------------------- 1 | #ifndef NEGOTIATOR_SKIPPING_H 2 | #define NEGOTIATOR_SKIPPING_H 3 | 4 | struct fetch_negotiator; 5 | 6 | void skipping_negotiator_init(struct fetch_negotiator *negotiator); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /t/chainlint/unclosed-here-doc-indent.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'unclosed-here-doc-indent' ' 2 | command_which_is_run && 3 | cat >expect <<-\EOF && 4 | we forget to end the here-doc 5 | command_which_is_gobbled 6 | ' 7 | -------------------------------------------------------------------------------- /t/helper/test-tool-utils.h: -------------------------------------------------------------------------------- 1 | #ifndef TEST_TOOL_UTILS_H 2 | #define TEST_TOOL_UTILS_H 3 | 4 | struct test_cmd { 5 | const char *name; 6 | int (*fn)(int argc, const char **argv); 7 | }; 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-GF_master: -------------------------------------------------------------------------------- 1 | $ git log -GF master 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | $ 8 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-SF_master: -------------------------------------------------------------------------------- 1 | $ git log -SF master 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | $ 8 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-S_F_master: -------------------------------------------------------------------------------- 1 | $ git log -S F master 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | $ 8 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-with-spacing: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string Method ( int RIGHT ) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | return "ChangeMe"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/csharp-property: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | public bool RIGHT 4 | { 5 | get { return true; } 6 | set 7 | { 8 | // ChangeMe 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /t/t4034/css/post: -------------------------------------------------------------------------------- 1 | .other-form label.control-label { 2 | margin-top: 15px!important; 3 | border : 10px dotted #C6C6C6; 4 | } 5 | #CCCCCB 6 | 10em 7 | margin-left 8 | 150em 9 | 10px 10 | li.class#id 11 | -------------------------------------------------------------------------------- /t/t4135/git-with backslash.diff: -------------------------------------------------------------------------------- 1 | diff --git "a/post\\image.txt" "b/post\\image.txt" 2 | new file mode 100644 3 | index 0000000..eff0c54 4 | --- /dev/null 5 | +++ "b/post\\image.txt" 6 | @@ -0,0 +1 @@ 7 | +postimage 8 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.14.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.14.4 Release Notes 2 | ========================= 3 | 4 | This release is to forward-port the fixes made in the v2.13.7 version 5 | of Git. See its release notes for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.16.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.16.4 Release Notes 2 | ========================= 3 | 4 | This release is to forward-port the fixes made in the v2.13.7 version 5 | of Git. See its release notes for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.18.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.18.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.18.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.18.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.19.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.19.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.19.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.19.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.20.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.20.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.20.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.20.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.21.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.21.2 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.21.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.21.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.22.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.22.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.22.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.22.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.23.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.23.2 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.23.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.23.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.24.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.24.2 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.24.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.24.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.25.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.25.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.25.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.25.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.26.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.26.1 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.4; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.26.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.26.2 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.17.5; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.6 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.32.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.32.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.33.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.33.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.33.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.33.6 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.34.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.34.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.34.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.34.6 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.35.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.35.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.35.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.35.6 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.36.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.36.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.36.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.36.4 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.37.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.37.5 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.38.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.38.1 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.6; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.38.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.38.3 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.39.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.39.1 Release Notes 2 | ========================= 3 | 4 | This release merges the security fix that appears in v2.30.7; see 5 | the release notes for that version for details. 6 | -------------------------------------------------------------------------------- /Documentation/includes/cmd-config-section-all.adoc: -------------------------------------------------------------------------------- 1 | Everything below this line in this section is selectively included 2 | from the linkgit:git-config[1] documentation. The content is the same 3 | as what's found there: 4 | -------------------------------------------------------------------------------- /Documentation/ref-storage-format.adoc: -------------------------------------------------------------------------------- 1 | * `files` for loose files with packed-refs. This is the default. 2 | * `reftable` for the reftable format. This format is experimental and its 3 | internals are subject to change. 4 | -------------------------------------------------------------------------------- /t/chainlint/p4-filespec.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'p4-filespec' ' 2 | ( 3 | # LINT: Perforce revspec in filespec not misinterpreted as in-line comment 4 | p4 print -1 //depot/fiddle#42 >file && 5 | foobar 6 | ) 7 | ' 8 | -------------------------------------------------------------------------------- /t/lib-httpd/error-no-report.sh: -------------------------------------------------------------------------------- 1 | echo "Content-Type: application/x-git-receive-pack-result" 2 | echo 3 | printf '0013\001000eunpack ok\n' 4 | printf '0015\002skipping report\n' 5 | printf '0009\0010000' 6 | printf '0000' 7 | -------------------------------------------------------------------------------- /t/perf/p1450-fsck.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test_description='Test fsck performance' 4 | 5 | . ./perf-lib.sh 6 | 7 | test_perf_large_repo 8 | 9 | test_perf 'fsck' ' 10 | git fsck 11 | ' 12 | 13 | test_done 14 | -------------------------------------------------------------------------------- /t/t4018/fortran-external-function: -------------------------------------------------------------------------------- 1 | function RIGHT(a, b) result(c) 2 | 3 | integer, intent(in) :: ChangeMe 4 | integer, intent(in) :: b 5 | integer, intent(out) :: c 6 | 7 | c = a+b 8 | 9 | end function RIGHT 10 | -------------------------------------------------------------------------------- /t/t4018/java-record-type-parameters: -------------------------------------------------------------------------------- 1 | public record RIGHT(A comp1, N comp2, int comp3) { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | static int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4110/patch3.patch: -------------------------------------------------------------------------------- 1 | diff --git a/new.txt b/new.txt 2 | --- a/new.txt 3 | +++ b/new.txt 4 | @@ -6,6 +6,10 @@ 5 | b11 6 | b111 7 | b1111 8 | +b2 9 | +b22 10 | +b222 11 | +b2222 12 | c1 13 | c11 14 | c111 15 | -------------------------------------------------------------------------------- /t/t4135/add-plain.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/postimage.txt b/postimage.txt 2 | --- a/postimage.txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/postimage.txt 2010-08-18 20:13:31.484002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/git-with quote.diff: -------------------------------------------------------------------------------- 1 | diff --git "a/\"postimage\".txt" "b/\"postimage\".txt" 2 | new file mode 100644 3 | index 0000000..eff0c54 4 | --- /dev/null 5 | +++ "b/\"postimage\".txt" 6 | @@ -0,0 +1 @@ 7 | +postimage 8 | -------------------------------------------------------------------------------- /Documentation/includes/cmd-config-section-rest.adoc: -------------------------------------------------------------------------------- 1 | Everything above this line in this section isn't included from the 2 | linkgit:git-config[1] documentation. The content that follows is the 3 | same as what's found there: 4 | -------------------------------------------------------------------------------- /git-gui/GIT-GUI-BUILD-OPTIONS.in: -------------------------------------------------------------------------------- 1 | GITGUI_GITEXECDIR=@GITGUI_GITEXECDIR@ 2 | GITGUI_LIBDIR=@GITGUI_LIBDIR@ 3 | GITGUI_RELATIVE=@GITGUI_RELATIVE@ 4 | SHELL_PATH=@SHELL_PATH@ 5 | TCLTK_PATH=@TCLTK_PATH@ 6 | TCL_PATH=@TCL_PATH@ 7 | -------------------------------------------------------------------------------- /t/t0071-sort.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test_description='verify sort functions' 4 | 5 | . ./test-lib.sh 6 | 7 | test_expect_success 'DEFINE_LIST_SORT_DEBUG' ' 8 | test-tool mergesort test 9 | ' 10 | 11 | test_done 12 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-c_--stat_--summary_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree -c --stat --summary master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | 2 files changed, 5 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--no-index_--raw_--no-abbrev_dir2_dir: -------------------------------------------------------------------------------- 1 | $ git diff --no-index --raw --no-abbrev dir2 dir 2 | :000000 100644 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 A dir/sub 3 | $ 4 | -------------------------------------------------------------------------------- /t/t4018/csharp-property-braces-same-line: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | public bool RIGHT { 4 | get { return true; } 5 | set 6 | { 7 | // ChangeMe 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/java-record-space-before-components: -------------------------------------------------------------------------------- 1 | public record RIGHT (String components, String after, String space) { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | static int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4034/scheme/pre: -------------------------------------------------------------------------------- 1 | (define (myfunc a b) 2 | ; This is a really cool function. 3 | (this\place (+ 3 4)) 4 | (define some-text "hello") 5 | (let ((c (+ a b))) 6 | (format "one more than the total is %d" (add1 c)))) 7 | -------------------------------------------------------------------------------- /t/t4135/damaged.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/postimage.txt b/postimage.txt 2 | --- a/postimage.txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/postimage.txt 2010-08-18 20:13:31.484002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /Documentation/manpage.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /t/chainlint/case-comment.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'case-comment' ' 2 | ( 3 | case "$x" in 4 | # found foo 5 | x) foo ;; 6 | # found other 7 | *) 8 | # treat it as bar 9 | bar 10 | ;; 11 | esac 12 | ) 13 | ' 14 | -------------------------------------------------------------------------------- /t/chainlint/inline-comment.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foobar && # comment 1 3 | 4 barfoo ?!LINT: missing '&&'?! # wrong position for && 4 | 5 flibble "not a # comment" 5 | 6 ) && 6 | 7 7 | 8 (cd foo && 8 | 9 flibble "not a # comment") 9 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--cc_--stat_--summary_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree --cc --stat --summary master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | 2 files changed, 5 insertions(+) 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--cc_--summary_REVERSE: -------------------------------------------------------------------------------- 1 | $ git diff-tree --cc --summary REVERSE 2 | 2562325a7ee916efb2481da93073b82cec801cbc 3 | create mode 100644 file1 4 | delete mode 100644 file2 5 | delete mode 100644 file3 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-params: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string Method(int RIGHT, int b, int c = 42) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | return "ChangeMe"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/java-sealed-type-parameters-permits: -------------------------------------------------------------------------------- 1 | public abstract sealed class RIGHT permits PermittedA, PermittedB { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4018/perl-skip-forward-decl: -------------------------------------------------------------------------------- 1 | package RIGHT; 2 | 3 | use strict; 4 | use warnings; 5 | use parent qw(Exporter); 6 | our @EXPORT_OK = qw(round finalround); 7 | 8 | sub other; # forward declaration 9 | 10 | # ChangeMe 11 | -------------------------------------------------------------------------------- /t/t4034/ada/post: -------------------------------------------------------------------------------- 1 | Ada.Text_IO.Put_Line("Hello World?"); 2 | 1 1e10 16#FE12#E2 3.141_592 'y' 3 | x+y x-y 4 | x*y x/y 5 | x**y 6 | x(y) 7 | x:=y 8 | x=y x/= y 9 | xy x>=y 10 | x,y 11 | x=>y 12 | x..y 13 | x<>y 14 | -------------------------------------------------------------------------------- /t/t4034/ada/pre: -------------------------------------------------------------------------------- 1 | Ada.Text_IO.Put_Line("Hello World!"); 2 | 1 1e-10 16#FE12#E2 3.141_592 'x' 3 | a+b a-b 4 | a*b a/b 5 | a**b 6 | a(b) 7 | a:=b 8 | a=b a/= b 9 | ab a>=b 10 | a,b 11 | a=>b 12 | a..b 13 | a<>b 14 | -------------------------------------------------------------------------------- /t/t4034/css/pre: -------------------------------------------------------------------------------- 1 | .class-form label.control-label { 2 | margin-top: 10px!important; 3 | border : 10px dashed #C6C6C6; 4 | } 5 | #CCCCCC 6 | 10em 7 | padding-bottom 8 | 150px 9 | 10px!important 10 | div.class#id 11 | -------------------------------------------------------------------------------- /t/t4135/add-with spaces.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/post image.txt b/post image.txt 2 | --- a/post image.txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/post image.txt 2010-08-18 20:13:31.556002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/add-with tab.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/post image.txt b/post image.txt 2 | --- a/post image.txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/post image.txt 2010-08-18 20:13:31.628002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /templates/info/meson.build: -------------------------------------------------------------------------------- 1 | configure_file( 2 | input: 'exclude', 3 | output: 'exclude', 4 | configuration: template_config, 5 | install: true, 6 | install_dir: get_option('datadir') / 'git-core/templates/info', 7 | ) 8 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.40.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.40.4 Release Notes 2 | ========================= 3 | 4 | This release lets Git refuse to accept URLs that contain control 5 | sequences. This addresses CVE-2024-50349 and CVE-2024-52006. 6 | -------------------------------------------------------------------------------- /server-info.h: -------------------------------------------------------------------------------- 1 | #ifndef SERVER_INFO_H 2 | #define SERVER_INFO_H 3 | 4 | struct repository; 5 | 6 | /* Dumb servers support */ 7 | int update_server_info(struct repository *r, int force); 8 | 9 | #endif /* SERVER_INFO_H */ 10 | -------------------------------------------------------------------------------- /t/t1502/optionspec-neg: -------------------------------------------------------------------------------- 1 | some-command [options] ... 2 | 3 | some-command does foo and bar! 4 | -- 5 | foo can be negated 6 | no-bar can be positivated 7 | positive-only! cannot be negated 8 | no-negative! cannot be positivated 9 | -------------------------------------------------------------------------------- /t/t4018/cpp-struct-definition: -------------------------------------------------------------------------------- 1 | struct RIGHT { 2 | unsigned 3 | /* this bit field looks like a label and should not be picked up */ 4 | decoy_bitfield: 2, 5 | more : 1; 6 | int filler; 7 | 8 | int ChangeMe; 9 | }; 10 | -------------------------------------------------------------------------------- /t/t4018/dts-root-comment: -------------------------------------------------------------------------------- 1 | / { RIGHT /* Technically just supposed to be a slash and brace */ 2 | #size-cells = <1>; 3 | 4 | /* This comment should be ignored */ 5 | 6 | some-property = <40+2>; 7 | ChangeMe = <0xffeedd00>; 8 | }; 9 | -------------------------------------------------------------------------------- /t/t4100/t-apply-4.expect: -------------------------------------------------------------------------------- 1 | t/t0000-basic.sh | 0 2 | t/test-lib.sh | 0 3 | 2 files changed, 0 insertions(+), 0 deletions(-) 4 | mode change 100644 => 100755 t/t0000-basic.sh 5 | mode change 100644 => 100755 t/test-lib.sh 6 | -------------------------------------------------------------------------------- /t/t4135/add-with backslash.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/post\image.txt b/post\image.txt 2 | --- a/post\image.txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/post\image.txt 2010-08-18 20:13:31.692002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /t/t4135/add-with quote.diff: -------------------------------------------------------------------------------- 1 | diff -pruN a/"postimage".txt b/"postimage".txt 2 | --- a/"postimage".txt 1969-12-31 18:00:00.000000000 -0600 3 | +++ b/"postimage".txt 2010-08-18 20:13:31.756002255 -0500 4 | @@ -0,0 +1 @@ 5 | +postimage 6 | -------------------------------------------------------------------------------- /compat/strdup.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | 3 | char *gitstrdup(const char *s1) 4 | { 5 | size_t len = strlen(s1) + 1; 6 | char *s2 = malloc(len); 7 | 8 | if (s2) 9 | memcpy(s2, s1, len); 10 | return s2; 11 | } 12 | -------------------------------------------------------------------------------- /protocol-caps.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOCOL_CAPS_H 2 | #define PROTOCOL_CAPS_H 3 | 4 | struct repository; 5 | struct packet_reader; 6 | int cap_object_info(struct repository *r, struct packet_reader *request); 7 | 8 | #endif /* PROTOCOL_CAPS_H */ 9 | -------------------------------------------------------------------------------- /t/chainlint/nested-subshell.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'nested-subshell' ' 2 | ( 3 | cd foo && 4 | ( 5 | echo a && 6 | echo b 7 | ) >file && 8 | 9 | cd foo && 10 | ( 11 | echo a 12 | echo b 13 | ) >file 14 | ) 15 | ' 16 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-SF_master_--max-count=1: -------------------------------------------------------------------------------- 1 | $ git log -SF master --max-count=1 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | $ 8 | -------------------------------------------------------------------------------- /t/t4013/diff.log_-SF_master_--max-count=2: -------------------------------------------------------------------------------- 1 | $ git log -SF master --max-count=2 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | $ 8 | -------------------------------------------------------------------------------- /compat/nonblock.h: -------------------------------------------------------------------------------- 1 | #ifndef COMPAT_NONBLOCK_H 2 | #define COMPAT_NONBLOCK_H 3 | 4 | /* 5 | * Enable non-blocking I/O for the pipe specified by the passed-in descriptor. 6 | */ 7 | int enable_pipe_nonblock(int fd); 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /levenshtein.h: -------------------------------------------------------------------------------- 1 | #ifndef LEVENSHTEIN_H 2 | #define LEVENSHTEIN_H 3 | 4 | int levenshtein(const char *string1, const char *string2, 5 | int swap_penalty, int substitution_penalty, 6 | int insertion_penalty, int deletion_penalty); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /t/chainlint/broken-chain.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'broken-chain' ' 2 | ( 3 | foo && 4 | # LINT: missing "&&" from "bar" 5 | bar 6 | baz && 7 | # LINT: final statement before closing ")" legitimately lacks "&&" 8 | wop 9 | ) 10 | ' 11 | -------------------------------------------------------------------------------- /t/chainlint/nested-subshell.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 cd foo && 3 | 4 ( 4 | 5 echo a && 5 | 6 echo b 6 | 7 ) >file && 7 | 8 8 | 9 cd foo && 9 | 10 ( 10 | 11 echo a ?!LINT: missing '&&'?! 11 | 12 echo b 12 | 13 ) >file 13 | 14 ) 14 | -------------------------------------------------------------------------------- /t/lib-gpg/ownertrust: -------------------------------------------------------------------------------- 1 | # List of assigned trustvalues, created Thu 11 Dec 2014 01:26:28 PM CET 2 | # (Use "gpg --import-ownertrust" to restore them) 3 | 73D758744BE721698EC54E8713B6F51ECDDE430D:6: 4 | D4BE22311AD3131E5EDA29A461092E85B7227189:3: 5 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.35.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.35.1 Release Notes 2 | ========================= 3 | 4 | Git 2.35 shipped with a regression that broke use of "rebase" and 5 | "stash" in a secondary worktree. This maintenance release ought to 6 | fix it. 7 | -------------------------------------------------------------------------------- /t/chainlint/chain-break-false.expect: -------------------------------------------------------------------------------- 1 | 2 if condition not satisified 2 | 3 then 3 | 4 echo it did not work... 4 | 5 echo failed! 5 | 6 false 6 | 7 else 7 | 8 echo it went okay ?!LINT: missing '&&'?! 8 | 9 congratulate user 9 | 10 fi 10 | -------------------------------------------------------------------------------- /t/chainlint/if-in-loop.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 for i in a b c 3 | 4 do 4 | 5 if false 5 | 6 then 6 | 7 echo "err" 7 | 8 exit 1 8 | 9 fi ?!LINT: missing '&&'?! 9 | 10 foo 10 | 11 done ?!LINT: missing '&&'?! 11 | 12 bar 12 | 13 ) 13 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--cached_--_file0: -------------------------------------------------------------------------------- 1 | diff --git a/file0 b/file0 2 | new file mode 100644 3 | index 0000000..10a8a9f 4 | --- /dev/null 5 | +++ b/file0 6 | @@ -0,0 +1,9 @@ 7 | +1 8 | +2 9 | +3 10 | +4 11 | +5 12 | +6 13 | +A 14 | +B 15 | +C 16 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff_--raw_--abbrev=4_initial: -------------------------------------------------------------------------------- 1 | $ git diff --raw --abbrev=4 initial 2 | :100644 100644 35d2 9929 M dir/sub 3 | :100644 100644 01e7 10a8 M file0 4 | :000000 100644 0000 b1e6 A file1 5 | :100644 000000 01e7 0000 D file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff_--raw_initial: -------------------------------------------------------------------------------- 1 | $ git diff --raw initial 2 | :100644 100644 35d242b 992913c M dir/sub 3 | :100644 100644 01e79c3 10a8a9f M file0 4 | :000000 100644 0000000 b1e6722 A file1 5 | :100644 000000 01e79c3 0000000 D file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/dts-nodes-multiline-prop: -------------------------------------------------------------------------------- 1 | / { 2 | label_1: node1@ff00 { 3 | RIGHT@deadf00,4000 { 4 | multilineprop = <3>, 5 | <4>, 6 | <5>, 7 | <6>, 8 | <7>; 9 | 10 | ChangeMe = <0xffeedd00>; 11 | }; 12 | }; 13 | }; 14 | -------------------------------------------------------------------------------- /t/t4018/ini-subsection: -------------------------------------------------------------------------------- 1 | [LEFT] 2 | 3 | [LEFT "CENTER"] 4 | # comment 5 | ; comment 6 | name = value 7 | 8 | [LEFT "RIGHT"] 9 | # comment 10 | ; comment 11 | name = value 12 | ChangeMe 13 | -------------------------------------------------------------------------------- /t/t5100/msg0010: -------------------------------------------------------------------------------- 1 | "Subject: " isn't in the static array "header", and thus 2 | memcmp("Subject: ", header[i], 7) will never match. 3 | 4 | Signed-off-by: Lukas Sandström 5 | Signed-off-by: Junio C Hamano 6 | -------------------------------------------------------------------------------- /t/unit-tests/clar/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | insert_final_newline = true 6 | 7 | [*.{c,h}] 8 | indent_style = tab 9 | tab_width = 8 10 | 11 | [CMakeLists.txt] 12 | indent_style = tab 13 | tab_width = 8 14 | -------------------------------------------------------------------------------- /Documentation/config/windows.adoc: -------------------------------------------------------------------------------- 1 | windows.appendAtomically:: 2 | By default, append atomic API is used on windows. But it works only with 3 | local disk files, if you're working on a network file system, you should 4 | set it false to turn it off. 5 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-explicit: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class Example : IDisposable 4 | { 5 | void IDisposable.Dispose() // RIGHT 6 | { 7 | // Filler 8 | // Filler 9 | 10 | // ChangeMe 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /t/t4018/fortran-comment-legacy: -------------------------------------------------------------------------------- 1 | module a 2 | 3 | contains 4 | 5 | C subroutine wrong 6 | subroutine RIGHT 7 | C subroutine wrong 8 | 9 | real ChangeMe 10 | 11 | end subroutine RIGHT 12 | 13 | end module a 14 | -------------------------------------------------------------------------------- /t/t4018/r-indent-nested: -------------------------------------------------------------------------------- 1 | LEFT = function(a, b) { 2 | c = mean(a, b) 3 | RIGHT = function(d, e) { 4 | f = var(d, e) 5 | g = f + 1 6 | ChangeMe() 7 | return (g) 8 | } 9 | return (RIGHT(2, 3)) 10 | } 11 | -------------------------------------------------------------------------------- /t/t4034/scheme/post: -------------------------------------------------------------------------------- 1 | (define (my-func first second) 2 | ; This is a (moderately) cool function. 3 | (that\place (+ 3 4)) 4 | (define |a greeting| "hello") 5 | (let ((c (add1 first))) 6 | (format "one more than the total is %d" (+ c second)))) 7 | -------------------------------------------------------------------------------- /templates/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git update-server-info 9 | -------------------------------------------------------------------------------- /version-def.h.in: -------------------------------------------------------------------------------- 1 | #ifndef VERSION_DEF_H 2 | #define VERSION_DEF_H 3 | 4 | #define GIT_VERSION "@GIT_VERSION@" 5 | #define GIT_BUILT_FROM_COMMIT "@GIT_BUILT_FROM_COMMIT@" 6 | #define GIT_USER_AGENT "@GIT_USER_AGENT@" 7 | 8 | #endif /* VERSION_DEF_H */ 9 | -------------------------------------------------------------------------------- /perl/Git/LoadCPAN/Error.pm: -------------------------------------------------------------------------------- 1 | package Git::LoadCPAN::Error; 2 | use 5.008001; 3 | use strict; 4 | use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : (); 5 | use Git::LoadCPAN ( 6 | module => 'Error', 7 | import => 1, 8 | ); 9 | 10 | 1; 11 | -------------------------------------------------------------------------------- /serve.h: -------------------------------------------------------------------------------- 1 | #ifndef SERVE_H 2 | #define SERVE_H 3 | 4 | struct repository; 5 | 6 | void protocol_v2_advertise_capabilities(struct repository *r); 7 | void protocol_v2_serve_loop(struct repository *r, int stateless_rpc); 8 | 9 | #endif /* SERVE_H */ 10 | -------------------------------------------------------------------------------- /t/chainlint/command-substitution-subsubshell.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'command-substitution-subsubshell' ' 2 | # LINT: subshell nested in subshell nested in command substitution 3 | OUT=$( ((large_git 1>&3) | :) 3>&1 ) && 4 | test_match_signal 13 "$OUT" 5 | ' 6 | -------------------------------------------------------------------------------- /t/helper/test-online-cpus.c: -------------------------------------------------------------------------------- 1 | #include "test-tool.h" 2 | #include "git-compat-util.h" 3 | #include "thread-utils.h" 4 | 5 | int cmd__online_cpus(int argc UNUSED, const char **argv UNUSED) 6 | { 7 | printf("%d\n", online_cpus()); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--raw_--abbrev=4_initial: -------------------------------------------------------------------------------- 1 | $ git diff --raw --abbrev=4 initial 2 | :100644 100644 35d2... 9929... M dir/sub 3 | :100644 100644 01e7... 10a8... M file0 4 | :000000 100644 0000... b1e6... A file1 5 | :100644 000000 01e7... 0000... D file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/fortran-comment: -------------------------------------------------------------------------------- 1 | module a 2 | 3 | contains 4 | 5 | ! subroutine wrong 6 | subroutine RIGHT 7 | ! subroutine wrong 8 | 9 | real ChangeMe 10 | 11 | end subroutine RIGHT 12 | 13 | end module a 14 | -------------------------------------------------------------------------------- /t/t4018/fortran-comment-legacy-star: -------------------------------------------------------------------------------- 1 | module a 2 | 3 | contains 4 | 5 | * subroutine wrong 6 | subroutine RIGHT 7 | * subroutine wrong 8 | 9 | real ChangeMe 10 | 11 | end subroutine RIGHT 12 | 13 | end module a 14 | -------------------------------------------------------------------------------- /t/t4018/java-sealed-type-parameters-implements-permits: -------------------------------------------------------------------------------- 1 | public abstract sealed class RIGHT implements List permits PermittedA, PermittedB { 2 | static int ONE; 3 | static int TWO; 4 | static int THREE; 5 | private int ChangeMe; 6 | } 7 | -------------------------------------------------------------------------------- /t/t4100/t-apply-2.expect: -------------------------------------------------------------------------------- 1 | Makefile | 2 +- 2 | git-fetch-script | 5 ----- 3 | git-pull-script | 34 +--------------------------------- 4 | 3 files changed, 2 insertions(+), 39 deletions(-) 5 | copy git-pull-script => git-fetch-script (87%) 6 | -------------------------------------------------------------------------------- /t/t5100/info-from.in: -------------------------------------------------------------------------------- 1 | From 667d8940e719cddee1cfe237cbbe215e20270b09 Mon Sep 17 00:00:00 2001 2 | From: bare@example.com 3 | Date: Sun, 25 May 2008 00:38:18 -0700 4 | Subject: [PATCH] testing bare address in from header 5 | 6 | commit message 7 | --- 8 | patch 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.15.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.15.3 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.14.5 to address 5 | the recently reported CVE-2018-17456; see the release notes for that 6 | version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.16.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.16.5 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.14.5 to address 5 | the recently reported CVE-2018-17456; see the release notes for that 6 | version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.18.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.18.5 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.17.6 to address 5 | the security issue CVE-2021-21300; see the release notes for that 6 | version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.2 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.3 to address 5 | the security issue CVE-2022-24765; see the release notes for that 6 | version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.4 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.5 to address 5 | the security issue CVE-2022-29187; see the release notes for that 6 | version for details. 7 | -------------------------------------------------------------------------------- /contrib/subtree/README: -------------------------------------------------------------------------------- 1 | 2 | Please read git-subtree.adoc for documentation. 3 | 4 | Please don't contact me using github mail; it's slow, ugly, and worst of 5 | all, redundant. Email me instead at apenwarr@gmail.com and I'll be happy to 6 | help. 7 | 8 | Avery 9 | -------------------------------------------------------------------------------- /t/lib-t3100.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | setup_basic_ls_tree_data () { 4 | mkdir dir && 5 | test_commit dir/sub-file && 6 | test_commit top-file && 7 | git clone . submodule && 8 | git submodule add ./submodule && 9 | git commit -m"add submodule" 10 | } 11 | -------------------------------------------------------------------------------- /t/t4013/diff.diff_--raw_initial: -------------------------------------------------------------------------------- 1 | $ git diff --raw initial 2 | :100644 100644 35d242b... 992913c... M dir/sub 3 | :100644 100644 01e79c3... 10a8a9f... M file0 4 | :000000 100644 0000000... b1e6722... A file1 5 | :100644 000000 01e79c3... 0000000... D file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree -c --abbrev master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | ::100644 100644 100644 cead32e 7289e35 992913c MM dir/sub 4 | ::100644 100644 100644 b414108 f4615da 10a8a9f MM file0 5 | $ 6 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-generics: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | Example Method(TA RIGHT, TB b) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | // ChangeMe 9 | return null; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /perl/Git/SVN/Memoize/meson.build: -------------------------------------------------------------------------------- 1 | test_dependencies += custom_target( 2 | input: 'YAML.pm', 3 | output: 'YAML.pm', 4 | command: generate_perl_command, 5 | install: true, 6 | install_dir: perllibdir / 'Git/SVN/Memoize', 7 | depends: [git_version_file], 8 | ) 9 | -------------------------------------------------------------------------------- /t/chainlint/for-loop-abbreviated.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'for-loop-abbreviated' ' 2 | # LINT: for-loop lacking optional "in [word...]" before "do" 3 | for it 4 | do 5 | path=$(expr "$it" : '\([^:]*\)') && 6 | git update-index --add "$path" || exit 7 | done 8 | ' 9 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-multi-line-string.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'here-doc-multi-line-string' ' 2 | ( 3 | # LINT: line contains here-doc and opens multi-line string 4 | cat <<-\TXT && echo "multi-line 5 | string" 6 | fizzle 7 | TXT 8 | bap 9 | ) 10 | ' 11 | -------------------------------------------------------------------------------- /t/chainlint/if-condition-split.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'if-condition-split' ' 2 | # LINT: "if" condition split across multiple lines at "&&" or "||" 3 | if bob && 4 | marcia || 5 | kevin 6 | then 7 | echo "nomads" 8 | echo "for sure" 9 | fi 10 | ' 11 | -------------------------------------------------------------------------------- /t/lib-gpg/gpgsm-gen-key.in: -------------------------------------------------------------------------------- 1 | Key-Type: RSA 2 | Key-Length: 2048 3 | Key-Usage: sign 4 | Serial: random 5 | Name-DN: CN=C O Mitter, O=Example, SN=C O, GN=Mitter 6 | Name-Email: committer@example.com 7 | Not-Before: 1970-01-01 00:00:00 8 | Not-After: 3000-01-01 00:00:00 9 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-c_--abbrev_master: -------------------------------------------------------------------------------- 1 | $ git diff-tree -c --abbrev master 2 | 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 | ::100644 100644 100644 cead32e... 7289e35... 992913c... MM dir/sub 4 | ::100644 100644 100644 b414108... f4615da... 10a8a9f... MM file0 5 | $ 6 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-special-chars: -------------------------------------------------------------------------------- 1 | class @Some_Type 2 | { 3 | @Some_Type @Method_With_Underscore(int RIGHT) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | // ChangeMe 9 | return new @Some_Type(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /t/t4018/css-block-level-@-statements: -------------------------------------------------------------------------------- 1 | @keyframes RIGHT { 2 | from { 3 | background : #000; 4 | border : 10px ChangeMe #C6C6C6; 5 | } 6 | to { 7 | background : #fff; 8 | border : 10px solid #C6C6C6; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /t/t4018/java-non-sealed: -------------------------------------------------------------------------------- 1 | public abstract sealed class SealedClass { 2 | public static non-sealed class RIGHT extends SealedClass { 3 | static int ONE; 4 | static int TWO; 5 | static int THREE; 6 | private int ChangeMe; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /t/t4110/patch1.patch: -------------------------------------------------------------------------------- 1 | diff --git a/new.txt b/new.txt 2 | new file mode 100644 3 | --- /dev/null 4 | +++ b/new.txt 5 | @@ -0,0 +1,12 @@ 6 | +a1 7 | +a11 8 | +a111 9 | +a1111 10 | +b1 11 | +b11 12 | +b111 13 | +b1111 14 | +c1 15 | +c11 16 | +c111 17 | +c1111 18 | -------------------------------------------------------------------------------- /gitk-git/generate-tcl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | WISH=$(echo "$1" | sed 's/|/\\|/g') 6 | INPUT="$2" 7 | OUTPUT="$3" 8 | 9 | sed -e "1,3s|^exec .* \"\$0\"|exec $WISH \"\$0\"|" "$INPUT" >"$OUTPUT"+ 10 | chmod a+x "$OUTPUT"+ 11 | mv "$OUTPUT"+ "$OUTPUT" 12 | -------------------------------------------------------------------------------- /perl/FromCPAN/Mail/meson.build: -------------------------------------------------------------------------------- 1 | test_dependencies += custom_target( 2 | input: 'Address.pm', 3 | output: 'Address.pm', 4 | command: generate_perl_command, 5 | install: true, 6 | install_dir: perllibdir / 'FromCPAN/Mail', 7 | depends: [git_version_file], 8 | ) 9 | -------------------------------------------------------------------------------- /t/chainlint/cuddled-if-then-else.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'cuddled-if-then-else' ' 2 | # LINT: "if" cuddled with "(" and ")"; indented with spaces, not tabs 3 | (if test -z ""; then 4 | echo empty 5 | else 6 | echo bizzy 7 | fi) && 8 | echo foobar 9 | ' 10 | -------------------------------------------------------------------------------- /t/chainlint/multi-line-string.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 x="line 1 3 | 4 line 2 4 | 5 line 3" && 5 | 6 y="line 1 6 | 7 line2" ?!LINT: missing '&&'?! 7 | 8 foobar 8 | 9 ) && 9 | 10 ( 10 | 11 echo "xyz" "abc 11 | 12 def 12 | 13 ghi" && 13 | 14 barfoo 14 | 15 ) 15 | -------------------------------------------------------------------------------- /t/chainlint/nested-subshell-comment.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 foo && 3 | 4 ( 4 | 5 bar && 5 | 6 # bottles wobble while fiddles gobble 6 | 7 # minor numbers of cows (or do they?) 7 | 8 baz && 8 | 9 snaff 9 | 10 ) ?!LINT: missing '&&'?! 10 | 11 fuzzy 11 | 12 ) 12 | -------------------------------------------------------------------------------- /t/chainlint/pipe.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'pipe' ' 2 | ( 3 | # LINT: no "&&" needed on line ending with "|" 4 | foo | 5 | bar | 6 | baz && 7 | 8 | # LINT: final line of pipe sequence ("cow") lacking "&&" 9 | fish | 10 | cow 11 | 12 | sunder 13 | ) 14 | ' 15 | -------------------------------------------------------------------------------- /t/lib-httpd/ssl.cnf: -------------------------------------------------------------------------------- 1 | RANDFILE = $ENV::RANDFILE_PATH 2 | 3 | [ req ] 4 | default_bits = 2048 5 | distinguished_name = req_distinguished_name 6 | prompt = no 7 | [ req_distinguished_name ] 8 | commonName = 127.0.0.1 9 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--cc_--stat_--summary_side: -------------------------------------------------------------------------------- 1 | $ git diff-tree --cc --stat --summary side 2 | c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | file3 | 4 ++++ 6 | 3 files changed, 9 insertions(+) 7 | create mode 100644 file3 8 | $ 9 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_-c_--stat_--summary_side: -------------------------------------------------------------------------------- 1 | $ git diff-tree -c --stat --summary side 2 | c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 | dir/sub | 2 ++ 4 | file0 | 3 +++ 5 | file3 | 4 ++++ 6 | 3 files changed, 9 insertions(+) 7 | create mode 100644 file3 8 | $ 9 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff-tree_--root_-r_--abbrev=4_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root -r --abbrev=4 initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 100644 0000 35d2 A dir/sub 4 | :000000 100644 0000 01e7 A file0 5 | :000000 100644 0000 01e7 A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4050-diff-histogram.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test_description='histogram diff algorithm' 4 | 5 | . ./test-lib.sh 6 | . "$TEST_DIRECTORY"/lib-diff-alternative.sh 7 | 8 | test_diff_frobnitz "histogram" 9 | 10 | test_diff_unique "histogram" 11 | 12 | test_done 13 | -------------------------------------------------------------------------------- /t/t4100/t-apply-6.expect: -------------------------------------------------------------------------------- 1 | Makefile | 2 +- 2 | git-fetch-script | 41 +++++++++++++++++++++++++++++++++++++++++ 3 | git-pull-script | 34 +--------------------------------- 4 | 3 files changed, 43 insertions(+), 34 deletions(-) 5 | create git-fetch-script 6 | -------------------------------------------------------------------------------- /t/t5100/msg0012: -------------------------------------------------------------------------------- 1 | textlive-* исправлены на texlive-* 2 | docutils заменён на python-docutils 3 | 4 | Действительно, оказалось, что rest2web вытягивает за собой 5 | python-docutils. В то время как сам rest2web не нужен. 6 | 7 | Signed-off-by: Dmitriy Blinov 8 | -------------------------------------------------------------------------------- /t/t5411/test-0010-proc-receive-settings.sh: -------------------------------------------------------------------------------- 1 | test_expect_success "add two receive.procReceiveRefs settings" ' 2 | ( 3 | cd "$upstream" && 4 | git config --add receive.procReceiveRefs refs/for && 5 | git config --add receive.procReceiveRefs refs/review/ 6 | ) 7 | ' 8 | -------------------------------------------------------------------------------- /wildmatch.h: -------------------------------------------------------------------------------- 1 | #ifndef WILDMATCH_H 2 | #define WILDMATCH_H 3 | 4 | #define WM_CASEFOLD 1 5 | #define WM_PATHNAME 2 6 | 7 | #define WM_NOMATCH 1 8 | #define WM_MATCH 0 9 | 10 | int wildmatch(const char *pattern, const char *text, unsigned int flags); 11 | #endif 12 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.19.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.19.6 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.17.6 and 5 | v2.18.5 to address the security issue CVE-2021-21300; see the 6 | release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.32.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.32.1 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.3 and 5 | v2.31.2 to address the security issue CVE-2022-24765; see the 6 | release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.32.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.32.3 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.5 and 5 | v2.31.4 to address the security issue CVE-2022-29187; see the 6 | release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /compat/strtoimax.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | 3 | intmax_t gitstrtoimax (const char *nptr, char **endptr, int base) 4 | { 5 | #if defined(NO_STRTOULL) 6 | return strtol(nptr, endptr, base); 7 | #else 8 | return strtoll(nptr, endptr, base); 9 | #endif 10 | } 11 | -------------------------------------------------------------------------------- /perl/Git/LoadCPAN/Mail/Address.pm: -------------------------------------------------------------------------------- 1 | package Git::LoadCPAN::Mail::Address; 2 | use 5.008001; 3 | use strict; 4 | use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : (); 5 | use Git::LoadCPAN ( 6 | module => 'Mail::Address', 7 | import => 0, 8 | ); 9 | 10 | 1; 11 | -------------------------------------------------------------------------------- /perl/Git/LoadCPAN/Mail/meson.build: -------------------------------------------------------------------------------- 1 | test_dependencies += custom_target( 2 | input: 'Address.pm', 3 | output: 'Address.pm', 4 | command: generate_perl_command, 5 | install: true, 6 | install_dir: perllibdir / 'Git/LoadCPAN/Mail', 7 | depends: [git_version_file], 8 | ) 9 | -------------------------------------------------------------------------------- /t/chainlint/dqstring-line-splice.expect: -------------------------------------------------------------------------------- 1 | 2 2 | 3 echo 'fatal: reword option of --fixup is mutually exclusive with' '--patch/--interactive/--all/--include/--only' >expect && 3 | 4 test_must_fail git commit --fixup=reword:HEAD~ $1 2>actual && 4 | 5 test_cmp expect actual 5 | 6 6 | -------------------------------------------------------------------------------- /t/chainlint/one-liner.expect: -------------------------------------------------------------------------------- 1 | 2 (foo && bar) && 2 | 3 (foo && bar) | 3 | 4 (foo && bar) >baz && 4 | 5 5 | 6 (foo; ?!LINT: missing '&&'?! bar) && 6 | 7 (foo; ?!LINT: missing '&&'?! bar) | 7 | 8 (foo; ?!LINT: missing '&&'?! bar) >baz && 8 | 9 9 | 10 (foo "bar; baz") 10 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--root_-r_--abbrev=4_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root -r --abbrev=4 initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 100644 0000... 35d2... A dir/sub 4 | :000000 100644 0000... 01e7... A file0 5 | :000000 100644 0000... 01e7... A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff-tree_--root_--abbrev_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root --abbrev initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 040000 0000000 da7a33f A dir 4 | :000000 100644 0000000 01e79c3 A file0 5 | :000000 100644 0000000 01e79c3 A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-generics-alternate-spaces: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | Example Method(TA RIGHT, TB b) 4 | { 5 | // Filler 6 | // Filler 7 | 8 | // ChangeMe 9 | return null; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /t/t4018/java-class-member-function: -------------------------------------------------------------------------------- 1 | public class Beer 2 | { 3 | int special; 4 | public static void main(String RIGHT[]) 5 | { 6 | someMethodCall(); 7 | someOtherMethod("17") 8 | .doThat(); 9 | // Whatever 10 | System.out.print("ChangeMe"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /t/t4018/scheme-module: -------------------------------------------------------------------------------- 1 | (module A RIGHT 2 | (export with-display-exception) 3 | (extern (display-exception display-exception ChangeMe)) 4 | (def (with-display-exception thunk) 5 | (with-catch (lambda (e) (display-exception e (current-error-port)) e) 6 | thunk))) 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.0.9.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.0.9 Release Notes 2 | ========================== 3 | 4 | Fixes since v1.7.0.8 5 | -------------------- 6 | 7 | * "gitweb" can sometimes be tricked into parrotting a filename argument 8 | given in a request without properly quoting. 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.1.4.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.1.4 Release Notes 2 | ========================== 3 | 4 | Fixes since v1.7.1.3 5 | -------------------- 6 | 7 | * "gitweb" can sometimes be tricked into parrotting a filename argument 8 | given in a request without properly quoting. 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.2.5.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.2.5 Release Notes 2 | ========================== 3 | 4 | Fixes since v1.7.2.4 5 | -------------------- 6 | 7 | * "gitweb" can sometimes be tricked into parrotting a filename argument 8 | given in a request without properly quoting. 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.18.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.18.1 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.14.5 and in 5 | v2.17.2 to address the recently reported CVE-2018-17456; see the 6 | release notes for those versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.19.1.adoc: -------------------------------------------------------------------------------- 1 | Git v2.19.1 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.14.5 and in 5 | v2.17.2 to address the recently reported CVE-2018-17456; see the 6 | release notes for those versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.20.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.20.5 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.17.6, v2.18.5 5 | and v2.19.6 to address the security issue CVE-2021-21300; see 6 | the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.7.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.7 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.8 to 5 | address the security issues CVE-2023-22490 and CVE-2023-23946; 6 | see the release notes for that version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.33.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.33.4 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.5, v2.31.4 5 | and v2.32.3 to address the security issue CVE-2022-29187; see 6 | the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.41.3.adoc: -------------------------------------------------------------------------------- 1 | Git v2.41.3 Release Notes 2 | ========================= 3 | 4 | This release merges up the fix that appears in v2.40.4 to address 5 | the security issues CVE-2024-50349 and CVE-2024-52006; see the 6 | release notes for that version for details. 7 | -------------------------------------------------------------------------------- /compat/regcomp_enhanced.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | #undef regcomp 3 | 4 | int git_regcomp(regex_t *preg, const char *pattern, int cflags) 5 | { 6 | if (!(cflags & REG_EXTENDED)) 7 | cflags |= REG_ENHANCED; 8 | return regcomp(preg, pattern, cflags); 9 | } 10 | -------------------------------------------------------------------------------- /compat/strtoumax.c: -------------------------------------------------------------------------------- 1 | #include "../git-compat-util.h" 2 | 3 | uintmax_t gitstrtoumax (const char *nptr, char **endptr, int base) 4 | { 5 | #if defined(NO_STRTOULL) 6 | return strtoul(nptr, endptr, base); 7 | #else 8 | return strtoull(nptr, endptr, base); 9 | #endif 10 | } 11 | -------------------------------------------------------------------------------- /contrib/diff-highlight/diff-highlight.perl: -------------------------------------------------------------------------------- 1 | package main; 2 | 3 | # Some scripts may not realize that SIGPIPE is being ignored when launching the 4 | # pager--for instance scripts written in Python. 5 | $SIG{PIPE} = 'DEFAULT'; 6 | 7 | DiffHighlight::highlight_stdin(); 8 | exit 0; 9 | -------------------------------------------------------------------------------- /prompt.h: -------------------------------------------------------------------------------- 1 | #ifndef PROMPT_H 2 | #define PROMPT_H 3 | 4 | #define PROMPT_ASKPASS (1<<0) 5 | #define PROMPT_ECHO (1<<1) 6 | 7 | char *git_prompt(const char *prompt, int flags); 8 | 9 | int git_read_line_interactively(struct strbuf *line); 10 | 11 | #endif /* PROMPT_H */ 12 | -------------------------------------------------------------------------------- /t/chainlint/return-loop.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'return-loop' ' 2 | while test $i -lt $((num - 5)) 3 | do 4 | # LINT: "|| return {n}" valid loop escape outside subshell; no "&&" needed 5 | git notes add -m "notes for commit$i" HEAD~$i || return 1 6 | i=$((i + 1)) 7 | done 8 | ' 9 | -------------------------------------------------------------------------------- /t/chainlint/unclosed-here-doc.expect: -------------------------------------------------------------------------------- 1 | 2 command_which_is_run && 2 | 3 cat >expect <<\EOF ?!LINT: unclosed heredoc?! && 3 | 4 we try to end the here-doc below, 4 | 5 but the indentation throws us off 5 | 6 since the operator is not "<<-". 6 | 7 EOF 7 | 8 command_which_is_gobbled 8 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--root_--abbrev_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root --abbrev initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 040000 0000000... da7a33f... A dir 4 | :000000 100644 0000000... 01e79c3... A file0 5 | :000000 100644 0000000... 01e79c3... A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t5100/quoted-string.in: -------------------------------------------------------------------------------- 1 | From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001 2 | From: "Author \"The Author\" Name" 3 | Date: Sun, 25 May 2008 00:38:18 -0700 4 | Subject: [PATCH] testing quoted-pair 5 | 6 | 7 | 8 | --- 9 | patch 10 | -------------------------------------------------------------------------------- /templates/info/exclude: -------------------------------------------------------------------------------- 1 | # git ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /ls-refs.h: -------------------------------------------------------------------------------- 1 | #ifndef LS_REFS_H 2 | #define LS_REFS_H 3 | 4 | struct repository; 5 | struct packet_reader; 6 | int ls_refs(struct repository *r, struct packet_reader *request); 7 | int ls_refs_advertise(struct repository *r, struct strbuf *value); 8 | 9 | #endif /* LS_REFS_H */ 10 | -------------------------------------------------------------------------------- /t/perf/p1006-cat-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | test_description='Tests listing object info performance' 4 | . ./perf-lib.sh 5 | 6 | test_perf_large_repo 7 | 8 | test_perf 'cat-file --batch-check' ' 9 | git cat-file --batch-all-objects --batch-check 10 | ' 11 | 12 | test_done 13 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-diff-tree_--root_-r_--abbrev_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root -r --abbrev initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 100644 0000000 35d242b A dir/sub 4 | :000000 100644 0000000 01e79c3 A file0 5 | :000000 100644 0000000 01e79c3 A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4018/csharp-exclude-generic-method-calls: -------------------------------------------------------------------------------- 1 | class Example 2 | { 3 | string Method(int RIGHT) 4 | { 5 | GenericMethodCall( 6 | ); 7 | 8 | return "ChangeMe"; 9 | } 10 | 11 | string GenericMethodCall() => "test"; 12 | } 13 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.21.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.21.4 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.17.6, v2.18.5, 5 | v2.19.6 and v2.20.5 to address the security issue CVE-2021-21300; 6 | see the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.34.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.34.2 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.3, v2.31.2, 5 | v2.32.1 and v2.33.2 to address the security issue CVE-2022-24765; 6 | see the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.34.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.34.4 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.5, v2.31.4, 5 | v2.32.3 and v2.33.4 to address the security issue CVE-2022-29187; 6 | see the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.42.4.adoc: -------------------------------------------------------------------------------- 1 | Git v2.42.4 Release Notes 2 | ========================= 3 | 4 | This release merges up the fix that appears in v2.40.4 and v2.41.3 5 | to address the security issues CVE-2024-50349 and CVE-2024-52006; 6 | see the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /perl/FromCPAN/meson.build: -------------------------------------------------------------------------------- 1 | test_dependencies += custom_target( 2 | input: 'Error.pm', 3 | output: 'Error.pm', 4 | command: generate_perl_command, 5 | install: true, 6 | install_dir: perllibdir / 'FromCPAN', 7 | depends: [git_version_file], 8 | ) 9 | 10 | subdir('Mail') 11 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-multi-line-command-subst.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'here-doc-multi-line-command-subst' ' 2 | ( 3 | # LINT: line contains here-doc and opens multi-line $(...) 4 | x=$(bobble <<-\END && 5 | fossil 6 | vegetable 7 | END 8 | wiffle) 9 | echo $x 10 | ) 11 | ' 12 | -------------------------------------------------------------------------------- /t/chainlint/negated-one-liner.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'negated-one-liner' ' 2 | # LINT: top-level one-liner subshell 3 | ! (foo && bar) && 4 | ! (foo && bar) >baz && 5 | 6 | # LINT: top-level one-liner subshell missing internal "&&" 7 | ! (foo; bar) && 8 | ! (foo; bar) >baz 9 | ' 10 | -------------------------------------------------------------------------------- /t/t4013/diff.diff-tree_--root_-r_--abbrev_initial: -------------------------------------------------------------------------------- 1 | $ git diff-tree --root -r --abbrev initial 2 | 444ac553ac7612cc88969031b02b3767fb8a353a 3 | :000000 100644 0000000... 35d242b... A dir/sub 4 | :000000 100644 0000000... 01e79c3... A file0 5 | :000000 100644 0000000... 01e79c3... A file2 6 | $ 7 | -------------------------------------------------------------------------------- /t/t4013/diff.whatchanged_-SF_master: -------------------------------------------------------------------------------- 1 | $ git whatchanged -SF master 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | 8 | :100644 100644 8422d40... cead32e... M dir/sub 9 | $ 10 | -------------------------------------------------------------------------------- /t/t4100/t-apply-4.patch: -------------------------------------------------------------------------------- 1 | ceede59ea90cebad52ba9c8263fef3fb6ef17593 (from 368f99d57e8ed17243f2e164431449d48bfca2fb) 2 | diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh 3 | old mode 100644 4 | new mode 100755 5 | diff --git a/t/test-lib.sh b/t/test-lib.sh 6 | old mode 100644 7 | new mode 100755 8 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.31.8.adoc: -------------------------------------------------------------------------------- 1 | Git v2.31.8 Release Notes 2 | ========================= 3 | 4 | This release merges the fixes that appear in v2.30.9 to address the 5 | security issues CVE-2023-25652, CVE-2023-25815, and CVE-2023-29007; 6 | see the release notes for that version for details. 7 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.32.6.adoc: -------------------------------------------------------------------------------- 1 | Git v2.32.6 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.8 and v2.31.7 5 | to address the security issues CVE-2023-22490 and CVE-2023-23946; 6 | see the release notes for these versions for details. 7 | -------------------------------------------------------------------------------- /Documentation/git-remote-helpers.adoco: -------------------------------------------------------------------------------- 1 | git-remote-helpers 2 | ================== 3 | 4 | This document has been moved to linkgit:gitremote-helpers[7]. 5 | 6 | Please let the owners of the referring site know so that they can update the 7 | link you clicked to get here. 8 | 9 | Thanks. 10 | -------------------------------------------------------------------------------- /merge-blobs.h: -------------------------------------------------------------------------------- 1 | #ifndef MERGE_BLOBS_H 2 | #define MERGE_BLOBS_H 3 | 4 | struct blob; 5 | struct index_state; 6 | 7 | void *merge_blobs(struct index_state *, const char *, 8 | struct blob *, struct blob *, 9 | struct blob *, unsigned long *); 10 | 11 | #endif /* MERGE_BLOBS_H */ 12 | -------------------------------------------------------------------------------- /perl/Git/LoadCPAN/meson.build: -------------------------------------------------------------------------------- 1 | test_dependencies += custom_target( 2 | input: 'Error.pm', 3 | output: 'Error.pm', 4 | command: generate_perl_command, 5 | install: true, 6 | install_dir: perllibdir / 'Git/LoadCPAN', 7 | depends: [git_version_file], 8 | ) 9 | 10 | subdir('Mail') 11 | -------------------------------------------------------------------------------- /t/Git-SVN/Utils/can_compress.t: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | use strict; 4 | use warnings; 5 | 6 | use Test::More 'no_plan'; 7 | 8 | use Git::SVN::Utils qw(can_compress); 9 | 10 | # !! is the "convert this to boolean" operator. 11 | is !!can_compress(), !!eval { require Compress::Zlib }; 12 | -------------------------------------------------------------------------------- /t/chainlint/chained-block.expect: -------------------------------------------------------------------------------- 1 | 2 echo nobody home && { 2 | 3 test the doohicky ?!LINT: missing '&&'?! 3 | 4 right now 4 | 5 } && 5 | 6 6 | 7 GIT_EXTERNAL_DIFF=echo git diff | { 7 | 8 read path oldfile oldhex oldmode newfile newhex newmode && 8 | 9 test "z$oh" = "z$oldhex" 9 | 10 } 10 | -------------------------------------------------------------------------------- /t/chainlint/complex-if-in-cuddled-loop.expect: -------------------------------------------------------------------------------- 1 | 2 (for i in a b c; do 2 | 3 if test "$(echo $(waffle bat))" = "eleventeen" && 3 | 4 test "$x" = "$y"; then 4 | 5 : 5 | 6 else 6 | 7 echo >file 7 | 8 fi ?!LINT: missing '|| exit 1'?! 8 | 9 done) && 9 | 10 test ! -f file 10 | -------------------------------------------------------------------------------- /t/chainlint/cuddled.expect: -------------------------------------------------------------------------------- 1 | 2 (cd foo && 2 | 3 bar 3 | 4 ) && 4 | 5 5 | 6 (cd foo ?!LINT: missing '&&'?! 6 | 7 bar 7 | 8 ) && 8 | 9 9 | 10 ( 10 | 11 cd foo && 11 | 12 bar) && 12 | 13 13 | 14 (cd foo && 14 | 15 bar) && 15 | 16 16 | 17 (cd foo ?!LINT: missing '&&'?! 17 | 18 bar) 18 | -------------------------------------------------------------------------------- /t/t4013/diff.noellipses-whatchanged_-SF_master: -------------------------------------------------------------------------------- 1 | $ git whatchanged -SF master 2 | commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 | Author: A U Thor 4 | Date: Mon Jun 26 00:02:00 2006 +0000 5 | 6 | Third 7 | 8 | :100644 100644 8422d40 cead32e M dir/sub 9 | $ 10 | -------------------------------------------------------------------------------- /t/t4018/csharp-method-modifiers: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | class Example 4 | { 5 | static internal async Task Method(int RIGHT) 6 | { 7 | // Filler 8 | // Filler 9 | 10 | // ChangeMe 11 | await Task.Delay(1); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.11.1.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.11.1 Release Notes 2 | =========================== 3 | 4 | Fixes since v1.7.11 5 | ------------------- 6 | 7 | * The cross links in the HTML version of manual pages were broken. 8 | 9 | Also contains minor typofixes and documentation updates. 10 | -------------------------------------------------------------------------------- /rebase.h: -------------------------------------------------------------------------------- 1 | #ifndef REBASE_H 2 | #define REBASE_H 3 | 4 | enum rebase_type { 5 | REBASE_INVALID = -1, 6 | REBASE_FALSE = 0, 7 | REBASE_TRUE, 8 | REBASE_MERGES, 9 | REBASE_INTERACTIVE 10 | }; 11 | 12 | enum rebase_type rebase_parse_value(const char *value); 13 | 14 | #endif /* REBASE */ 15 | -------------------------------------------------------------------------------- /t/chainlint/blank-line.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'blank-line' ' 2 | ( 3 | 4 | nothing && 5 | 6 | something 7 | # LINT: ignore blank lines since final _statement_ before subshell end is 8 | # LINT: significant to "&&"-check, not final _line_ (which might be blank) 9 | 10 | 11 | ) 12 | ' 13 | -------------------------------------------------------------------------------- /t/chainlint/chain-break-status.expect: -------------------------------------------------------------------------------- 1 | 2 OUT=$( ((large_git; echo $? 1>&3) | :) 3>&1 ) && 2 | 3 test_match_signal 13 "$OUT" && 3 | 4 4 | 5 { test-tool sigchain >actual; ret=$?; } && 5 | 6 { 6 | 7 test_match_signal 15 "$ret" || 7 | 8 test "$ret" = 3 8 | 9 } && 9 | 10 test_cmp expect actual 10 | -------------------------------------------------------------------------------- /t/chainlint/here-doc-body.expect: -------------------------------------------------------------------------------- 1 | 2 echo "missing chain before" ?!LINT: missing '&&'?! 2 | 3 cat >file <<-\EOF && 3 | 4 inside inner here-doc 4 | 5 these are not shell commands 5 | 6 EOF 6 | 7 echo "missing chain after" ?!LINT: missing '&&'?! 7 | 8 echo "but this line is OK because it's the end" 8 | -------------------------------------------------------------------------------- /t/chainlint/loop-in-if.expect: -------------------------------------------------------------------------------- 1 | 2 ( 2 | 3 if true 3 | 4 then 4 | 5 while true 5 | 6 do 6 | 7 echo "pop" ?!LINT: missing '&&'?! 7 | 8 echo "glup" ?!LINT: missing '|| exit 1'?! 8 | 9 done ?!LINT: missing '&&'?! 9 | 10 foo 10 | 11 fi ?!LINT: missing '&&'?! 11 | 12 bar 12 | 13 ) 13 | -------------------------------------------------------------------------------- /t/chainlint/sqstring-in-sqstring.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'sqstring-in-sqstring' ' 2 | # LINT: SQ-string Perl code fragment within SQ-string 3 | perl -e '\'' 4 | defined($_ = -s $_) or die for @ARGV; 5 | exit 1 if $ARGV[0] <= $ARGV[1]; 6 | '\'' test-2-$packname_2.pack test-3-$packname_3.pack 7 | ' 8 | -------------------------------------------------------------------------------- /t/chainlint/unclosed-here-doc.test: -------------------------------------------------------------------------------- 1 | test_expect_success 'unclosed-here-doc' ' 2 | command_which_is_run && 3 | cat >expect <<\EOF && 4 | we try to end the here-doc below, 5 | but the indentation throws us off 6 | since the operator is not "<<-". 7 | EOF 8 | command_which_is_gobbled 9 | ' 10 | -------------------------------------------------------------------------------- /t/t4018/scheme-user-defined-define: -------------------------------------------------------------------------------- 1 | (define-test-suite record\ case-tests RIGHT 2 | (record-case-1 (lambda (fail) 3 | (let ((a (make-foo 1 2))) 4 | (record-case a 5 | ((bar x) (ChangeMe)) 6 | ((foo a b) (+ a b))))))) 7 | -------------------------------------------------------------------------------- /t/t5100/comment.in: -------------------------------------------------------------------------------- 1 | From 1234567890123456789012345678901234567890 Mon Sep 17 00:00:00 2001 2 | From: (this is \(really\) a "comment" (honestly)) "A U Thor" 3 | Date: Sun, 25 May 2008 00:38:18 -0700 4 | Subject: [PATCH] testing comments 5 | 6 | 7 | 8 | --- 9 | patch 10 | -------------------------------------------------------------------------------- /t/t5100/msg0003: -------------------------------------------------------------------------------- 1 | Here is a patch from A U Thor. This addresses the issue raised in the 2 | message: 3 | 4 | From: Nit Picker 5 | Subject: foo is too old 6 | Message-ID: 7 | 8 | Hopefully this would fix the problem stated there. 9 | 10 | -------------------------------------------------------------------------------- /Documentation/RelNotes/1.7.6.2.adoc: -------------------------------------------------------------------------------- 1 | Git v1.7.6.2 Release Notes 2 | ========================== 3 | 4 | Fixes since v1.7.6.1 5 | -------------------- 6 | 7 | * v1.7.6.1 broke "git push --quiet"; it used to be a no-op against an old 8 | version of Git running on the other end, but v1.7.6.1 made it abort. 9 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.22.5.adoc: -------------------------------------------------------------------------------- 1 | Git v2.22.5 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.17.6, 5 | v2.18.5, v2.19.6, v2.20.5 and v2.21.4 to address the security 6 | issue CVE-2021-21300; see the release notes for these versions 7 | for details. 8 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.33.7.adoc: -------------------------------------------------------------------------------- 1 | Git v2.33.7 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.8, v2.31.7 5 | and v2.32.6 to address the security issues CVE-2023-22490 and 6 | CVE-2023-23946; see the release notes for these versions for 7 | details. 8 | -------------------------------------------------------------------------------- /Documentation/RelNotes/2.35.2.adoc: -------------------------------------------------------------------------------- 1 | Git v2.35.2 Release Notes 2 | ========================= 3 | 4 | This release merges up the fixes that appear in v2.30.3, 5 | v2.31.2, v2.32.1, v2.33.2 and v2.34.2 to address the security 6 | issue CVE-2022-24765; see the release notes for these versions 7 | for details. 8 | --------------------------------------------------------------------------------