gemini-cli/packages/cli/src/ui/hooks
DeWitt Clinton 27a773d5b2
Display git commit info in the /about section. (#567)
This change detects the most recent git commit short hash and writes it to the `GIT_COMMIT_INFO` constant in `packages/cli/src/generated/git-commit.sh`, optionally appending the string "(local modifications)" if additional local changes after that commit are detected.

If set, this string is displayed in the `/about` dialog as well as passed into the `/bug` template.

Example:

```
> /about

╭───────────────────────────────────────────────────────────────────────────╮
│                                                                           │
│ About Gemini CLI                                                          │
│                                                                           │
│ CLI Version               development                                     │
│ Git Commit                43370ab (local modifications)                   │
│ Model                     gemini-2.5-pro-preview-05-06                    │
│ Sandbox                   sandbox-exec (minimal)                          │
│ OS                        darwin v23.11.0                                 │
│                                                                           │
╰───────────────────────────────────────────────────────────────────────────╯
```

Additionally, this change updates `.gitignore` to ignore the generated files, `scripts/clean.sh` to remove them, and adds a `npm run generate` stage for this and any other generators we need to write.
2025-05-28 00:04:26 -07:00
..
atCommandProcessor.test.ts Support Images and PDFs (#447) 2025-05-20 13:02:41 -07:00
atCommandProcessor.ts Add globbing support to @-command file suggestions and resolution. (#462) 2025-05-21 12:22:18 -07:00
shellCommandProcessor.test.ts use pending history item for shell mode, update as output is received (#471) 2025-05-21 13:16:50 -07:00
shellCommandProcessor.ts use pending history item for shell mode, update as output is received (#471) 2025-05-21 13:16:50 -07:00
slashCommandProcessor.test.ts Display git commit info in the /about section. (#567) 2025-05-28 00:04:26 -07:00
slashCommandProcessor.ts Display git commit info in the /about section. (#567) 2025-05-28 00:04:26 -07:00
useAutoAcceptIndicator.test.ts feat: Add auto-accept indicator and toggle 2025-05-17 22:27:22 -07:00
useAutoAcceptIndicator.ts feat: Add auto-accept indicator and toggle 2025-05-17 22:27:22 -07:00
useCompletion.ts Add globbing support to @-command file suggestions and resolution. (#462) 2025-05-21 12:22:18 -07:00
useConsoleMessages.test.ts Make console message support more robust to logging in the middle of rendering. (#521) 2025-05-23 22:51:47 -07:00
useConsoleMessages.ts Make console message support more robust to logging in the middle of rendering. (#521) 2025-05-23 22:51:47 -07:00
useGeminiStream.ts live output from shell tool (#573) 2025-05-27 15:40:18 -07:00
useHistoryManager.test.ts refactor(cli): Centralize history management via useHistoryManager hook (#261) 2025-05-06 16:20:28 -07:00
useHistoryManager.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useInputHistory.test.ts Fix bug updating the cursor after navigating history. (#507) 2025-05-23 09:40:01 -07:00
useInputHistory.ts Fix bug updating the cursor after navigating history. (#507) 2025-05-23 09:40:01 -07:00
useLoadingIndicator.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useLoadingIndicator.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useLogger.ts Add Logger for command history (#435) 2025-05-21 00:36:22 -07:00
usePhraseCycler.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
usePhraseCycler.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useRefreshMemoryCommand.ts This commit introduces the hierarchical memory feature, allowing GEMI… (#327) 2025-05-14 12:37:17 -07:00
useShowMemoryCommand.ts Refactor(server): Centralize GEMINI.md discovery logic in server (#498) 2025-05-23 08:53:22 -07:00
useStateAndRef.ts Fix flicker in iterm2 (#266) 2025-05-07 12:57:19 -07:00
useTerminalSize.ts Multiline editor (#302) 2025-05-13 11:24:04 -07:00
useThemeCommand.ts feat: Improve theme not found handling 2025-05-09 10:28:20 -07:00
useTimer.test.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useTimer.ts Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
useToolScheduler.ts feat: Allow cancellation of in-progress Gemini requests and pre-execution checks 2025-05-27 23:46:37 -07:00