Commit 3a429d3
path.c: simplify adjust_shared_perm()
All calls to set_shared_perm() use mode == 0, so simplify the
function.
Because all callers use the macro adjust_shared_perm(path) from
cache.h to call this function, convert it to a proper function,
losing set_shared_perm().
Since path.c has much more functions than just mkpath() these days,
drop the stale comment about it.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 0117c2f commit 3a429d3
2 files changed
Lines changed: 8 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
717 | | - | |
| 716 | + | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 2 | + | |
12 | 3 | | |
13 | 4 | | |
14 | 5 | | |
| |||
405 | 396 | | |
406 | 397 | | |
407 | 398 | | |
408 | | - | |
| 399 | + | |
409 | 400 | | |
410 | | - | |
| 401 | + | |
411 | 402 | | |
412 | 403 | | |
413 | | - | |
414 | | - | |
415 | 404 | | |
416 | 405 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
423 | 410 | | |
424 | 411 | | |
425 | 412 | | |
| |||
0 commit comments