Skip to content

Matching directories with inner directories #1947

Closed Answered by jackton1
laysauchoa asked this question in Q&A
Discussion options

You must be logged in to vote

A folder rename should be considered from the file level not the folder level. Renaming a file tracked by git is similar to changing the folder the file was in e.g A/b.txt renaming A to B simply means the location is now B/b.txt which gets tracked as a move if b.txt is not changed or a delete and create if the contents of b.txt has changed. The phrase “So the action will not track folder rename only” again is incorrect git tracks files not folders I.e content changes.

This action uses git to output the list of tracked changed files i.e b.txt you can optionally output only the directory name which is done by dir_names input. In the example above if it’s a directory rename A/b.txt -> B/b.tx…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jackton1
Comment options

Comment options

You must be logged in to vote
2 replies
@jackton1
Comment options

Answer selected by jackton1
@laysauchoa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants