Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: git/git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 08c36099359e6a5c694f9abb97e630a247bc8dfb
Choose a base ref
...
head repository: git/git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 73cc549559398626f33063f64ece9e558e654c95
Choose a head ref
  • 5 commits
  • 5 files changed
  • 2 contributors

Commits on Feb 24, 2026

  1. Merge branch 'jh/alias-i18n' into jh/alias-i18n-fixes

    * jh/alias-i18n:
      completion: fix zsh alias listing for subsection aliases
      alias: support non-alphanumeric names via subsection syntax
      alias: prepare for subsection aliases
      help: use list_aliases() for alias listing
    gitster committed Feb 24, 2026
    Configuration menu
    Copy the full SHA
    874cf0d View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2026

  1. doc: fix list continuation in alias subsection example

    The example showing the equivalence between alias.last and
    alias.last.command was missing the list continuation marks (+
    between the shell session block and the following prose, leaving
    the paragraph detached from the list item in the rendered output.
    
    Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    jonatan-holmgren authored and gitster committed Feb 26, 2026
    Configuration menu
    Copy the full SHA
    2e3a987 View commit details
    Browse the repository at this point in the history
  2. alias: treat empty subsection [alias ""] as plain [alias]

    When git-config stores a key of the form alias..name, it records
    it under an empty subsection ([alias ""]). The new subsection-aware
    alias lookup would see a non-NULL but zero-length subsection and
    fall into the subsection code path, where it required a "command"
    key and thus silently ignored the entry.
    
    Normalize an empty subsection to NULL before any further processing
    so that entries stored this way continue to work as plain
    case-insensitive aliases, matching the pre-subsection behaviour.
    
    Users who relied on alias..name to create an alias literally named
    ".name" may want to migrate to subsection syntax, which looks less confusing:
    
        [alias ".name"]
            command = <value>
    
    Add tests covering both the empty-subsection compatibility case and
    the leading-dot alias via the new syntax.
    
    Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    jonatan-holmgren authored and gitster committed Feb 26, 2026
    Configuration menu
    Copy the full SHA
    6589294 View commit details
    Browse the repository at this point in the history
  3. git, help: fix memory leaks in alias listing

    The list_aliases() function sets the util pointer of each list item to
    a heap-allocated copy of the alias command value.  Two callers failed
    to free these util pointers:
    
     - list_cmds() in git.c collects a string list with STRING_LIST_INIT_DUP
       and clears it with string_list_clear(&list, 0), which frees the
       duplicated strings (strdup_strings=1) but not the util pointers.
       Pass free_util=1 to free them.
    
     - list_cmds_by_config() in help.c calls string_list_sort_u(list, 0) to
       deduplicate the list before processing completion.commands overrides.
       When duplicate entries are removed, the util pointer of each discarded
       item is leaked because free_util=0.  Pass free_util=1 to free them.
    
    Reported-by: Jacob Keller <jacob.e.keller@intel.com>
    Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    jonatan-holmgren authored and gitster committed Feb 26, 2026
    Configuration menu
    Copy the full SHA
    cdef625 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2026

  1. doc: fix list continuation in alias.adoc

    Add missing list continuation marks ('+') after code blocks and shell examples
    so paragraphs render correctly as part of the preceding list item.
    
    Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
    jonatan-holmgren authored and gitster committed Mar 3, 2026
    Configuration menu
    Copy the full SHA
    73cc549 View commit details
    Browse the repository at this point in the history
Loading