Page MenuHomePhabricator

Add support for creating revision from existing git commit
Needs RevisionPublic

Authored by djc on Jul 7 2014, 2:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:10 AM
Unknown Object (File)
Sun, Mar 31, 8:24 PM
Unknown Object (File)
Sat, Mar 30, 11:31 AM
Unknown Object (File)
Dec 16 2023, 1:14 PM
Unknown Object (File)
Dec 14 2023, 9:27 PM
Unknown Object (File)
Oct 28 2023, 1:57 PM
Unknown Object (File)
Oct 6 2023, 9:59 AM
Unknown Object (File)
Sep 12 2023, 10:34 PM

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Test Plan

basic testing with a sample repository/changeset

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1565
Build 1566: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
0 mstestSvnStateParsing
0 mstestGitStateParsing
0 mstestSVNFileEscapes
0 mstestHgStateParsing

Event Timeline

djc retitled this revision from to Add support for creating revision from existing git commit.
djc updated this object.
djc edited the test plan for this revision. (Show Details)

You can already do this with:

$ git show X | arc diff --raw
$ arc diff X^ --head X

If you do this frequently, maybe you could make an alias? I think something like this would work:

$ arc alias diffone -- '!arc diff $0^ --head $0'

...then:

$ arc diffone X

Basically, I'm not sure this is useful enough on its own to justify implementing fully.

Well, I'm not the only one who has been asking for this. And I think you mentioned something about --raw giving the revision not as much context? Or do you just mean Arcanist/Phabricator features that depend on having a working copy, which are impossible to get working anyway in this model?

joshuaspence added a reviewer: joshuaspence.
joshuaspence added a subscriber: joshuaspence.

As mentioned by @epriestley, this is already possible with arc diff --raw

This revision now requires changes to proceed.Feb 28 2015, 9:18 AM