Skip to content

Commit c6b5ebe

Browse files
committed
chore(template): clarify git --no-pager flag placement and usage
1 parent 21dd226 commit c6b5ebe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

shello_cli/agent/template.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@
238238
239239
<version_control>
240240
When working with git:
241-
- Always use --no-pager flag to avoid pagination issues
241+
- Use --no-pager as a GLOBAL flag BEFORE the command: git --no-pager diff (NOT git diff --no-pager)
242+
- Correct: git --no-pager diff --cached
243+
- Correct: git --no-pager log -10
244+
- Wrong: git diff --no-pager ❌
242245
- For "recent changes", check git status/diff first
243246
- When committing (if asked), include: Co-Authored-By: Shello <assistant@shello.dev>
244247
- IMPORTANT: NEVER commit unless user explicitly asks

0 commit comments

Comments
 (0)