Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused Pipe[Media]Command() functions #4942

Merged
merged 1 commit into from Apr 14, 2022

Conversation

chrisd8088
Copy link
Contributor

The PipeCommand() function was added in commit 8b18f62 in the initial prototype work on this project in order to run the original bin/git-media-{clean,smudge} programs. The PipeMediaCommand() function was then added in commit 9cff651 to abstract the addition of the bin/ prefix to the program names into a single function.

As of commit 24b1939 in 2014, however, which was also part of that early prototyping phase, the bin/git-media-{clean,smudge} programs were replaced with git media clean|smudge, precursors of our contemporary git lfs clean|smudge programs, and the Pipe[Media]Command() functions stopped being used to communicate with the programs.

No other users of these functions have appeared since that time, so we just remove them now; they can always be recovered from our commit history if pipe wrapper functions are needed again in the future.

The PipeCommand() function was added in commit
8b18f62 in the initial
prototype work on this project in order to run the
original bin/git-media-{clean,smudge} programs.  The
PipeMediaCommand() function was then added in commit
9cff651 to abstract
the addition of the "bin/" prefix to the program names
into a single function.

As of commit 24b1939
in 2014, however, which was also part of that early
prototyping phase, the bin/git-media-{clean,smudge} programs
were replaced with "git media clean|smudge", precursors
of our contemporary "git lfs clean|smudge" programs, and
the Pipe[Media]Command() functions stopped being used to
communicate with the programs.

No other users of these functions have appeared since that
time, so we just remove them now; they can always be
recovered from our commit history if pipe wrapper functions
are needed again in the future.
@chrisd8088 chrisd8088 requested a review from a team as a code owner April 14, 2022 14:32
Copy link
Member

@bk2204 bk2204 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm always a fan of deleting unneeded code.

@chrisd8088 chrisd8088 merged commit 8402773 into git-lfs:main Apr 14, 2022
@chrisd8088 chrisd8088 deleted the remove-pipe-command branch April 14, 2022 15:45
bk2204 pushed a commit that referenced this pull request Apr 19, 2022
remove unused `Pipe[Media]Command()` functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants