Exclude some files on svn command line commit (not svn:ignore)

后端 未结 7 688
失恋的感觉
失恋的感觉 2021-01-17 11:50

I\'m developing with many people.

I check out remote repository, get 3 file. After edit, run:

svn status

It shows:

         


        
7条回答
  •  自闭症患者
    2021-01-17 12:27

    I wound up making a script containing the following:

    svn ci $(svn diff --summarize | \
        grep -v exclude.file1 | \
        grep -v exclude.file2 | \
        ...
        grep -v exclude.fileN \
    )
    

    I'm sure someone can make it even more flexible by making this script read a file which would contain a list of files to be excluded from the commit.

提交回复
热议问题