Sublime Forum

How to make a patch from sublimeText?

#1

Dear all,

I’m newbie for this software, It’s amazing and surprised me to work with my project.
but I have a little question for this, every time I edit several files and I need to pack a patch to my client,
I’m always spend a lot of time to record where files are and make a directories to put it.
and easily to make a mistake.

does anyone have same situation about this?

Thanks all!

0 Likes

#2

Do you use git? You could easily generate a git diff between two arbitrary versions… if your customer can read the format.

0 Likes

#3

I’m just trying to use git.
but it can output files in directories?

ex. I fix 3 files in different folders, it can output like the following:

\A\AA\AAA\fileA
\A\BB\BBB\fileB
\A\BB\CC\FileC

then someone get the package(zip, etc) just extract and put it in current path.

0 Likes

#4

If you do “git status” you can see all the changed files. Then you can work your shell magic to zip them with the output from “git status”. Alternatively you can write a small python/ruby/whatever script that takes the output from “git status” and do the zipping, if shell commands are not viable (e.g. on windows).

0 Likes