Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3383

bundle agent git_stash should support git clients that do not support untracked files

    XMLWordPrintable

    Details

      Description

      Not all versions of git support inclusion of untracked files when stashing.

      For example, it's not available in version 1.7.1

      # git --version
      git version 1.7.1
      # git stash --help | grep "\--include-untracked"
      # echo $?
      1
      

      But it is available in 2.25.1:

      > $ git --version                                                                                                                                                                                                             
      git version 2.25.1
      > $ git stash --help | grep "\--include-untracked"                                                     
                          [-u|--include-untracked] [-a|--all] [-m|--message <message>]
             push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet]
                 If the --include-untracked option is used, all untracked files are also stashed and then
             save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet]              
      

      It would be nice if untracked files were included in the stash only when it's able.

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel