You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
4.7 KiB

  1. # GitLens
  2. Provides Git information (most recent commit, # of authors) in CodeLens, on-demand inline blame annotations, a blame explorer, and commands to compare changes with the working tree or previous versions.
  3. ## Features
  4. Provides two CodeLens on code blocks:
  5. - **Recent Change** - author and date of the most recent check-in
  6. > Clicking on the CodeLens opens a **Blame explorer** with the commits and changed lines in the right pane and the commit (file) contents on the left
  7. - **Authors** - number of authors of a block and the most prominent author (if there are more than one)
  8. > Clicking on the CodeLens toggles Git blame annotations on/off
  9. ## Screenshot
  10. > ![GitLens preview](https://raw.githubusercontent.com/eamodio/vscode-git-codelens/master/images/preview-gitlens.gif)
  11. ## Requirements
  12. Must be using Git and it must be in your path.
  13. ## Extension Settings
  14. |Name | Description
  15. |-----|------------
  16. |_gitlens.blame.annotation.style_|Specifies the style of the blame annotations. Compact - groups annotations to limit the repetition and also adds author and date when possible. Expanded - shows an annotation on every line
  17. |_gitlens.blame.annotation.sha_|Specifies whether the commit sha will be shown in the blame annotations. Applies only to the Expanded annotation style
  18. |_gitlens.blame.annotation.author_|Specifies whether the committer will be shown in the blame annotations. Applies only to the Expanded annotation style
  19. |_gitlens.blame.annotation.date_|Specifies whether the commit date will be shown in the blame annotations. Applies only to the Expanded annotation style
  20. |_gitlens.blame.annotation.useCodeActions_|Specifies whether code actions (Diff with Working, Diff with Previous) will be provided for the selected line, when annotating. Not required as context menu options are always provided
  21. |_gitlens.codeLens.recentChange.enabled_|Specifies whether the recent change CodeLens is shown
  22. |_gitlens.codeLens.recentChange.command_|Specifies the command executed when the recent change CodeLens is clicked. Annotate - toggles blame annotations. Explorer - opens the blame explorer. History - opens a file history picker, which requires the Git History (git log) extension
  23. |_gitlens.codeLens.authors.enabled_|Specifies whether the authors CodeLens is shown
  24. |_gitlens.codeLens.authors.command_|Specifies the command executed when the authors CodeLens is clicked. Annotate - toggles blame annotations. Explorer - opens the blame explorer. History - opens a file history picker, which requires the Git History (git log) extension
  25. ## Known Issues
  26. - Content in the **Blame explorer** disappears after a bit: [vscode issue](https://github.com/Microsoft/vscode/issues/11360)
  27. - Highlighted lines disappear in **Blame explorer** after changing selection and returning to a previous selection: [vscode issue](https://github.com/Microsoft/vscode/issues/11360)
  28. - CodeLens aren't updated properly after a file is saved: [vscode issue](https://github.com/Microsoft/vscode/issues/11546)
  29. - Visible whitespace causes issue with blame overlay (currently fixed with a hack, but fails randomly): [vscode issue](https://github.com/Microsoft/vscode/issues/11485)
  30. ## Release Notes
  31. ### 0.2.0
  32. - Fixes [#1](https://github.com/eamodio/vscode-gitlens/issues/1) - Support blame on files outside the workspace repository
  33. - Replaces blame regex parsing with a more robust parser
  34. - Fixes failures with Diff with Previous command
  35. - Fixes issues with blame explorer CodeLens when dealing with previous commits
  36. - Fixes display issues with compact blame annotations (now skips blank lines)
  37. ### 0.1.3
  38. - Improved blame annotations, now with sha and author by default
  39. - Add new blame annotation styles -- compact and expanded (default)
  40. - Adds many new configuration settings; see Contributions tab above
  41. ### 0.0.7
  42. - Fixes [#4](https://github.com/eamodio/vscode-gitlens/issues/4) - Absolute paths fail on Windows due to backslash (Really!)
  43. - Fixes [#5](https://github.com/eamodio/vscode-gitlens/issues/5) - Finding first non-white-space fails sometimes
  44. - Adds .gitignore checks to reduce the number of blame calls
  45. ### 0.0.6
  46. - Fixes [#2](https://github.com/eamodio/vscode-gitlens/issues/2) - [request] Provide some debug info when things fail
  47. - Fixes [#4](https://github.com/eamodio/vscode-gitlens/issues/4) - Absolute paths fail on Windows due to backslash
  48. - Attempts to scroll to the correct position when opening a diff
  49. ### 0.0.5
  50. - Fixes issues where filename changes in history would cause diffs to fails
  51. - Fixes some issues with uncommited blames
  52. - Removes CodeLens from fields and single-line properties to reduce visual noise
  53. - Automatically turns off blame only when required now
  54. ### 0.0.4
  55. Candidate for preview release on the vscode marketplace.
  56. ### 0.0.1
  57. Initial release but still heavily a work in progress.