RepoPilot

jesseduffield / lazygit

Search jesseduffield/lazygit

GitHub

Code

How jesseduffield/lazygit is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely start-up file
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new git command operation

  • Add the git command method to the main Git wrapper
  • Build the command object with flags and options

Add a new UI panel or context

  • Create a new context file in pkg/gui/context/ extending base_context.go
  • Define keybindings and action handlers specific to the new panel
  • Register the context in the main app initialization
  • Wire background rendering or refresh hooks if needed

Add a new configuration option

  • Define the config field and YAML tag in the Config struct
  • Add platform-specific defaults if needed
  • Apply the config value to relevant components (e.g., theme, keybindings)
  • Generate updated config documentation

Internationalize a new string

  • Add the English string to the translation map
  • Use the i18n.T() function in the UI code to reference it
  • Translations for other languages are kept in JSON files

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points34 per file on average
  • Code issues2 errors, 149 warnings
  • Largest file2,939 lines
  • Hotspot load9 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions5 workflows
  • Tests856 test filesGo test · 0.66 test files per source file (file count, not coverage)
  • Dependency updatesNo config detected

Test folders: pkg/commands/git_commands · pkg/commands/oscommands · pkg/commands

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.