normal should like something like this: (you should be in mangos root)
Code:
git apply src/bindings/ScriptDev2/patches/<Your_ScriptDev_patch>
However sometimes you get error due code incompatibility - you can patch code manually then. I will show you how but you should be warned - I have no idea if this will work with newest branch.
So, instruction:
In *.patch file you will find something like this:
Code:
--- include/sc_creature.cpp (revision 1318)
+++ include/sc_creature.cpp (working copy)
@@ -460,7 +460,7 @@
Unit* pUnit = NULL;
MaNGOS::MostHPMissingInRange u_check(m_creature, fRange, uiMinHPDiff);
- MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange> searcher(m_creature, pUnit, u_check);
+ MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange> searcher(pUnit, u_check);
Translating: in file "include/sc_creature.cpp" from line "460" (or near it) look for line "MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange> searcher(m_creature, pUnit, u_check);" and delete it (with "-" sign) then put there "MaNGOS::UnitLastSearcher<MaNGOS::MostHPMissingInRange> searcher(pUnit, u_check);"
As you can see you have to delete all lines with "-" sign and then add lines (most cases in place of those deleted ones) new.
This is long and boring but it "might" work ( I don't give 100% proof for that because as I have said earlier I don;t know if it is compatible with newest branch).
Happy patching