We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ad4d05 commit 5310ffeCopy full SHA for 5310ffe
src/log.rs
@@ -1,5 +1,8 @@
1
use duct::cmd;
2
+
3
+#[cfg(unix)]
4
use skim::prelude::*;
5
6
use std::io::Cursor;
7
8
use crate::config::AppConfig;
@@ -47,6 +50,7 @@ pub(crate) fn command_log_mine(
47
50
Ok(())
48
51
}
49
52
53
54
pub(crate) fn pick_from_log_mine() -> anyhow::Result<String> {
55
// Get the output from command_log_mine
56
let revset = "mine() & ~description(exact:'') & bookmarks()";
@@ -118,3 +122,10 @@ pub(crate) fn pick_from_log_mine() -> anyhow::Result<String> {
118
122
119
123
Ok(commit_id.to_string())
120
124
125
126
+#[cfg(not(unix))]
127
+pub(crate) fn pick_from_log_mine() -> anyhow::Result<String> {
128
+ Err(anyhow::anyhow!(
129
+ "Interactive selection is not supported on Windows"
130
+ ))
131
+}
0 commit comments