Skip to content

Commit 5149902

Browse files
committed
Merge branch 'en/misc-doc-fixes'
Misc doc fixes. * en/misc-doc-fixes: name-hash.c: remove duplicate word in comment hashmap: fix documentation misuses of -> versus . git-filter-branch.txt: correct argument name typo
2 parents bcb06e2 + 77363a5 commit 5149902

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Documentation/git-filter-branch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ create hoards of confusing empty commits
649649
commits from before the filtering operation are also pruned instead of
650650
just pruning commits that became empty due to filtering rules.
651651

652-
* If --prune empty is specified, sometimes empty commits are missed
652+
* If --prune-empty is specified, sometimes empty commits are missed
653653
and left around anyway (a somewhat rare bug, but it happens...)
654654

655655
* A minor issue, but users who have a goal to update all names and

hashmap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
*
6060
* if (!strcmp("print_all_by_key", action)) {
6161
* struct long2string k, *e;
62-
* hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
62+
* hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
6363
* k.key = key;
6464
*
6565
* flags &= ~COMPARE_VALUE;
@@ -87,12 +87,12 @@
8787
*
8888
* if (!strcmp("has_exact_match_no_heap_alloc", action)) {
8989
* struct long2string k;
90-
* hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
90+
* hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
9191
* k.key = key;
9292
*
9393
* flags |= COMPARE_VALUE;
9494
* printf("%sfound\n",
95-
* hashmap_get(&map, &k->ent, value) ? "" : "not ");
95+
* hashmap_get(&map, &k.ent, value) ? "" : "not ");
9696
* }
9797
*
9898
* if (!strcmp("end", action)) {

name-hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static int lookup_lazy_params(struct index_state *istate)
218218
* However, the hashmap is going to put items into bucket
219219
* chains based on their hash values. Use that to create n
220220
* mutexes and lock on mutex[bucket(hash) % n]. This will
221-
* decrease the collision rate by (hopefully) by a factor of n.
221+
* decrease the collision rate by (hopefully) a factor of n.
222222
*/
223223
static void init_dir_mutex(void)
224224
{

0 commit comments

Comments
 (0)