Advertisement
Hikigaya8man

git_change_02

May 24th, 2017
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # Manual hunk edit mode -- see bottom for a quick guide
  2. @@ -19,12 +41,14 @@ struct stack_ctx *stack_init(int initial_stack_size)
  3. return ctx;
  4. }
  5.  
  6. void stack_destroy(struct stack_ctx *ctx)
  7. {
  8. free(ctx->data);
  9. free(ctx);
  10. }
  11.  
  12. void stack_push(struct stack_ctx *ctx, int num)
  13. {
  14. if (ctx->pointer == ctx->stack_size) {
  15. # ---
  16. # To remove '-' lines, make them ' ' lines (context).
  17. # To remove '+' lines, delete them.
  18. # Lines starting with # will be removed.
  19. #
  20. # If the patch applies cleanly, the edited hunk will immediately be
  21. # marked for staging. If it does not apply cleanly, you will be given
  22. # an opportunity to edit again. If all lines of the hunk are removed,
  23. # then the edit is aborted and the hunk is left unchanged.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement