зеркало из https://github.com/microsoft/git.git
doc: switch links to https
These sites offer https versions of their content. Using the https versions provides some protection for users. Signed-off-by: Josh Soref <jsoref@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
65175d9ea2
Коммит
d05b08cd52
|
@ -832,7 +832,7 @@ Johannes Schindelin to make life as a Git contributor easier for those used to
|
|||
the GitHub PR workflow. It allows contributors to open pull requests against its
|
||||
mirror of the Git project, and does some magic to turn the PR into a set of
|
||||
emails and send them out for you. It also runs the Git continuous integration
|
||||
suite for you. It's documented at http://gitgitgadget.github.io.
|
||||
suite for you. It's documented at https://gitgitgadget.github.io/.
|
||||
|
||||
[[create-fork]]
|
||||
=== Forking `git/git` on GitHub
|
||||
|
|
|
@ -221,7 +221,7 @@ Problems related to tags:
|
|||
If you suspect that any of these issues may apply to the repository you
|
||||
want to import, consider using cvs2git:
|
||||
|
||||
* cvs2git (part of cvs2svn), `http://subversion.apache.org/`
|
||||
* cvs2git (part of cvs2svn), `https://subversion.apache.org/`
|
||||
|
||||
GIT
|
||||
---
|
||||
|
|
|
@ -135,7 +135,7 @@ flames ridiculing you if you don't check this.
|
|||
|
||||
Thunderbird in particular is known to be problematic. Thunderbird
|
||||
users may wish to visit this web page for more information:
|
||||
http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
|
||||
https://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
|
|
|
@ -453,7 +453,7 @@ have been specified, in which case default to 'compose'.
|
|||
998 characters unless a suitable transfer encoding
|
||||
('auto', 'base64', or 'quoted-printable') is used;
|
||||
this is due to SMTP limits as described by
|
||||
http://www.ietf.org/rfc/rfc5322.txt.
|
||||
https://www.ietf.org/rfc/rfc5322.txt.
|
||||
--
|
||||
+
|
||||
Default is the value of `sendemail.validate`; if this is not set,
|
||||
|
|
|
@ -1089,7 +1089,7 @@ the remote repository URL in the local repository's config file
|
|||
like this:
|
||||
|
||||
------------------------------------------------
|
||||
$ git config remote.linus.url http://www.kernel.org/pub/scm/git/git.git/
|
||||
$ git config remote.linus.url https://git.kernel.org/pub/scm/git/git.git/
|
||||
------------------------------------------------
|
||||
|
||||
and use the "linus" keyword with 'git pull' instead of the full URL.
|
||||
|
|
|
@ -529,8 +529,8 @@ TODO: Document this further.
|
|||
REFERENCES
|
||||
----------
|
||||
|
||||
http://www.ietf.org/rfc/rfc1738.txt[RFC 1738: Uniform Resource Locators (URL)]
|
||||
http://www.ietf.org/rfc/rfc2616.txt[RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1]
|
||||
https://www.ietf.org/rfc/rfc1738.txt[RFC 1738: Uniform Resource Locators (URL)]
|
||||
https://www.ietf.org/rfc/rfc2616.txt[RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1]
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
|
|
|
@ -820,7 +820,7 @@ filesystem (i.e. "$projectroot/$project"), `%h` to the current hash
|
|||
(\'h' gitweb parameter) and `%b` to the current hash base
|
||||
(\'hb' gitweb parameter); `%%` expands to \'%'.
|
||||
+
|
||||
For example, at the time this page was written, the http://repo.or.cz[]
|
||||
For example, at the time this page was written, the https://repo.or.cz[]
|
||||
Git hosting site set it to the following to enable graphical log
|
||||
(using the third party tool *git-browser*):
|
||||
+
|
||||
|
|
|
@ -28,7 +28,7 @@ Gitweb provides a web interface to Git repositories. Its features include:
|
|||
revisions one at a time, viewing the history of the repository.
|
||||
* Finding commits which commit messages matches given search term.
|
||||
|
||||
See http://repo.or.cz/w/git.git/tree/HEAD:/gitweb/[] for gitweb source code,
|
||||
See https://repo.or.cz/w/git.git/tree/HEAD:/gitweb/[] for gitweb source code,
|
||||
browsed using gitweb itself.
|
||||
|
||||
|
||||
|
|
|
@ -213,4 +213,4 @@ The procedure will result in a history that looks like this:
|
|||
B0--B1---------B2
|
||||
------------
|
||||
|
||||
See also http://git-blame.blogspot.com/2013/09/fun-with-first-parent-history.html
|
||||
See also https://git-blame.blogspot.com/2013/09/fun-with-first-parent-history.html
|
||||
|
|
|
@ -9,7 +9,7 @@ endif::git-commit[]
|
|||
the committer has the rights to submit the work under the
|
||||
project's license or agrees to some contributor representation,
|
||||
such as a Developer Certificate of Origin.
|
||||
(See http://developercertificate.org for the one used by the
|
||||
(See https://developercertificate.org for the one used by the
|
||||
Linux kernel and Git projects.) Consult the documentation or
|
||||
leadership of the project to which you're contributing to
|
||||
understand how the signoffs are used in that project.
|
||||
|
|
2
INSTALL
2
INSTALL
|
@ -124,7 +124,7 @@ Issues of note:
|
|||
interacting with svn repositories with "git svn"). If you can
|
||||
live without these, use NO_PERL. Note that recent releases of
|
||||
Redhat/Fedora are reported to ship Perl binary package with some
|
||||
core modules stripped away (see http://lwn.net/Articles/477234/),
|
||||
core modules stripped away (see https://lwn.net/Articles/477234/),
|
||||
so you might need to install additional packages other than Perl
|
||||
itself, e.g. Digest::MD5, File::Spec, File::Temp, Net::Domain,
|
||||
Net::SMTP, and Time::HiRes.
|
||||
|
|
4
Makefile
4
Makefile
|
@ -186,7 +186,7 @@ include shared.mak
|
|||
# Define NO_DEFLATE_BOUND if your zlib does not have deflateBound.
|
||||
#
|
||||
# Define NO_NORETURN if using buggy versions of gcc 4.6+ and profile feedback,
|
||||
# as the compiler can crash (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49299)
|
||||
# as the compiler can crash (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49299)
|
||||
#
|
||||
# Define USE_NSEC below if you want git to care about sub-second file mtimes
|
||||
# and ctimes. Note that you need recent glibc (at least 2.2.4) for this. On
|
||||
|
@ -2719,7 +2719,7 @@ $(OBJECTS): %.o: %.c GIT-CFLAGS $(missing_dep_dirs) $(missing_compdb_dir)
|
|||
|
||||
ifdef USE_COMPUTED_HEADER_DEPENDENCIES
|
||||
# Take advantage of gcc's on-the-fly dependency generation
|
||||
# See <http://gcc.gnu.org/gcc-3.0/features.html>.
|
||||
# See <https://gcc.gnu.org/gcc-3.0/features.html>.
|
||||
dep_files_present := $(wildcard $(dep_files))
|
||||
ifneq ($(dep_files_present),)
|
||||
include $(dep_files_present)
|
||||
|
|
|
@ -42,7 +42,7 @@ string translations (localization l10) should see [po/README.md][]
|
|||
To subscribe to the list, send an email with just "subscribe git" in
|
||||
the body to majordomo@vger.kernel.org (not the Git list). The mailing
|
||||
list archives are available at <https://lore.kernel.org/git/>,
|
||||
<http://marc.info/?l=git> and other archival sites.
|
||||
<https://marc.info/?l=git> and other archival sites.
|
||||
|
||||
Issues which are security relevant should be disclosed privately to
|
||||
the Git Security mailing list <git-security@googlegroups.com>.
|
||||
|
|
|
@ -329,7 +329,7 @@ sub conn {
|
|||
# Use a HTTP Proxy. Only works for HTTP proxies that
|
||||
# don't require user authentication
|
||||
#
|
||||
# See: http://www.ietf.org/rfc/rfc2817.txt
|
||||
# See: https://www.ietf.org/rfc/rfc2817.txt
|
||||
|
||||
$s = IO::Socket::INET->new(PeerHost => $proxyhost, PeerPort => $proxyport);
|
||||
die "Socket to $proxyhost: $!\n" unless defined $s;
|
||||
|
|
|
@ -24,7 +24,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>.}]
|
||||
along with this program; if not, see <https://www.gnu.org/licenses/>.}]
|
||||
|
||||
######################################################################
|
||||
##
|
||||
|
@ -3075,7 +3075,7 @@ if {$doc_path ne {}} {
|
|||
if {[file isfile $doc_path]} {
|
||||
set doc_url "file:$doc_path"
|
||||
} else {
|
||||
set doc_url {http://www.kernel.org/pub/software/scm/git/docs/}
|
||||
set doc_url {https://www.kernel.org/pub/software/scm/git/docs/}
|
||||
}
|
||||
|
||||
proc start_browser {url} {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# (Copied from gitk, commit fd8ccbec4f0161)
|
||||
|
||||
# This list of encoding names and aliases is distilled from
|
||||
# http://www.iana.org/assignments/character-sets.
|
||||
# https://www.iana.org/assignments/character-sets.
|
||||
# Not all of them are supported by Tcl.
|
||||
set encoding_aliases {
|
||||
{ ANSI_X3.4-1968 iso-ir-6 ANSI_X3.4-1986 ISO_646.irv:1991 ASCII
|
||||
|
|
|
@ -39,7 +39,7 @@ in your language?
|
|||
If you do not know what your language should be named, you need to find
|
||||
it. This currently follows ISO 639-1 two letter codes:
|
||||
|
||||
http://www.loc.gov/standards/iso639-2/php/code_list.php
|
||||
https://www.loc.gov/standards/iso639-2/php/code_list.php
|
||||
|
||||
For example, if you are preparing a translation for Afrikaans, the
|
||||
language code is "af". If there already is a translation for your
|
||||
|
|
|
@ -432,7 +432,7 @@ mongoose_conf() {
|
|||
# Mongoose web server configuration file.
|
||||
# Lines starting with '#' and empty lines are ignored.
|
||||
# For detailed description of every option, visit
|
||||
# http://code.google.com/p/mongoose/wiki/MongooseManual
|
||||
# https://code.google.com/p/mongoose/wiki/MongooseManual
|
||||
|
||||
root $root
|
||||
ports $port
|
||||
|
@ -458,7 +458,7 @@ plackup_conf () {
|
|||
#!$PERL
|
||||
|
||||
# gitweb - simple web interface to track changes in git repositories
|
||||
# PSGI wrapper and server starter (see http://plackperl.org)
|
||||
# PSGI wrapper and server starter (see https://plackperl.org)
|
||||
|
||||
use strict;
|
||||
|
||||
|
|
|
@ -11956,7 +11956,7 @@ proc formatdate {d} {
|
|||
}
|
||||
|
||||
# This list of encoding names and aliases is distilled from
|
||||
# http://www.iana.org/assignments/character-sets.
|
||||
# https://www.iana.org/assignments/character-sets.
|
||||
# Not all of them are supported by Tcl.
|
||||
set encoding_aliases {
|
||||
{ ANSI_X3.4-1968 iso-ir-6 ANSI_X3.4-1986 ISO_646.irv:1991 ASCII
|
||||
|
|
|
@ -122,9 +122,9 @@ our $favicon = "++GITWEB_FAVICON++";
|
|||
our $javascript = "++GITWEB_JS++";
|
||||
|
||||
# URI and label (title) of GIT logo link
|
||||
#our $logo_url = "http://www.kernel.org/pub/software/scm/git/docs/";
|
||||
#our $logo_url = "https://www.kernel.org/pub/software/scm/git/docs/";
|
||||
#our $logo_label = "git documentation";
|
||||
our $logo_url = "http://git-scm.com/";
|
||||
our $logo_url = "https://git-scm.com/";
|
||||
our $logo_label = "git homepage";
|
||||
|
||||
# source of projects list
|
||||
|
|
|
@ -123,8 +123,8 @@ function addCssRule(selector, style) {
|
|||
* NOTE that there are limits and differences compared to native
|
||||
* getElementsByClassName as defined by e.g.:
|
||||
* https://developer.mozilla.org/en/DOM/document.getElementsByClassName
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-getelementsbyclassname
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-getelementsbyclassname
|
||||
* https://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-getelementsbyclassname
|
||||
* https://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-getelementsbyclassname
|
||||
*
|
||||
* Namely, this implementation supports only single class name as
|
||||
* argument and not set of space-separated tokens representing classes,
|
||||
|
@ -133,9 +133,9 @@ function addCssRule(selector, style) {
|
|||
* (via getElementsByTagName).
|
||||
*
|
||||
* Based on
|
||||
* http://code.google.com/p/getelementsbyclassname/
|
||||
* https://code.google.com/p/getelementsbyclassname/
|
||||
* http://www.dustindiaz.com/getelementsbyclass/
|
||||
* http://stackoverflow.com/questions/1818865/do-we-have-getelementsbyclassname-in-javascript
|
||||
* https://stackoverflow.com/questions/1818865/do-we-have-getelementsbyclassname-in-javascript
|
||||
*
|
||||
* See also https://johnresig.com/blog/getelementsbyclassname-speed-comparison/
|
||||
*
|
||||
|
|
4
graph.h
4
graph.h
|
@ -130,7 +130,7 @@ void graph_setup_line_prefix(struct diff_options *diffopt);
|
|||
* This functions must be called BEFORE graph_init() is called.
|
||||
*
|
||||
* NOTE: This function isn't used in Git outside graph.c but it is used
|
||||
* by CGit (http://git.zx2c4.com/cgit/) to use HTML for colors.
|
||||
* by CGit (https://git.zx2c4.com/cgit/) to use HTML for colors.
|
||||
*/
|
||||
void graph_set_column_colors(const char **colors, unsigned short colors_max);
|
||||
|
||||
|
@ -196,7 +196,7 @@ int graph_is_commit_finished(struct git_graph const *graph);
|
|||
* graph_update() is called.
|
||||
*
|
||||
* NOTE: This function isn't used in Git outside graph.c but it is used
|
||||
* by CGit (http://git.zx2c4.com/cgit/) to wrap HTML around graph lines.
|
||||
* by CGit (https://git.zx2c4.com/cgit/) to wrap HTML around graph lines.
|
||||
*/
|
||||
int graph_next_line(struct git_graph *graph, struct strbuf *sb);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "git-compat-util.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
/*
|
||||
* JSON data structures are defined at:
|
||||
* [1] http://www.ietf.org/rfc/rfc7159.txt
|
||||
* [1] https://www.ietf.org/rfc/rfc7159.txt
|
||||
* [2] https://www.json.org/
|
||||
*
|
||||
* The JSON-writer API allows one to build JSON data structures using a
|
||||
|
|
2
kwset.c
2
kwset.c
|
@ -18,7 +18,7 @@
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
along with this program; if not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written August 1989 by Mike Haertel.
|
||||
The author may be reached (Email) at the address mike@ai.mit.edu,
|
||||
|
|
2
kwset.h
2
kwset.h
|
@ -20,7 +20,7 @@
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
along with this program; if not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Written August 1989 by Mike Haertel.
|
||||
The author may be reached (Email) at the address mike@ai.mit.edu,
|
||||
|
|
2
list.h
2
list.h
|
@ -19,7 +19,7 @@
|
|||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIST_H
|
||||
|
|
|
@ -1025,7 +1025,7 @@ C<:warndie> handlers added by Paul Evans <leonerd@leonerd.org.uk>
|
|||
|
||||
=head1 MAINTAINER
|
||||
|
||||
Shlomi Fish, L<http://www.shlomifish.org/> .
|
||||
Shlomi Fish, L<https://www.shlomifish.org/> .
|
||||
|
||||
=head1 PAST MAINTAINERS
|
||||
|
||||
|
|
|
@ -1752,7 +1752,7 @@ sub tie_for_persistent_memoization {
|
|||
END {
|
||||
# Force cache writeout explicitly instead of waiting for
|
||||
# global destruction to avoid segfault in Storable:
|
||||
# http://rt.cpan.org/Public/Bug/Display.html?id=36087
|
||||
# https://rt.cpan.org/Public/Bug/Display.html?id=36087
|
||||
unmemoize_svn_mergeinfo_functions();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
* with Linus Torvalds <torvalds@osdl.org> as the point of
|
||||
* contact. September 2005.
|
||||
*
|
||||
* See http://www.iana.org/assignments/port-numbers
|
||||
* See https://www.iana.org/assignments/port-numbers
|
||||
*/
|
||||
#define DEFAULT_GIT_PORT 9418
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
along with this program; if not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* closeout.c - close standard output and standard error
|
||||
Copyright (C) 1998-2007 Free Software Foundation, Inc.
|
||||
|
@ -47,7 +47,7 @@
|
|||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, see <http://www.gnu.org/licenses/>. */
|
||||
along with this program; if not, see <https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
|
4
t/README
4
t/README
|
@ -32,7 +32,7 @@ the tests.
|
|||
ok 2 - plain with GIT_WORK_TREE
|
||||
ok 3 - plain bare
|
||||
|
||||
Since the tests all output TAP (see http://testanything.org) they can
|
||||
Since the tests all output TAP (see https://testanything.org) they can
|
||||
be run with any TAP harness. Here's an example of parallel testing
|
||||
powered by a recent version of prove(1):
|
||||
|
||||
|
@ -1279,7 +1279,7 @@ Devel::Cover module. To install it do:
|
|||
sudo aptitude install libdevel-cover-perl
|
||||
|
||||
# From the CPAN with cpanminus
|
||||
curl -L http://cpanmin.us | perl - --sudo --self-upgrade
|
||||
curl -L https://cpanmin.us/ | perl - --sudo --self-upgrade
|
||||
cpanm --sudo Devel::Cover
|
||||
|
||||
Then, at the top-level:
|
||||
|
|
|
@ -30,7 +30,7 @@ static int test_regex_bug(void)
|
|||
if (regexec(&r, str, 1, m, 0))
|
||||
die("no match of pattern '%s' to string '%s'", pat, str);
|
||||
|
||||
/* http://sourceware.org/bugzilla/show_bug.cgi?id=3957 */
|
||||
/* https://sourceware.org/bugzilla/show_bug.cgi?id=3957 */
|
||||
if (m[0].rm_so == 3) /* matches '\n' when it should not */
|
||||
die("regex bug confirmed: re-build git with NO_REGEX=1");
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
# along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
|
||||
# These variables must be set before the inclusion of test-lib.sh below,
|
||||
# because it will change our working directory.
|
||||
|
|
|
@ -27,7 +27,7 @@ cat << EOF
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
# along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
EOF
|
||||
}
|
||||
|
|
|
@ -466,7 +466,7 @@ test_expect_success 'git p4 clone complex branches with excluded files' '
|
|||
)
|
||||
'
|
||||
|
||||
# From a report in http://stackoverflow.com/questions/11893688
|
||||
# From a report in https://stackoverflow.com/questions/11893688
|
||||
# where --use-client-spec caused branch prefixes not to be removed;
|
||||
# every file in git appeared into a subdirectory of the branch name.
|
||||
test_expect_success 'use-client-spec detect-branches setup' '
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
# along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
|
||||
# The semantics of the editor variables are that of invoking
|
||||
# sh -c "$EDITOR \"$@\"" files ...
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
# along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
#
|
||||
# The idea is for `test-lib.sh` to source this file when run in GitHub
|
||||
# workflows; these functions will then override (empty) functions
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
# along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
#
|
||||
# The idea is for `test-lib.sh` to source this file when the user asks
|
||||
# for JUnit XML; these functions will then override (empty) functions
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see http://www.gnu.org/licenses/ .
|
||||
# along with this program. If not, see https://www.gnu.org/licenses/ .
|
||||
|
||||
# Test the binaries we have just built. The tests are kept in
|
||||
# t/ subdirectory and are run in 'trash directory' subdirectory.
|
||||
|
|
2
trace.c
2
trace.c
|
@ -18,7 +18,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "git-compat-util.h"
|
||||
|
|
2
utf8.c
2
utf8.c
|
@ -2,7 +2,7 @@
|
|||
#include "strbuf.h"
|
||||
#include "utf8.h"
|
||||
|
||||
/* This code is originally from http://www.cl.cam.ac.uk/~mgk25/ucs/ */
|
||||
/* This code is originally from https://www.cl.cam.ac.uk/~mgk25/ucs/ */
|
||||
|
||||
static const char utf16_be_bom[] = {'\xFE', '\xFF'};
|
||||
static const char utf16_le_bom[] = {'\xFF', '\xFE'};
|
||||
|
|
6
utf8.h
6
utf8.h
|
@ -83,7 +83,7 @@ void strbuf_utf8_align(struct strbuf *buf, align_type position, unsigned int wid
|
|||
* BOM must not be used [1]. The same applies for the UTF-32 equivalents.
|
||||
* The function returns true if this rule is violated.
|
||||
*
|
||||
* [1] http://unicode.org/faq/utf_bom.html#bom10
|
||||
* [1] https://unicode.org/faq/utf_bom.html#bom10
|
||||
*/
|
||||
int has_prohibited_utf_bom(const char *enc, const char *data, size_t len);
|
||||
|
||||
|
@ -99,8 +99,8 @@ int has_prohibited_utf_bom(const char *enc, const char *data, size_t len);
|
|||
* Therefore, strictly requiring a BOM seems to be the safest option for
|
||||
* content in Git.
|
||||
*
|
||||
* [1] http://unicode.org/faq/utf_bom.html#gen6
|
||||
* [2] http://www.unicode.org/versions/Unicode10.0.0/ch03.pdf
|
||||
* [1] https://unicode.org/faq/utf_bom.html#gen6
|
||||
* [2] https://www.unicode.org/versions/Unicode10.0.0/ch03.pdf
|
||||
* Section 3.10, D98, page 132
|
||||
* [3] https://encoding.spec.whatwg.org/#utf-16le
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче