We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ede05 commit 9d457fdCopy full SHA for 9d457fd
asyncgit/src/sync/diff.rs
@@ -355,23 +355,17 @@ pub fn get_diff(
355
),
356
);
357
358
- let old_revspec = if stage {
359
- format!("HEAD:{p}")
360
- } else {
361
- format!(":{p}")
362
- };
363
- let (old_blob_id, old_root) =
364
- resolve_revspec(&gix_repo, &old_revspec);
365
-
366
// TODO:
367
// Make sure that the revspec logic is correct, i. e. uses the correct syntax for all the
368
// relevant cases.
369
- let new_revspec = if stage {
370
+ let (old_revspec,new_revspec) = if stage {
+ (format!("HEAD:{p}"),format!(":{p}"))
371
} else {
372
- p.to_string()
+ (format!(":{p}"), p.to_string())
373
};
374
+ let (old_blob_id, old_root) =
+ resolve_revspec(&gix_repo, &old_revspec);
375
let (new_blob_id, new_root) =
376
resolve_revspec(&gix_repo, &new_revspec);
377
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments