GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — clibrowser/cligit/src/commands/rebase.rs at main · allthingssecurity/clibrowser Expand file tree/ Copy pathrebase.rsMore file actions 23 lines (21 loc) · 912 Bytes / Copy pathrebase.rsFile metadata and controls23 lines (21 loc) · 912 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 use anyhow::Result; use crate::cli::RebaseArgs; use crate::git_ctx::GitContext; use crate::git_shell::shell_git; use crate::models::*; use crate::output::OutputConfig; pub fn execute(args: RebaseArgs, ctx: &GitContext, out: &OutputConfig) -> Result<i32> { let result = if args.abort { let output = shell_git(&["rebase", "--abort"], &ctx.workdir)?; WriteResult { message: format!("Rebase aborted. {}", output.trim()) } } else if args.r#continue { let output = shell_git(&["rebase", "--continue"], &ctx.workdir)?; WriteResult { message: format!("Rebase continued. {}", output.trim()) } } else { let output = shell_git(&["rebase", &args.onto], &ctx.workdir)?; WriteResult { message: format!("Rebased onto {}. {}", args.onto, output.trim()) } }; if out.json { out.print_json(&result); } else { out.print_human(&result.message); } Ok(0) } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |