carloscuesta / gitmoji

An emoji guide for your commit messages. ๐Ÿ˜œ
https://gitmoji.dev
MIT License
15.44k stars 808 forks source link

๐Ÿ›ธ for extracting code to a separate function or new file #1754

Open simonaltrogge opened 2 weeks ago

simonaltrogge commented 2 weeks ago

Emoji symbol

๐Ÿ›ธ

Emoji code

:flying_saucer:

Emoji description

Extract code into a separate function or new file.

Describe the use case of your emoji

When restructuring a project, I sometimes break apart a file and extract, for example, a class into its separate file. Alternatively, this could be also used when extracting some logic into its own function to be used in multiple places instead of repeating code.

I see, however, that this is most likely a more specific case of the "Refactor code." (โ™ป๏ธ) case.

Is this use case covered by an existing emoji?

Yes โœ…

Does this emoji fall into the "how" or the "what" category?

Examples

๐Ÿ›ธ Extract authentication into reusable function ๐Ÿ›ธ Move some large class into a separate file

Validations