File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ keywords = ["git"]
14
14
[dependencies ]
15
15
scopetime = { path = " ../scopetime" , version = " 0.1" }
16
16
git2 = " 0.13"
17
+ # git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
18
+ # git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="fc13dcc", features = ["vendored-openssl"]}
17
19
# pinning to vendored openssl, using the git2 feature this gets lost with new resolver
18
20
openssl-sys = { version = ' 0.9' , features = [" vendored" ] }
19
- # git2 = { path = "../../github/git2-rs", features = ["vendored-openssl"]}
20
- # git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="513a8c9", features = ["vendored-openssl"]}
21
21
rayon-core = " 1.9"
22
22
crossbeam-channel = " 0.5"
23
23
log = " 0.4"
Original file line number Diff line number Diff line change @@ -94,3 +94,12 @@ pub fn hash<T: Hash + ?Sized>(v: &T) -> u64 {
94
94
v. hash ( & mut hasher) ;
95
95
hasher. finish ( )
96
96
}
97
+
98
+ ///
99
+ pub fn register_tracing_logging ( ) -> bool {
100
+ git2:: trace_set ( git2:: TraceLevel :: Trace , git_trace)
101
+ }
102
+
103
+ fn git_trace ( level : git2:: TraceLevel , msg : & str ) {
104
+ log:: info!( "[{:?}]: {}" , level, msg) ;
105
+ }
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ fn main() -> Result<()> {
97
97
98
98
let _profiler = Profiler :: new ( ) ;
99
99
100
+ asyncgit:: register_tracing_logging ( ) ;
101
+
100
102
if !valid_path ( ) ? {
101
103
eprintln ! ( "invalid path\n please run gitui inside of a non-bare git repository" ) ;
102
104
return Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments