From 3b204b7d1bd312ea51ed179564d79154157e7a09 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 21 Jun 2024 17:48:44 -0700 Subject: [PATCH] copy --- website/docs/git.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/website/docs/git.md b/website/docs/git.md index ea2b145fe..fc42c9bcb 100644 --- a/website/docs/git.md +++ b/website/docs/git.md @@ -17,10 +17,8 @@ Aider specifically uses git in these ways: - It asks to create a git repo if you launch it in a directory without one. - Whenever aider edits a file, it commits those changes with a descriptive commit message. This makes it easy to undo or review aider's changes. -These commits will have "(aider)" appended to their git author and git committer metadata. - Aider takes special care before editing files that already have uncommitted changes (dirty files). Aider will first commit any preexisting changes with a descriptive commit message. This keeps your edits separate from aider's edits, and makes sure you never lose your work if aider makes an inappropriate change. -These commits will have "(aider)" appended to their git committer metadata. ## In-chat commands @@ -37,3 +35,12 @@ While it is not recommended, you can disable aider's use of git in a few ways: - `--no-git` will completely stop aider from using git on your files. You should ensure you are keeping sensible backups of the files you are working with. +## Commit attribution + +Aider marks commits that it either authored or committed. + +- If aider authored the changes in a commit, they will have "(aider)" appended to the git author and git committer name metadata. +- If aider simply committed changes (found in dirty files), the commit will have "(aider)" appended to the git committer name metadata. + +You can use `--no-attribute-author` and `--no-attribute-committer` to disable +modification of the git author and committer name fields.