- 09 6月, 2015 1 次提交
-
-
由 Ben S 提交于
-
- 12 5月, 2015 3 次提交
- 11 5月, 2015 2 次提交
- 23 4月, 2015 1 次提交
-
-
由 Ben S 提交于
Exa now uses the new IO, Path, and Filesystem libraries that have been out for a while now. Unfortunately, the new libraries don't *entirely* cover the range of the old libraries just yet: in particular, to become more cross-platform, the data in `UnstableFileStat` isn't available in the Unix `MetadataExt` yet. Much of this is contained in rust-lang/rfcs#1044 (which is due to be implemented in rust-lang/rust#14711), but it's not *entirely* there yet. As such, this commits a serious loss of functionality: no symlink viewing, no hard links or blocks, or users or groups. Also, some of the code could now be optimised. I just wanted to commit this to sort out most of the 'teething problems' of having a different path system in advance. Here's an example problem that took ages to fix for you, just because you read this far: when I first got exa to compile, it worked mostly fine, except calling `exa` by itself didn't list the current directory. I traced where the command-line options were being generated, to where files and directories were sorted, to where the threads were spawned... and the problem turned out to be that it was using the full path as the file name, rather than just the last component, and these paths happened to begin with `.`, so it thought they were dotfiles.
-
- 26 3月, 2015 1 次提交
-
-
由 Ben S 提交于
This module provides feature-specific implementations, and also dummy implementations for when they aren't supported by the system or OS. Doing it this way limits all the #[cfg(feature)] annotations, as we can now just include the module or not.
-
- 23 3月, 2015 1 次提交
-
-
由 Ben S 提交于
- old_path::Path isn't imported by default anymore - range -> ..
-
- 22 3月, 2015 1 次提交
-
-
由 Eirik Schwenke 提交于
-
- 02 3月, 2015 1 次提交
-
-
由 Ben S 提交于
-
- 23 2月, 2015 1 次提交
-
-
由 Corey Ford 提交于
The challenge is that the paths returned from libgit2's status listing are from the perspective of the Git repository and thus effectively relative to the working tree root, while the other paths we're manipulating are (potentially) relative to our current working directory. So, if those two aren't identical (if running from outside the working tree, or from a subdirectory), the paths won't match up. A reasonably reliable way around this is to resolve both types of paths to absolute paths before comparing them. This fixes #15 at a basic level, anyway. What still doesn't work: referring to the working tree or one of its descendants via a symlink. For that, we'd probably need to fully resolve symlinks in the file path. (The unwrap_or()'s are messy and will probably just result in missing status information, but then, what information could you hope to get without having both a current working directory and a Git working tree?)
-
- 14 2月, 2015 1 次提交
-
-
由 Ben S 提交于
-
- 03 2月, 2015 1 次提交
-
-
由 Ben S 提交于
There's still a lot to do, but this is actually *something*. The tree hierarchy is displayed using hashes at the start of a line. I want to have it just before the filename, but this will need some changes to the way that columns are handled.
-
- 01 2月, 2015 2 次提交
- 29 1月, 2015 2 次提交
- 28 1月, 2015 2 次提交
- 27 1月, 2015 3 次提交
- 24 1月, 2015 1 次提交
-
-
由 Ben S 提交于
-
- 13 1月, 2015 1 次提交
-
-
由 Benjamin Sago 提交于
-
- 12 12月, 2014 2 次提交
- 26 11月, 2014 1 次提交
-
-
由 Ben S 提交于
-
- 25 11月, 2014 1 次提交
-
-
由 Ben S 提交于
This finally fixes the issue where trying to list a file causes a crash. Also, tidy up some of the uses of references.
-
- 24 11月, 2014 1 次提交
-
-
由 Ben S 提交于
-
- 29 6月, 2014 1 次提交
-
-
由 Ben S 提交于
-
- 22 6月, 2014 1 次提交
-
-
由 Ben S 提交于
This requires the dir field to store a reference to the path that created it, so that path can be used to join onto the filename so it can be properly statted.
-
- 21 6月, 2014 2 次提交
- 17 6月, 2014 1 次提交
-
-
由 Ben S 提交于
This new object is then passed down to the File, so it can see what files are around it. This means it doesn't need to re-query the filesystem several times per file, instead using the in-memory copy. Also, switch to using the built-in Path#with_extension method.
-