%f在git clean/smudge过滤器中代表什么

%f在git clean/smudge过滤器中代表什么,git,github,git-lfs,Git,Github,Git Lfs,在我的~/.gitconfig文件中,我看到有以下lfs过滤器: [filter "lfs"] clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process required = true 问题:lfs过滤器中的%f代表什么?我的理解是,它表示文件路径,但我不确定它表示的是什么文件路径。在中,

在我的
~/.gitconfig
文件中,我看到有以下lfs过滤器:

[filter "lfs"]
        clean = git-lfs clean -- %f
        smudge = git-lfs smudge -- %f
        process = git-lfs filter-process
        required = true
问题:lfs过滤器中的
%f
代表什么?我的理解是,它表示文件路径,但我不确定它表示的是什么文件路径。

在中,它表示为:

过滤器命令行上的序列“
%f
”将替换为过滤器正在处理的文件名。
筛选器可能在关键字替换中使用此选项。例如:

[过滤器“p4”]
clean=git-p4-filter--clean%f
涂抹=git-p4-filter--涂抹%f
请注意,“
%f
”是正在处理的路径的名称。
根据要筛选的版本,磁盘上相应的文件可能不存在,或者可能有不同的内容

因此,
smudge
clean
命令不应尝试访问磁盘上的文件,而应仅作为标准输入中提供给它们的内容的过滤器