equal
deleted
inserted
replaced
501 cwd = base_dir).check_rc(_ <= 1) |
501 cwd = base_dir).check_rc(_ <= 1) |
502 File.read(patch) |
502 File.read(patch) |
503 } |
503 } |
504 } |
504 } |
505 |
505 |
|
506 def git_clone(url: String, target: Path, |
|
507 checkout: String = "HEAD", |
|
508 ssh: SSH.System = SSH.Local, |
|
509 progress: Progress = new Progress |
|
510 ): Unit = { |
|
511 progress.echo("Cloning " + quote(url)) |
|
512 bash( |
|
513 "git clone --quiet --no-checkout " + Bash.string(url) + " . && " + |
|
514 "git checkout --quiet --detach " + Bash.string(checkout), |
|
515 ssh = ssh, cwd = ssh.make_directory(target)).check |
|
516 } |
|
517 |
506 def open(arg: String): Unit = |
518 def open(arg: String): Unit = |
507 bash("exec \"$ISABELLE_OPEN\" " + Bash.string(arg) + " >/dev/null 2>/dev/null &") |
519 bash("exec \"$ISABELLE_OPEN\" " + Bash.string(arg) + " >/dev/null 2>/dev/null &") |
508 |
520 |
509 def pdf_viewer(arg: Path): Unit = |
521 def pdf_viewer(arg: Path): Unit = |
510 bash("exec \"$PDF_VIEWER\" " + File.bash_path(arg) + " >/dev/null 2>/dev/null &") |
522 bash("exec \"$PDF_VIEWER\" " + File.bash_path(arg) + " >/dev/null 2>/dev/null &") |