summaryrefslogtreecommitdiffstats
path: root/refs.c
AgeCommit message (Expand)AuthorLines
2015-08-03Merge branch 'mh/reporting-broken-refs-from-for-each-ref' into maintJunio C Hamano-7/+22
2015-06-08read_loose_refs(): treat NULL_SHA1 loose references as brokenMichael Haggerty-0/+10
2015-06-05Merge branch 'mh/write-refs-sooner-2.4' into maintJunio C Hamano-31/+82
2015-06-03read_loose_refs(): simplify function logicMichael Haggerty-7/+12
2015-05-12ref_transaction_commit(): fix atomicity and avoid fd exhaustionMichael Haggerty-21/+53
2015-05-12ref_transaction_commit(): remove the local flags variableMichael Haggerty-9/+9
2015-05-12ref_transaction_commit(): inline call to write_ref_sha1()Michael Haggerty-18/+7
2015-05-12rename_ref(): inline calls to write_ref_sha1() from this functionMichael Haggerty-4/+8
2015-05-12commit_ref_update(): new function, extracted from write_ref_sha1()Michael Haggerty-7/+20
2015-05-12write_ref_to_lockfile(): new function, extracted from write_ref_sha1()Michael Haggerty-4/+17
2015-05-11reflog_expire(): integrate lock_ref_sha1_basic() errors into oursMichael Haggerty-2/+2
2015-05-11ref_transaction_commit(): delete extra "the" from error messageMichael Haggerty-1/+1
2015-05-11ref_transaction_commit(): provide better error messagesMichael Haggerty-4/+6
2015-05-11rename_ref(): integrate lock_ref_sha1_basic() errors into oursMichael Haggerty-4/+2
2015-05-11lock_ref_sha1_basic(): improve diagnostics for ref D/F conflictsMichael Haggerty-4/+12
2015-05-11lock_ref_sha1_basic(): report errors via a "struct strbuf *err"Michael Haggerty-16/+28
2015-05-11verify_refname_available(): report errors via a "struct strbuf *err"Michael Haggerty-20/+30
2015-05-11verify_refname_available(): rename functionMichael Haggerty-17/+20
2015-05-11refs: check for D/F conflicts among refs created in a transactionMichael Haggerty-62/+94
2015-05-11ref_transaction_commit(): use a string_list for detecting duplicatesMichael Haggerty-14/+11
2015-05-11is_refname_available(): use dirname in first loopMichael Haggerty-14/+26
2015-05-11struct nonmatching_ref_data: store a refname instead of a ref_entryMichael Haggerty-3/+4
2015-05-11report_refname_conflict(): inline functionMichael Haggerty-8/+2
2015-05-11entry_matches(): inline functionMichael Haggerty-7/+2
2015-05-11is_refname_available(): convert local variable "dirname" to strbufMichael Haggerty-7/+5
2015-05-11is_refname_available(): avoid shadowing "dir" variableMichael Haggerty-2/+2
2015-05-11is_refname_available(): revamp the commentsMichael Haggerty-22/+47
2015-03-25Merge branch 'jk/prune-with-corrupt-refs'Junio C Hamano-66/+6
2015-03-20refs.c: drop curate_packed_refsJeff King-66/+1
2015-03-20refs: introduce a "ref paranoia" flagJeff King-0/+5
2015-03-10Merge branch 'mh/expire-updateref-fixes'Junio C Hamano-28/+37
2015-03-05reflog_expire(): never update a reference to null_sha1Michael Haggerty-2/+5
2015-03-05reflog_expire(): ignore --updateref for symbolic referencesMichael Haggerty-3/+12
2015-03-05struct ref_lock: delete the force_write memberStefan Beller-5/+9
2015-03-05lock_ref_sha1_basic(): do not set force_write for missing referencesMichael Haggerty-9/+6
2015-03-05write_ref_sha1(): move write elision test to callersMichael Haggerty-9/+9
2015-03-05write_ref_sha1(): remove check for lock == NULLMichael Haggerty-4/+0
2015-02-24Merge branch 'jk/blame-commit-label' into maintJunio C Hamano-2/+1
2015-02-17update_ref(): improve documentationMichael Haggerty-4/+4
2015-02-17ref_transaction_verify(): new function to check a reference's valueMichael Haggerty-8/+39
2015-02-17ref_transaction_delete(): check that old_sha1 is not null_sha1Michael Haggerty-0/+2
2015-02-17ref_transaction_create(): check that new_sha1 is validMichael Haggerty-0/+2
2015-02-17ref_transaction_delete(): remove "have_old" parameterMichael Haggerty-5/+6
2015-02-17ref_transaction_update(): remove "have_old" parameterMichael Haggerty-10/+8
2015-02-17struct ref_update: move "have_old" into "flags"Michael Haggerty-17/+28
2015-02-17refs.c: change some "flags" to "unsigned int"Michael Haggerty-9/+9
2015-02-12refs: remove the gap in the REF_* constant valuesMichael Haggerty-1/+2
2015-02-12refs: move REF_DELETING to refs.cMichael Haggerty-0/+6
2015-02-11Merge branch 'mh/reflog-expire'Junio C Hamano-82/+181
2015-02-11Merge branch 'jk/blame-commit-label'Junio C Hamano-2/+1