Skip to content

Commit 73178c7

Browse files
committed
fix(commands): update rev command description and examples #257
- Update rev command description to clarify it reads changes by hash. - Add example for rev command in Chinese.
1 parent da5b54d commit 73178c7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/BuiltinCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum class BuiltinCommand(
1313
val requireProps: Boolean = false,
1414
) {
1515
FILE("file", "Read the content of a file", AllIcons.Actions.Copy, true, true),
16-
REV("rev", "Read git change by file", AllIcons.Vcs.History, true, true),
16+
REV("rev", "Read git change by hash", AllIcons.Vcs.History, true, true),
1717

1818
/**
1919
* Every language will have a symbol completion, which is the most basic completion, for example,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
获取某个 hash 的代码变更
12
/rev:38d23de2

exts/devins-lang/src/main/resources/agent/toolExamples/shell.devin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
/shell:execute
55
```
66
echo "Hello, World!"
7-
```
7+
```

0 commit comments

Comments
 (0)