aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/update-ref.c
AgeCommit message (Expand)AuthorFilesLines
13 dayscocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-8/+13
2024-04-02update-ref: use {old,new}-oid instead of {old,new}valueKarthik Nayak1-13/+13
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-08-29update-ref: mark unused parameter in parser callbacksJeff King1-7/+7
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+2
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-4/+4
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-4/+4
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2021-09-03update-ref: fix streaming of status updatesPatrick Steinhardt1-4/+10
2020-11-16update-ref: disallow "start" for ongoing transactionsPatrick Steinhardt1-0/+2
2020-11-16update-ref: allow creation of multiple transactionsPatrick Steinhardt1-1/+12
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-04-02update-ref: implement interactive transaction handlingPatrick Steinhardt1-8/+98
2020-04-02update-ref: read commands in a line-wise fashionPatrick Steinhardt1-40/+45
2020-04-02update-ref: move transaction handling into `update_refs_stdin()`Patrick Steinhardt1-13/+14
2020-04-02update-ref: pass end pointer instead of strbufPatrick Steinhardt1-15/+15
2020-04-02update-ref: drop unused argument for `parse_refname`Patrick Steinhardt1-5/+5
2020-04-02update-ref: organize commands in an arrayPatrick Steinhardt1-12/+29
2018-09-12update-ref: allow --no-deref with --stdinElijah Newren1-10/+13
2018-09-12update-ref: fix type of update_flags variable to match its usageElijah Newren1-1/+1
2018-06-04update-ref --stdin: use skip_prefix()SZEDER Gábor1-12/+13
2017-11-06refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`Michael Haggerty1-2/+2
2017-10-16refs: update ref transactions to use struct object_idbrian m. carlson1-4/+4
2017-10-16refs: convert update_ref and refs_update_ref to use struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert delete_ref and refs_delete_ref to struct object_idbrian m. carlson1-1/+1
2017-07-17builtin/update_ref: convert to struct object_idbrian m. carlson1-35/+34
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-02-20update-ref: pass reflog message to delete_ref()Kyle Meyer1-1/+1
2017-02-20delete_ref: accept a reflog message argumentKyle Meyer1-1/+1
2015-09-11tag, update-ref: improve description of option "create-reflog"Ralf Thielow1-1/+1
2015-08-03Merge branch 'dt/refs-backend-preamble'Junio C Hamano1-3/+11
2015-07-21update-ref and tag: add --create-reflog argDavid Turner1-3/+11
2015-06-22delete_ref(): use the usual convention for old_sha1Michael Haggerty1-1/+7
2015-06-22cmd_update_ref(): make logic more straightforwardMichael Haggerty1-3/+10
2015-02-17ref_transaction_verify(): new function to check a reference's valueMichael Haggerty1-5/+2
2015-02-17ref_transaction_delete(): remove "have_old" parameterMichael Haggerty1-2/+3
2015-02-17ref_transaction_update(): remove "have_old" parameterMichael Haggerty1-3/+4
2015-02-17refs.c: change some "flags" to "unsigned int"Michael Haggerty1-1/+2
2015-01-14standardize usage info string formatAlex Henrie1-3/+3
2014-12-11update-ref: fix "verify" command with missing <oldvalue>Michael Haggerty1-9/+5
2014-10-15refs.c: pass the ref log message to _create/delete/update instead of _commitRonnie Sahlberg1-6/+7
2014-09-03update-ref --stdin: pass transaction around explicitlyJonathan Nieder1-12/+15
2014-09-03update-ref --stdin: narrow scope of err strbufJonathan Nieder1-1/+10
2014-09-03refs.c: make ref_transaction_begin take an err argumentRonnie Sahlberg1-1/+4
2014-09-03refs.c: update ref_transaction_delete to check for error and return statusRonnie Sahlberg1-2/+3
2014-09-03refs.c: change ref_transaction_create to do error checking and return statusRonnie Sahlberg1-1/+3
2014-07-14refs.c: change ref_transaction_update() to do error checking and return statusRonnie Sahlberg1-5/+7
2014-07-14refs.c: remove the onerr argument to ref_transaction_commitRonnie Sahlberg1-2/+1
2014-07-14update-ref: use err argument to get error from ref_transaction_commitRonnie Sahlberg1-5/+5
2014-07-14refs.c: add a strbuf argument to ref_transaction_commit for error loggingRonnie Sahlberg1-1/+1
2014-07-14refs.c: ref_transaction_commit should not free the transactionRonnie Sahlberg1-0/+1
2014-04-07update-ref --stdin: reimplement using reference transactionsMichael Haggerty1-67/+75
2014-04-07update-ref --stdin: harmonize error messagesMichael Haggerty1-12/+12
2014-04-07update-ref --stdin: improve the error message for unexpected EOFMichael Haggerty1-2/+2
2014-04-07update-ref --stdin -z: deprecate interpreting the empty string as zerosMichael Haggerty1-0/+2
2014-04-07update-ref.c: extract a new function, parse_next_sha1()Michael Haggerty1-62/+98
2014-04-07update-ref --stdin: simplify error messages for missing oldvaluesMichael Haggerty1-3/+3
2014-04-07update-ref --stdin: make error messages more consistentMichael Haggerty1-4/+4
2014-04-07update-ref --stdin: improve error messages for invalid valuesMichael Haggerty1-11/+13
2014-04-07update-ref.c: extract a new function, parse_refname()Michael Haggerty1-49/+41
2014-04-07parse_cmd_verify(): copy old_sha1 instead of evaluating <oldvalue> twiceMichael Haggerty1-1/+1
2014-04-07update-ref --stdin: read the whole input at onceMichael Haggerty1-62/+108
2014-04-07update_refs(): fix constnessMichael Haggerty1-1/+1
2014-04-07refs.h: rename the action_on_err constantsMichael Haggerty1-2/+3
2014-04-07parse_arg(): really test that argument is properly terminatedMichael Haggerty1-5/+15
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-5/+5
2013-09-20Merge branch 'bk/refs-multi-update'Junio C Hamano1-1/+251
2013-09-09update-ref: support multiple simultaneous updatesBrad King1-1/+251
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-2/+2
2012-08-22Use imperative form in help usage to describe an actionNguyễn Thái Ngọc Duy1-1/+1
2012-08-22i18n: update-ref: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-5/+5
2011-08-25update-ref: whitespace fixPang Yan Han1-1/+1
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+58