[all-commits] [llvm/llvm-project] 564efe: utils/git: Add linkify script.

pcc via All-commits all-commits at lists.llvm.org
Wed Aug 14 17:25:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 564efe26745c5bb7236b095d5b42881cdc64a284
      https://github.com/llvm/llvm-project/commit/564efe26745c5bb7236b095d5b42881cdc64a284
  Author: pcc <peter at pcc.me.uk>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    A llvm/utils/git/linkify

  Log Message:
  -----------
  utils/git: Add linkify script.

This script linkifies (i.e. makes clickable in the terminal) text that appears
to be a pull request or issue reference (e.g. #12345 or PR12345) or a
40-character commit hash (e.g. abc123). You can configure git to automatically
send the output of commands that pipe their output through a pager, such as
`git log` and `git show`, through this script by running this command from
within your LLVM checkout:

git config core.pager 'llvm/utils/git/linkify | pager'

The pager command is run from the root of the repository even if the git
command is run from a subdirectory, so the relative path should always work.

It requires OSC 8 support in the terminal. For a list of compatible terminals,
see https://github.com/Alhadis/OSC8-Adoption

Reviewers: MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/103496



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list