Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Manual hunk edit mode -- see bottom for a quick guide
- @@ -19,12 +41,14 @@ struct stack_ctx *stack_init(int initial_stack_size)
- return ctx;
- }
- void stack_destroy(struct stack_ctx *ctx)
- {
- free(ctx->data);
- free(ctx);
- }
- void stack_push(struct stack_ctx *ctx, int num)
- {
- if (ctx->pointer == ctx->stack_size) {
- # ---
- # To remove '-' lines, make them ' ' lines (context).
- # To remove '+' lines, delete them.
- # Lines starting with # will be removed.
- #
- # If the patch applies cleanly, the edited hunk will immediately be
- # marked for staging. If it does not apply cleanly, you will be given
- # an opportunity to edit again. If all lines of the hunk are removed,
- # then the edit is aborted and the hunk is left unchanged.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement