Skip to content

GIT_CLIFF_INCLUDE_PATH not working for multiple values #123

Closed

Description

@chamini2

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. clone fal-ai/fal@cb785c0
  2. GIT_CLIFF_INCLUDE_PATH="adapter/*"
  3. git cliff shows output
  4. GIT_CLIFF_INCLUDE_PATH=".github/*"
  5. git cliff shows output
  6. GIT_CLIFF_INCLUDE_PATH="adapter/* .github/*"
  7. git cliff shows NO output

Expected behavior
I expected git cliff to generate changelogs for commits touching ANY of the 2 directories

Activity

  1. added
    bug
    on Nov 3, 2022
  2. chamini2 commented on Nov 3, 2022

    @chamini2
    Author

    I cannot use the --include-path flag becuase I cannot get it working: look at orhun/git-cliff-action#3

  3. orhun commented on Nov 19, 2022

    @orhun
    Owner

    Hmm, have you tried using a comma-separated list for GIT_CLIFF_INCLUDE_PATH?

  4. orhun commented on Dec 22, 2022

    @orhun
    Owner

    I guess this is solved in git-cliff-action. Let me know if you're still having problems!

  5. sam-stenvall-iceye commented on Mar 17, 2026

    @sam-stenvall-iceye

    This doesn't seem to have been resolved. I've tried both space-separated and comma-separated glob patterns, but any combination of two patterns results in an empty change log being generated.

  6. ognis1205 commented on Mar 18, 2026

    @ognis1205
    Contributor

    Thanks for the report @sam-stenvall-iceye !

    I confirmed this is still an issue. I believe this is caused by the fact that we don't properly configure the clap env variable delimiter, so multiple values from GIT_CLIFF_INCLUDE_PATH are not parsed as expected.

    cc: @orhun

  7. sam-stenvall-iceye commented on Mar 18, 2026

    @sam-stenvall-iceye

    What worked in the end for me was passing --include-path multiple times, e.g. --include-path 'foo/**/*' --include-path bar.txt

  8. sam-stenvall-iceye commented on Mar 23, 2026

    @sam-stenvall-iceye

    @ognis1205 so with the latest fixes, both --include-path 'foo/*' --include-path 'bar/*' and --include-path 'foo/* bar/*' should work?

  9. ognis1205 commented on Mar 23, 2026

    @ognis1205
    Contributor

    hey @sam-stenvall-iceye ,

    yes, I've tested all three approaches:

    export GIT_CLIFF_INCLUDE_PATH="website/**/* .github/**/*"
    cargo run
    unset GIT_CLIFF_INCLUDE_PATH
    cargo run -- --include-path 'website/**/* .github/**/*'
    unset GIT_CLIFF_INCLUDE_PATH
    cargo run -- --include-path 'website/**/*' --include-path '.github/**/*'

    All three produced the same result.

  10. orhun commented on Mar 30, 2026

    @orhun
    Owner

    Are we also testing all those three different cases as test fixtures as well?

    If not, we should probably do that :)

  11. ognis1205 commented on Mar 31, 2026

    @ognis1205
    Contributor

    Are we also testing all those three different cases as test fixtures as well?

    If not, we should probably do that :)

    I filed an issue 👍

    #1455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions