navid/veins / commit

bdbb60b4f08a

Navid M <navidmomtahen@gmail.com> · 2026-11-26

parents: f23cf6101027

Browse files at this commit · Download source

all: rename conflicts to xs for short
--- a/veins/src/cli/help_cmd.sx+++ b/veins/src/cli/help_cmd.sx@@ -23,7 +23,7 @@     stdio.puts("  diff         show a unified diff")     stdio.puts("  merge        create a merge commit; never fails")     stdio.puts("  rebase       rewrite changes onto a new parent")-    stdio.puts("  conflicts    list conflicted paths")+    stdio.puts("  xs           list conflicted paths")     stdio.puts("  resolve      resolve a conflicted path")     stdio.puts("  new          start a new change")     stdio.puts("  bmk          manage named branch pointers")@@ -137,8 +137,8 @@     stdio.puts("  -d, -destination <rev>    new parent") } -fn show_conflicts() void = trust {-    stdio.puts("usage: vn conflicts [-porcelain]")+fn show_xs() void = trust {+    stdio.puts("usage: vn xs [-porcelain]")     stdio.puts("")     stdio.puts("list conflicted paths and, for text conflicts, conflicting line ranges")     stdio.puts("")@@ -361,8 +361,8 @@         show_rebase()         return 0     }-    if cmd_is(cmd, c"conflicts", 9) {-        show_conflicts()+    if cmd_is(cmd, c"xs", 2) {+        show_xs()         return 0     }     if cmd_is(cmd, c"resolve", 7) {--- a/veins/src/cli/resolve_cmd.sx+++ b/veins/src/cli/resolve_cmd.sx@@ -1,4 +1,4 @@-/// `vn conflicts` and `vn resolve`.+/// `vn xs` and `vn resolve`.  val str        = use("std/string") val stdio      = use("std/stdio")@@ -243,7 +243,7 @@     return none } -pub fn conflicts(repo: layout.Repo, porcelain: bool) i32 = trust {+pub fn xs(repo: layout.Repo, porcelain: bool) i32 = trust {     val snap: i32 = snapshot.run(repo)     if snap != 0 {         return snap--- a/veins/src/main.sx+++ b/veins/src/main.sx@@ -387,7 +387,7 @@     } } -fn run_conflicts(args: list[ref u8], start: usize) i32 = trust {+fn run_xs(args: list[ref u8], start: usize) i32 = trust {     val porcelain: mut bool = false     val end_flags: mut bool = false     val i: mut usize = start@@ -413,7 +413,7 @@     val repo_opt = open_repo_or_error(str.from_cstr(c"."))     match repo_opt {         some repo => {-            val status: i32 = resolve_cmd.conflicts(repo, porcelain)+            val status: i32 = resolve_cmd.xs(repo, porcelain)             layout.free_repo(repo)             return status         }@@ -479,7 +479,7 @@         some repo => {             val status: mut i32 = 1             if list_only {-                status = resolve_cmd.conflicts(repo, false)+                status = resolve_cmd.xs(repo, false)             } elif @len(paths) == 0 {                 msg.error_prefix()                 stdio.eprint("resolve requires at least one path\n", {})@@ -790,8 +790,8 @@     if cmd_is(cmd, c"rebase", 6) {         return run_rebase(args, 2)     }-    if cmd_is(cmd, c"conflicts", 9) {-        return run_conflicts(args, 2)+    if cmd_is(cmd, c"xs", 2) {+        return run_xs(args, 2)     }     if cmd_is(cmd, c"resolve", 7) {         return run_resolve(args, 2)