Fix spelling errors in code comments
Reported-by: Jens Schleusener <Jens.Schleusener@fossies.org> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8915297925
commit
15beaaa3d1
4
apply.c
4
apply.c
@@ -4183,8 +4183,8 @@ static void show_rename_copy(struct patch *p)
|
|||||||
old_name = slash_old + 1;
|
old_name = slash_old + 1;
|
||||||
new_name = slash_new + 1;
|
new_name = slash_new + 1;
|
||||||
}
|
}
|
||||||
/* p->old_name thru old_name is the common prefix, and old_name and new_name
|
/* p->old_name through old_name is the common prefix, and old_name and
|
||||||
* through the end of names are renames
|
* new_name through the end of names are renames
|
||||||
*/
|
*/
|
||||||
if (old_name != p->old_name)
|
if (old_name != p->old_name)
|
||||||
printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,
|
printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,
|
||||||
|
|||||||
@@ -1400,7 +1400,7 @@ static int do_fetch(struct transport *transport,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* We're setting the upstream configuration for the
|
* We're setting the upstream configuration for the
|
||||||
* current branch. The relevent upstream is the
|
* current branch. The relevant upstream is the
|
||||||
* fetched branch that is meant to be merged with the
|
* fetched branch that is meant to be merged with the
|
||||||
* current one, i.e. the one fetched to FETCH_HEAD.
|
* current one, i.e. the one fetched to FETCH_HEAD.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -458,7 +458,7 @@ static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
|
|||||||
/*
|
/*
|
||||||
* Returns 0 if there was no previous error and gc can proceed, 1 if
|
* Returns 0 if there was no previous error and gc can proceed, 1 if
|
||||||
* gc should not proceed due to an error in the last run. Prints a
|
* gc should not proceed due to an error in the last run. Prints a
|
||||||
* message and returns -1 if an error occured while reading gc.log
|
* message and returns -1 if an error occurred while reading gc.log
|
||||||
*/
|
*/
|
||||||
static int report_last_gc_error(void)
|
static int report_last_gc_error(void)
|
||||||
{
|
{
|
||||||
@@ -601,7 +601,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
|
|||||||
if (detach_auto) {
|
if (detach_auto) {
|
||||||
int ret = report_last_gc_error();
|
int ret = report_last_gc_error();
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
/* an I/O error occured, already reported */
|
/* an I/O error occurred, already reported */
|
||||||
exit(128);
|
exit(128);
|
||||||
if (ret == 1)
|
if (ret == 1)
|
||||||
/* Last gc --auto failed. Skip this one. */
|
/* Last gc --auto failed. Skip this one. */
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ static void *get_delta(struct object_entry *entry)
|
|||||||
delta_buf = diff_delta(base_buf, base_size,
|
delta_buf = diff_delta(base_buf, base_size,
|
||||||
buf, size, &delta_size, 0);
|
buf, size, &delta_size, 0);
|
||||||
/*
|
/*
|
||||||
* We succesfully computed this delta once but dropped it for
|
* We successfully computed this delta once but dropped it for
|
||||||
* memory reasons. Something is very wrong if this time we
|
* memory reasons. Something is very wrong if this time we
|
||||||
* recompute and create a different delta.
|
* recompute and create a different delta.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -461,7 +461,7 @@ static void prepare_commit_graph_one(struct repository *r, const char *obj_dir)
|
|||||||
/*
|
/*
|
||||||
* Return 1 if commit_graph is non-NULL, and 0 otherwise.
|
* Return 1 if commit_graph is non-NULL, and 0 otherwise.
|
||||||
*
|
*
|
||||||
* On the first invocation, this function attemps to load the commit
|
* On the first invocation, this function attempts to load the commit
|
||||||
* graph if the_repository is configured to have one.
|
* graph if the_repository is configured to have one.
|
||||||
*/
|
*/
|
||||||
static int prepare_commit_graph(struct repository *r)
|
static int prepare_commit_graph(struct repository *r)
|
||||||
|
|||||||
2
commit.h
2
commit.h
@@ -132,7 +132,7 @@ const void *repo_get_commit_buffer(struct repository *r,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Tell the commit subsytem that we are done with a particular commit buffer.
|
* Tell the commit subsystem that we are done with a particular commit buffer.
|
||||||
* The commit and buffer should be the input and return value, respectively,
|
* The commit and buffer should be the input and return value, respectively,
|
||||||
* from an earlier call to get_commit_buffer. The buffer may or may not be
|
* from an earlier call to get_commit_buffer. The buffer may or may not be
|
||||||
* freed by this call; callers should not access the memory afterwards.
|
* freed by this call; callers should not access the memory afterwards.
|
||||||
|
|||||||
@@ -558,7 +558,7 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* A critical section used in the implementation of the spawn
|
* A critical section used in the implementation of the spawn
|
||||||
* functions (mingw_spawnv[p]e()) and waitpid(). Intialised in
|
* functions (mingw_spawnv[p]e()) and waitpid(). Initialised in
|
||||||
* the replacement main() macro below.
|
* the replacement main() macro below.
|
||||||
*/
|
*/
|
||||||
extern CRITICAL_SECTION pinfo_cs;
|
extern CRITICAL_SECTION pinfo_cs;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ REM and MAKE, we must blend these two different worlds. This script
|
|||||||
REM attempts to do that.
|
REM attempts to do that.
|
||||||
REM ================================================================
|
REM ================================================================
|
||||||
REM This BAT file starts in a plain (non-developer) command prompt,
|
REM This BAT file starts in a plain (non-developer) command prompt,
|
||||||
REM searches for the "best" commmand prompt setup script, installs
|
REM searches for the "best" command prompt setup script, installs
|
||||||
REM it into the current CMD process, and exports the various MSVC
|
REM it into the current CMD process, and exports the various MSVC
|
||||||
REM environment variables for use by MAKE.
|
REM environment variables for use by MAKE.
|
||||||
REM
|
REM
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ AC_DEFUN([GIT_PARSE_WITH],
|
|||||||
|
|
||||||
# GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
|
# GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Set VAR to the value specied by --with-WITHNAME.
|
# Set VAR to the value specified by --with-WITHNAME.
|
||||||
# No verification of arguments is performed, but warnings are issued
|
# No verification of arguments is performed, but warnings are issued
|
||||||
# if either 'yes' or 'no' is specified.
|
# if either 'yes' or 'no' is specified.
|
||||||
# HELP_TEXT is presented when --help is called.
|
# HELP_TEXT is presented when --help is called.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ expression s;
|
|||||||
+ set_commit_tree(c, s)
|
+ set_commit_tree(c, s)
|
||||||
...>}
|
...>}
|
||||||
|
|
||||||
// These excluded functions must access c->maybe_tree direcly.
|
// These excluded functions must access c->maybe_tree directly.
|
||||||
// Note that if c->maybe_tree is written somewhere outside of these
|
// Note that if c->maybe_tree is written somewhere outside of these
|
||||||
// functions, then the recommended transformation will be bogus with
|
// functions, then the recommended transformation will be bogus with
|
||||||
// repo_get_commit_tree() on the LHS.
|
// repo_get_commit_tree() on the LHS.
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ __git_index_files ()
|
|||||||
esc_idx, 1)
|
esc_idx, 1)
|
||||||
} else if (esc == "n") {
|
} else if (esc == "n") {
|
||||||
# Uh-oh, a newline character.
|
# Uh-oh, a newline character.
|
||||||
# We cant reliably put a pathname
|
# We cannot reliably put a pathname
|
||||||
# containing a newline into COMPREPLY,
|
# containing a newline into COMPREPLY,
|
||||||
# and the newline would create a mess.
|
# and the newline would create a mess.
|
||||||
# Skip this path.
|
# Skip this path.
|
||||||
@@ -565,7 +565,7 @@ __git_index_files ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Drop closing double quote, if there is one.
|
# Drop closing double quote, if there is one.
|
||||||
# (There isnt any if this is a directory, as it was
|
# (There is not any if this is a directory, as it was
|
||||||
# already stripped with the trailing path components.)
|
# already stripped with the trailing path components.)
|
||||||
if (substr(p, length(p), 1) == "\"")
|
if (substr(p, length(p), 1) == "\"")
|
||||||
out = out substr(p, 1, length(p) - 1)
|
out = out substr(p, 1, length(p) - 1)
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ generate_update_branch_email()
|
|||||||
#
|
#
|
||||||
# git rev-parse --not --all | grep -v $(git rev-parse $refname)
|
# git rev-parse --not --all | grep -v $(git rev-parse $refname)
|
||||||
#
|
#
|
||||||
# Get's us to something pretty safe (apart from the small time
|
# Gets us to something pretty safe (apart from the small time
|
||||||
# between refname being read, and git rev-parse running - for that,
|
# between refname being read, and git rev-parse running - for that,
|
||||||
# I give up)
|
# I give up)
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ static int encode_to_git(const char *path, const char *src, size_t src_len,
|
|||||||
if (!dst) {
|
if (!dst) {
|
||||||
/*
|
/*
|
||||||
* We could add the blob "as-is" to Git. However, on checkout
|
* We could add the blob "as-is" to Git. However, on checkout
|
||||||
* we would try to reencode to the original encoding. This
|
* we would try to re-encode to the original encoding. This
|
||||||
* would fail and we would leave the user with a messed-up
|
* would fail and we would leave the user with a messed-up
|
||||||
* working tree. Let's try to avoid this by screaming loud.
|
* working tree. Let's try to avoid this by screaming loud.
|
||||||
*/
|
*/
|
||||||
|
|||||||
4
daemon.c
4
daemon.c
@@ -598,7 +598,7 @@ static void canonicalize_client(struct strbuf *out, const char *in)
|
|||||||
* Read the host as supplied by the client connection.
|
* Read the host as supplied by the client connection.
|
||||||
*
|
*
|
||||||
* Returns a pointer to the character after the NUL byte terminating the host
|
* Returns a pointer to the character after the NUL byte terminating the host
|
||||||
* arguemnt, or 'extra_args' if there is no host arguemnt.
|
* argument, or 'extra_args' if there is no host argument.
|
||||||
*/
|
*/
|
||||||
static char *parse_host_arg(struct hostinfo *hi, char *extra_args, int buflen)
|
static char *parse_host_arg(struct hostinfo *hi, char *extra_args, int buflen)
|
||||||
{
|
{
|
||||||
@@ -652,7 +652,7 @@ static void parse_extra_args(struct hostinfo *hi, struct argv_array *env,
|
|||||||
* service that will be run.
|
* service that will be run.
|
||||||
*
|
*
|
||||||
* If there ends up being a particular arg in the future that
|
* If there ends up being a particular arg in the future that
|
||||||
* git-daemon needs to parse specificly (like the 'host' arg)
|
* git-daemon needs to parse specifically (like the 'host' arg)
|
||||||
* then it can be parsed here and not added to 'git_protocol'.
|
* then it can be parsed here and not added to 'git_protocol'.
|
||||||
*/
|
*/
|
||||||
if (*arg) {
|
if (*arg) {
|
||||||
|
|||||||
4
diff.c
4
diff.c
@@ -2551,7 +2551,7 @@ static int scale_linear(int it, int width, int max_change)
|
|||||||
/*
|
/*
|
||||||
* make sure that at least one '-' or '+' is printed if
|
* make sure that at least one '-' or '+' is printed if
|
||||||
* there is any change to this path. The easiest way is to
|
* there is any change to this path. The easiest way is to
|
||||||
* scale linearly as if the alloted width is one column shorter
|
* scale linearly as if the allotted width is one column shorter
|
||||||
* than it is, and then add 1 to the result.
|
* than it is, and then add 1 to the result.
|
||||||
*/
|
*/
|
||||||
return 1 + (it * (width - 1) / max_change);
|
return 1 + (it * (width - 1) / max_change);
|
||||||
@@ -3196,7 +3196,7 @@ static int is_conflict_marker(const char *line, int marker_size, unsigned long l
|
|||||||
for (cnt = 1; cnt < marker_size; cnt++)
|
for (cnt = 1; cnt < marker_size; cnt++)
|
||||||
if (line[cnt] != firstchar)
|
if (line[cnt] != firstchar)
|
||||||
return 0;
|
return 0;
|
||||||
/* line[1] thru line[marker_size-1] are same as firstchar */
|
/* line[1] through line[marker_size-1] are same as firstchar */
|
||||||
if (len < marker_size + 1 || !isspace(line[marker_size]))
|
if (len < marker_size + 1 || !isspace(line[marker_size]))
|
||||||
return 0;
|
return 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
2
dir.c
2
dir.c
@@ -2489,7 +2489,7 @@ static int remove_dir_recurse(struct strbuf *path, int flag, int *kept_up)
|
|||||||
* wanted anyway
|
* wanted anyway
|
||||||
*/
|
*/
|
||||||
continue;
|
continue;
|
||||||
/* fall thru */
|
/* fall through */
|
||||||
} else if (S_ISDIR(st.st_mode)) {
|
} else if (S_ISDIR(st.st_mode)) {
|
||||||
if (!remove_dir_recurse(path, flag, &kept_down))
|
if (!remove_dir_recurse(path, flag, &kept_down))
|
||||||
continue; /* happy */
|
continue; /* happy */
|
||||||
|
|||||||
@@ -1228,7 +1228,7 @@ sub process_address_list {
|
|||||||
# domain name that corresponds the IP address in the HELO/EHLO
|
# domain name that corresponds the IP address in the HELO/EHLO
|
||||||
# handshake. This is used to verify the connection and prevent
|
# handshake. This is used to verify the connection and prevent
|
||||||
# spammers from trying to hide their identity. If the DNS and IP don't
|
# spammers from trying to hide their identity. If the DNS and IP don't
|
||||||
# match, the receiveing MTA may deny the connection.
|
# match, the receiving MTA may deny the connection.
|
||||||
#
|
#
|
||||||
# Here is a deny example of Net::SMTP with the default "localhost.localdomain"
|
# Here is a deny example of Net::SMTP with the default "localhost.localdomain"
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1659,7 +1659,7 @@ sub quot_cec {
|
|||||||
my %es = ( # character escape codes, aka escape sequences
|
my %es = ( # character escape codes, aka escape sequences
|
||||||
"\t" => '\t', # tab (HT)
|
"\t" => '\t', # tab (HT)
|
||||||
"\n" => '\n', # line feed (LF)
|
"\n" => '\n', # line feed (LF)
|
||||||
"\r" => '\r', # carrige return (CR)
|
"\r" => '\r', # carriage return (CR)
|
||||||
"\f" => '\f', # form feed (FF)
|
"\f" => '\f', # form feed (FF)
|
||||||
"\b" => '\b', # backspace (BS)
|
"\b" => '\b', # backspace (BS)
|
||||||
"\a" => '\a', # alarm (bell) (BEL)
|
"\a" => '\a', # alarm (bell) (BEL)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ unsigned int memihash(const void *buf, size_t len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Incoporate another chunk of data into a memihash
|
* Incorporate another chunk of data into a memihash
|
||||||
* computation.
|
* computation.
|
||||||
*/
|
*/
|
||||||
unsigned int memihash_cont(unsigned int hash_seed, const void *buf, size_t len)
|
unsigned int memihash_cont(unsigned int hash_seed, const void *buf, size_t len)
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Re-enable item couting when adding/removing items.
|
* Re-enable item counting when adding/removing items.
|
||||||
* If counting is currently disabled, it will force count them.
|
* If counting is currently disabled, it will force count them.
|
||||||
* It WILL NOT automatically rehash them.
|
* It WILL NOT automatically rehash them.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ static int lazy_nr_dir_threads;
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Set a minimum number of cache_entries that we will handle per
|
* Set a minimum number of cache_entries that we will handle per
|
||||||
* thread and use that to decide how many threads to run (upto
|
* thread and use that to decide how many threads to run (up to
|
||||||
* the number on the system).
|
* the number on the system).
|
||||||
*
|
*
|
||||||
* For guidance setting the lower per-thread bound, see:
|
* For guidance setting the lower per-thread bound, see:
|
||||||
|
|||||||
@@ -623,7 +623,7 @@ static int show_gitcomp(const struct option *opts)
|
|||||||
* Scan and may produce a new option[] array, which should be used
|
* Scan and may produce a new option[] array, which should be used
|
||||||
* instead of the original 'options'.
|
* instead of the original 'options'.
|
||||||
*
|
*
|
||||||
* Right now this is only used to preprocess and substitue
|
* Right now this is only used to preprocess and substitute
|
||||||
* OPTION_ALIAS.
|
* OPTION_ALIAS.
|
||||||
*/
|
*/
|
||||||
static struct option *preprocess_options(struct parse_opt_ctx_t *ctx,
|
static struct option *preprocess_options(struct parse_opt_ctx_t *ctx,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
|
#define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compare series of commmits in RANGE1 and RANGE2, and emit to the
|
* Compare series of commits in RANGE1 and RANGE2, and emit to the
|
||||||
* standard output. NULL can be passed to DIFFOPT to use the built-in
|
* standard output. NULL can be passed to DIFFOPT to use the built-in
|
||||||
* default.
|
* default.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1790,7 +1790,7 @@ static struct cache_entry *create_from_disk(struct mem_pool *ce_mem_pool,
|
|||||||
const unsigned char *cp = (const unsigned char *)name;
|
const unsigned char *cp = (const unsigned char *)name;
|
||||||
size_t strip_len, previous_len;
|
size_t strip_len, previous_len;
|
||||||
|
|
||||||
/* If we're at the begining of a block, ignore the previous name */
|
/* If we're at the beginning of a block, ignore the previous name */
|
||||||
strip_len = decode_varint(&cp);
|
strip_len = decode_varint(&cp);
|
||||||
if (previous_ce) {
|
if (previous_ce) {
|
||||||
previous_len = previous_ce->ce_namelen;
|
previous_len = previous_ce->ce_namelen;
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ int refs_rename_ref_available(struct ref_store *refs,
|
|||||||
* after calling ref_iterator_advance() again or calling
|
* after calling ref_iterator_advance() again or calling
|
||||||
* ref_iterator_abort(), you must make a copy. When the iteration has
|
* ref_iterator_abort(), you must make a copy. When the iteration has
|
||||||
* been exhausted, ref_iterator_advance() releases any resources
|
* been exhausted, ref_iterator_advance() releases any resources
|
||||||
* assocated with the iteration, frees the ref_iterator object, and
|
* associated with the iteration, frees the ref_iterator object, and
|
||||||
* returns ITER_DONE. If you want to abort the iteration early, call
|
* returns ITER_DONE. If you want to abort the iteration early, call
|
||||||
* ref_iterator_abort(), which also frees the ref_iterator object and
|
* ref_iterator_abort(), which also frees the ref_iterator object and
|
||||||
* any associated resources. If there was an internal error advancing
|
* any associated resources. If there was an internal error advancing
|
||||||
|
|||||||
@@ -200,9 +200,9 @@ int repo_submodule_init(struct repository *subrepo,
|
|||||||
|
|
||||||
if (repo_init(subrepo, gitdir.buf, worktree.buf)) {
|
if (repo_init(subrepo, gitdir.buf, worktree.buf)) {
|
||||||
/*
|
/*
|
||||||
* If initilization fails then it may be due to the submodule
|
* If initialization fails then it may be due to the submodule
|
||||||
* not being populated in the superproject's worktree. Instead
|
* not being populated in the superproject's worktree. Instead
|
||||||
* we can try to initilize the submodule by finding it's gitdir
|
* we can try to initialize the submodule by finding it's gitdir
|
||||||
* in the superproject's 'modules' directory. In this case the
|
* in the superproject's 'modules' directory. In this case the
|
||||||
* submodule would not have a worktree.
|
* submodule would not have a worktree.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ void repo_clear(struct repository *repo);
|
|||||||
* be allocated if needed.
|
* be allocated if needed.
|
||||||
*
|
*
|
||||||
* Return the number of index entries in the populated index or a value less
|
* Return the number of index entries in the populated index or a value less
|
||||||
* than zero if an error occured. If the repository's index has already been
|
* than zero if an error occurred. If the repository's index has already been
|
||||||
* populated then the number of entries will simply be returned.
|
* populated then the number of entries will simply be returned.
|
||||||
*/
|
*/
|
||||||
int repo_read_index(struct repository *repo);
|
int repo_read_index(struct repository *repo);
|
||||||
|
|||||||
2
rerere.c
2
rerere.c
@@ -431,7 +431,7 @@ static int handle_conflict(struct strbuf *out, struct rerere_io *io,
|
|||||||
* and NUL concatenated together.
|
* and NUL concatenated together.
|
||||||
*
|
*
|
||||||
* Return 1 if conflict hunks are found, 0 if there are no conflict
|
* Return 1 if conflict hunks are found, 0 if there are no conflict
|
||||||
* hunks and -1 if an error occured.
|
* hunks and -1 if an error occurred.
|
||||||
*/
|
*/
|
||||||
static int handle_path(unsigned char *hash, struct rerere_io *io, int marker_size)
|
static int handle_path(unsigned char *hash, struct rerere_io *io, int marker_size)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ static GIT_PATH_FUNC(rebase_path_rewritten_pending,
|
|||||||
"rebase-merge/rewritten-pending")
|
"rebase-merge/rewritten-pending")
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The path of the file containig the OID of the "squash onto" commit, i.e.
|
* The path of the file containing the OID of the "squash onto" commit, i.e.
|
||||||
* the dummy commit used for `reset [new root]`.
|
* the dummy commit used for `reset [new root]`.
|
||||||
*/
|
*/
|
||||||
static GIT_PATH_FUNC(rebase_path_squash_onto, "rebase-merge/squash-onto")
|
static GIT_PATH_FUNC(rebase_path_squash_onto, "rebase-merge/squash-onto")
|
||||||
@@ -4644,7 +4644,7 @@ static int make_script_with_merges(struct pretty_print_context *pp,
|
|||||||
label_oid(oid, "branch-point", &state);
|
label_oid(oid, "branch-point", &state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add HEAD as implict "tip of branch" */
|
/* Add HEAD as implicit "tip of branch" */
|
||||||
if (!iter->next)
|
if (!iter->next)
|
||||||
tips_tail = &commit_list_insert(iter->item,
|
tips_tail = &commit_list_insert(iter->item,
|
||||||
tips_tail)->next;
|
tips_tail)->next;
|
||||||
@@ -4826,7 +4826,7 @@ void todo_list_add_exec_commands(struct todo_list *todo_list,
|
|||||||
* are considered part of the pick, so we insert the commands *after*
|
* are considered part of the pick, so we insert the commands *after*
|
||||||
* those chains if there are any.
|
* those chains if there are any.
|
||||||
*
|
*
|
||||||
* As we insert the exec commands immediatly after rearranging
|
* As we insert the exec commands immediately after rearranging
|
||||||
* any fixups and before the user edits the list, a fixup chain
|
* any fixups and before the user edits the list, a fixup chain
|
||||||
* can never contain comments (any comments are empty picks that
|
* can never contain comments (any comments are empty picks that
|
||||||
* have been commented out because the user did not specify
|
* have been commented out because the user did not specify
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ static int update_info_file(char *path,
|
|||||||
uic.old_fp = fopen_or_warn(path, "r");
|
uic.old_fp = fopen_or_warn(path, "r");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* uic_printf will compare incremental comparison aginst old_fp
|
* uic_printf will compare incremental comparison against old_fp
|
||||||
* and mark uic as stale if needed
|
* and mark uic as stale if needed
|
||||||
*/
|
*/
|
||||||
ret = generate(&uic);
|
ret = generate(&uic);
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ void string_list_remove(struct string_list *list, const char *string,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the given string is part of a sorted list. If it is part of the list,
|
* Check if the given string is part of a sorted list. If it is part of the list,
|
||||||
* return the coresponding string_list_item, NULL otherwise.
|
* return the corresponding string_list_item, NULL otherwise.
|
||||||
*/
|
*/
|
||||||
struct string_list_item *string_list_lookup(struct string_list *list, const char *string);
|
struct string_list_item *string_list_lookup(struct string_list *list, const char *string);
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ static int tr2sid_nr_git_parents;
|
|||||||
* "H<first_8_chars_of_sha1_of_hostname>"
|
* "H<first_8_chars_of_sha1_of_hostname>"
|
||||||
* "Localhost" when no hostname.
|
* "Localhost" when no hostname.
|
||||||
*
|
*
|
||||||
* where <process> is a 9 character string containing the least signifcant
|
* where <process> is a 9 character string containing the least significant
|
||||||
* 32 bits in the process-id.
|
* 32 bits in the process-id.
|
||||||
* "P<pid>"
|
* "P<pid>"
|
||||||
* (This is an abribrary choice. On most systems pid_t is a 32 bit value,
|
* (This is an abribrary choice. On most systems pid_t is a 32 bit value,
|
||||||
|
|||||||
@@ -275,9 +275,9 @@ static int check_submodule_move_head(const struct cache_entry *ce,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Preform the loading of the repository's gitmodules file. This function is
|
* Perform the loading of the repository's gitmodules file. This function is
|
||||||
* used by 'check_update()' to perform loading of the gitmodules file in two
|
* used by 'check_update()' to perform loading of the gitmodules file in two
|
||||||
* differnt situations:
|
* different situations:
|
||||||
* (1) before removing entries from the working tree if the gitmodules file has
|
* (1) before removing entries from the working tree if the gitmodules file has
|
||||||
* been marked for removal. This situation is specified by 'state' == NULL.
|
* been marked for removal. This situation is specified by 'state' == NULL.
|
||||||
* (2) before checking out entries to the working tree if the gitmodules file
|
* (2) before checking out entries to the working tree if the gitmodules file
|
||||||
|
|||||||
2
url.c
2
url.c
@@ -5,7 +5,7 @@ int is_urlschemechar(int first_flag, int ch)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* The set of valid URL schemes, as per STD66 (RFC3986) is
|
* The set of valid URL schemes, as per STD66 (RFC3986) is
|
||||||
* '[A-Za-z][A-Za-z0-9+.-]*'. But use sightly looser check
|
* '[A-Za-z][A-Za-z0-9+.-]*'. But use slightly looser check
|
||||||
* of '[A-Za-z0-9][A-Za-z0-9+.-]*' because earlier version
|
* of '[A-Za-z0-9][A-Za-z0-9+.-]*' because earlier version
|
||||||
* of check used '[A-Za-z0-9]+' so not to break any remote
|
* of check used '[A-Za-z0-9]+' so not to break any remote
|
||||||
* helpers.
|
* helpers.
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ void discard_hunk_line(void *priv,
|
|||||||
* Compare the strings l1 with l2 which are of size s1 and s2 respectively.
|
* Compare the strings l1 with l2 which are of size s1 and s2 respectively.
|
||||||
* Returns 1 if the strings are deemed equal, 0 otherwise.
|
* Returns 1 if the strings are deemed equal, 0 otherwise.
|
||||||
* The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces
|
* The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces
|
||||||
* are treated for the comparision.
|
* are treated for the comparison.
|
||||||
*/
|
*/
|
||||||
int xdiff_compare_lines(const char *l1, long s1,
|
int xdiff_compare_lines(const char *l1, long s1,
|
||||||
const char *l2, long s2, long flags);
|
const char *l2, long s2, long flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user