Commits
- Commit:
20ccae39452cdf85f57023c8a7f029b0545adfa7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
cope with directory entries returned from readdir(3) with type DT_UNKNOWN
Such directory entries need special handling to make our directory traversal
code work on filesystems that do not support the d_type optimization.
I found this problem because references stored in the refs/ directory were
not shown by 'got log' and 'tog log' when a repository is mounted over NFS.
helpful feedback + ok millert@
- Commit:
3143d852d788e42c45a61252acb935a698efed2f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix ignores when a path is passed to 'got status'
Problem reported by semarie, who also provided initial regression test code.
ok semarie
- Commit:
0553429dd6a160e5615f7c7db34647a43c8ba157
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix symlink check in got_fileindex_entry_update()
- Commit:
8bd8568cf977e484d823877e3bff4e426597c513
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove file index entries from RB tree upon flush to disk
Fixes a file index corruption problem with 'got rebase' found by tracey.
ok tracey
- Commit:
3969253a0514c1e4c685eb413d74cd89f40ecaf0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove implicit entry update from got_fileindex_entry_alloc(); just alloc
- Commit:
71ec7eacbb0fd56955c10494dee4728903934ccf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
kill left-over debug code snippet from a46b9f33fb3018765180eb67cc954d863a5cd525
- Commit:
a46b9f33fb3018765180eb67cc954d863a5cd525
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix a bug where 'got revert -R' failed on added subtrees
The command could fail with "got: no such entry found in tree".
This problem is reproduced by the regression test added in this commit.
This happened because file index entries were processed in the wrong
order by diff_fileindex_dir(). To fix this, keep removed entries in
the RB tree and skip them when the file index is written out, rather
than removing entries from the RB tree immediately causing side-effects
for RB_NEXT and friends.
- Commit:
3dcf3e7438f8c2aa3c8cb3855f0f52718d0c6c3b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rewind directory file pointer before re-opening the directory
- Commit:
965988c576b566cf19bea08f244a05fcd811e9dc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug memory leak introduced in commit 6fc93f379e4f736797334532691d298244b2b014
- Commit:
22902794fc6f1f4d5bf6b01fdc20e783fb86af97
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
this lseek() call in read_dirlist() isn't needed
- Commit:
7f91a1339fbcdc302e1cd799d2c31ac7acc52bb7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
open files during status crawl in a race-free way, too
- Commit:
ae8965b97df6dc795f14d7b60a326843a5bfbea0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing fdopendir() error check in read_dirlist()
- Commit:
6fc93f379e4f736797334532691d298244b2b014
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent the status crawl from racing with paths changing in the filesystem
- Commit:
56e0773df7e12fc69c1f6f9d171c93fd78a13d0e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
convert tree entries from SIMPLEQ to an array
- Commit:
6ced7ba8b0a1cecd667313e4e45f51be404f97c8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid a NULL deref in diff_fileindex_tree(); found by jj@ with scan-build
- Commit:
40b289d73058601f96681c0e1048fce46c1751b1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got status' ignore inaccessible directories (reported by semarie)
- Commit:
63c5ca5de411be54e75480b0efec04014ffab46e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
detect and ignore Git submodules
- Commit:
b15816dd9e35575606d011dad4a3dcac204340da
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in got_fileindex_entry_update() don't hide errors other than ENOENT
- Commit:
ef5e02fd4b2b09f48d9f96a78d13f6655c85ce81
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't clobber errno value of opendir(3); found by Hiltjo Posthuma
- Commit:
8957ae76febe5a6d3784d953344e6f765b1a6ace
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that file index entry perms map to regular files
- Commit:
3cd04235095aa7bdcf00df666cae3920964aec22
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix definition of GOT_FILEIDX_F_STAGE_SHIFT
- Commit:
0cb83759ff5e9ca28c397bb04edb8e0629eba4bd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement got_worktree_stage_paths()
- Commit:
df3352425b599a7ca9e473a9024c6b5333778dc5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add staged blob SHA1 to on-disk file index; bump file index version
- Commit:
8371870086b067a4afbd0acf0abeb2aaa520e862
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
define file index stage flags
- Commit:
3f762da01631c2ce4d05c3a9204014ffee05cbb3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename file index entry variables called 'entry' to 'ie'